Skip to content
Permalink
Browse files
fix: awaiting api changes
  • Loading branch information
Ovilia committed Sep 9, 2020
1 parent 721cb2e commit 58553f758c4ab6514fb46aa5b76e9202c4993b34
Showing 1 changed file with 2 additions and 2 deletions.
@@ -100,7 +100,7 @@ module.exports = app => {
labelList.push('PR: author is committer');
}
const content = context.payload.pull_request.body;
if (content && content.indexOf('[-] The API has been changed.') > -1) {
if (content && content.indexOf('[x] The API has been changed.') > -1) {
labelList.push('PR: awaiting doc');
commentText += '\n\n' + text.PR_AWAITING_DOC;
}
@@ -118,7 +118,7 @@ module.exports = app => {

app.on(['pull_request.edited'], async context => {
const content = context.payload.pull_request.body;
if (content && content.indexOf('[-] The API has been changed.') > -1) {
if (content && content.indexOf('[x] The API has been changed.') > -1) {
return context.github.issues.addLabels(context.issue({
labels: ['PR: awaiting doc']
}));

0 comments on commit 58553f7

Please sign in to comment.