This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-echarts-bot.git
The following commit(s) were added to refs/heads/master by this push: new 2a03d65 update pr label 2a03d65 is described below commit 2a03d653dd19b8e236e6eeb1f8b5f5f65f2e9d88 Author: Ovilia <zwl.s...@gmail.com> AuthorDate: Tue Mar 3 13:13:37 2020 +0800 update pr label --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 2c51d00..f93bd41 100644 --- a/index.js +++ b/index.js @@ -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 => { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org