Skip to content

Commit 44212d6

Browse files
committed
skip if this issue is already on the board
1 parent 520ff1b commit 44212d6

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/send-prs-to-how-how-we-work-boards.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ jobs:
3535
3636
var column_id = 13445681;
3737
try {
38-
github.projects.createCard({
38+
await github.projects.createCard({
3939
column_id: column_id,
4040
content_id: context.payload.pull_request.id,
4141
content_type: "PullRequest"
4242
});
4343
} catch (error) {
44-
console.log(error);
44+
if (error.includes('Project already has the associated issue')) {
45+
return
46+
} else {
47+
console.log(error);
48+
}
4549
}

0 commit comments

Comments
 (0)