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 2021/10/26 17:36:51 UTC
[echarts-bot] 01/02: feat: close issue when it's labeled with
`duplicate`.
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/echarts-bot.git
commit 2fe9cdc351df89d1046e9a00c7f87b53c6a217d9
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Wed Oct 27 01:33:23 2021 +0800
feat: close issue when it's labeled with `duplicate`.
---
index.js | 1 +
src/label.js | 2 ++
2 files changed, 3 insertions(+)
diff --git a/index.js b/index.js
index d7082d8..3e67625 100644
--- a/index.js
+++ b/index.js
@@ -99,6 +99,7 @@ module.exports = (app) => {
return commentIssue(context, replaceAt(text.ISSUE_TAGGED_PRIORITY_HIGH));
case labelText.RESOLVED:
+ case labelText.DUPLICATE:
return Promise.all([
closeIssue(context),
getRemoveLabel(context, labelText.WAITING_FOR_COMMUNITY)
diff --git a/src/label.js b/src/label.js
index df5bd50..3e524d2 100644
--- a/src/label.js
+++ b/src/label.js
@@ -15,6 +15,7 @@ const RESOLVED = 'resolved';
const HOWTO = 'howto';
const INACTIVE = 'inactive';
const MISSING_DEMO = 'missing-demo';
+const DUPLICATE = 'duplicate';
const PRIORITY_HIGH = 'priority: high';
@@ -40,6 +41,7 @@ module.exports = {
HOWTO,
INACTIVE,
MISSING_DEMO,
+ DUPLICATE,
PRIORITY_HIGH,
PR_AWAITING_REVIEW,
PR_REVISION_NEEDED,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org