You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2020/10/28 01:02:16 UTC
[incubator-echarts-bot] 21/32: update pr label
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-bot.git
commit 2a03d653dd19b8e236e6eeb1f8b5f5f65f2e9d88
Author: Ovilia <zw...@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-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org