|
|
@ -89,12 +89,6 @@ jobs: |
|
|
|
return subset.every((item) => superset.includes(item)); |
|
|
|
return subset.every((item) => superset.includes(item)); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// Add an 'in-bot-review' label while this PR is under review |
|
|
|
|
|
|
|
github.rest.issues.addLabels({ |
|
|
|
|
|
|
|
...body_data, |
|
|
|
|
|
|
|
labels: ["in-bot-review"], |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Get filenames of all currently checked-in PR templates |
|
|
|
// Get filenames of all currently checked-in PR templates |
|
|
|
const template_contents = await github.rest.repos.getContent({ |
|
|
|
const template_contents = await github.rest.repos.getContent({ |
|
|
|
owner: context.repo.owner, |
|
|
|
owner: context.repo.owner, |
|
|
@ -175,6 +169,12 @@ jobs: |
|
|
|
if (!template_found) { |
|
|
|
if (!template_found) { |
|
|
|
var comment_already_sent = false; |
|
|
|
var comment_already_sent = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Add an 'in-bot-review' label since this PR doesn't have the template |
|
|
|
|
|
|
|
github.rest.issues.addLabels({ |
|
|
|
|
|
|
|
...body_data, |
|
|
|
|
|
|
|
labels: ["in-bot-review"], |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (existing_comments.length < 1) { |
|
|
|
if (existing_comments.length < 1) { |
|
|
|
github.rest.issues.createComment({ |
|
|
|
github.rest.issues.createComment({ |
|
|
|
...body_data, |
|
|
|
...body_data, |
|
|
|