Bug fix for adding issue to the GH Project board (#10830)

This commit is contained in:
Neil MacDougall 2024-04-18 10:24:17 +02:00 committed by GitHub
parent 1b1b2d233a
commit 9cc17f1338
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -320,7 +320,7 @@ async function processOpenOrEditAction() {
console.log('---------');
// Is the issue on the board?
if (!prjIssue[ghProject.id]) {
if (!prjIssue || !prjIssue[ghProject.id]) {
// Issue is not on the board
console.log(`Issue ${ i } is NOT on the project board - adding it ...`);
@ -328,7 +328,7 @@ async function processOpenOrEditAction() {
prjIssue = await request.ghProjectIssue(info.org, info.repo, i.number);
if (!prjIssue[ghProject.id]) {
if (!prjIssue || !prjIssue[ghProject.id]) {
console.log("Error: Could not add issue to Project Board");
console.log(prjIssue);
} else {