Skip to content
Permalink
Browse files
update pr label
  • Loading branch information
Ovilia committed Mar 3, 2020
1 parent 27926db commit 2a03d653dd19b8e236e6eeb1f8b5f5f65f2e9d88
Showing 1 changed file with 6 additions and 1 deletion.
@@ -113,13 +113,18 @@ module.exports = app => {
});

app.on(['pull_request.closed'], async context => {
const actions = [
getRemoveLabel(context, 'PR: revision needed'),
getRemoveLabel(context, 'PR: awaiting review')
];
const isMerged = context.payload['pull_request'].merged;
if (isMerged) {
const comment = context.github.issues.createComment(context.issue({
body: text.PR_MERGED
}));
return Promise.all([comment]);
actions.push(comment);
}
return Promise.all(actions);
});

app.on(['pull_request_review.submitted'], async context => {

0 comments on commit 2a03d65

Please sign in to comment.