skip if this issue is already on the board
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user