1
0
mirror of synced 2025-12-23 21:07:12 -05:00

skip if this issue is already on the board

This commit is contained in:
Sarah Schneider
2021-04-07 14:56:13 -04:00
parent 520ff1bc5f
commit 44212d6de8

View File

@@ -35,11 +35,15 @@ jobs:
var column_id = 13445681;
try {
github.projects.createCard({
await github.projects.createCard({
column_id: column_id,
content_id: context.payload.pull_request.id,
content_type: "PullRequest"
});
} catch (error) {
console.log(error);
if (error.includes('Project already has the associated issue')) {
return
} else {
console.log(error);
}
}