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:01 UTC

[incubator-echarts-bot] 06/32: update text

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 d5a89efd97807c97b32462c2fca2dfce3a3860f5
Author: Ovilia <zw...@gmail.com>
AuthorDate: Mon May 27 10:48:53 2019 +0800

    update text
---
 .data/empty |  0
 index.js    |  9 ++++++---
 src/text.js | 10 ++++++++--
 3 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/.data/empty b/.data/empty
deleted file mode 100644
index e69de29..0000000
diff --git a/index.js b/index.js
index 847df80..9b876c9 100644
--- a/index.js
+++ b/index.js
@@ -1,9 +1,9 @@
 const Issue = require('./src/issue');
 const coreCommitters = require('./src/coreCommitters');
-const {PR_OPENED, PR_MERGED, PR_NOT_MERGED, LABEL_HOWTO, NOT_USING_TEMPLATE} = require('./src/text');
+const {LABEL_HOWTO, NOT_USING_TEMPLATE, INACTIVE_ISSUE} = require('./src/text');
 
 module.exports = app => {
-    app.on(['issues.opened', 'issues.edited', 'issues.reopened'], async context => {
+    app.on(['issues.opened', 'issues.reopened'], async context => {
         const issue = new Issue(context);
 
         // Ignore comment because it will commented when adding invalid label
@@ -24,7 +24,7 @@ module.exports = app => {
             : Promise.resolve();
 
         if (issue.isUsingTemplate()) {
-            return Promise.all([comment, addLabels, removeLabel]);
+            return Promise.all([comment, addLabels, removeLabels]);
         }
         else {
             return Promise.all([comment, addLabels, removeLabels]);
@@ -38,6 +38,9 @@ module.exports = app => {
 
             case 'howto':
                 return Promise.all([commentIssue(context, LABEL_HOWTO), closeIssue(context)]);
+
+            case 'inactive':
+                return Promise.all([commentIssue(context, INACTIVE_ISSUE), closeIssue(context)]);
         }
     });
 
diff --git a/src/text.js b/src/text.js
index 22df08d..82dc7a0 100644
--- a/src/text.js
+++ b/src/text.js
@@ -1,6 +1,6 @@
 const NOT_USING_TEMPLATE =
     `This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
-Sorry for this, but it helps saving our maintainers' time so that more developers get helped.
+Sorry for this, but it helps save our maintainers' time so that more developers get helped.
 Feel free to create another issue using the issue template.
 
 这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
@@ -15,6 +15,9 @@ In the meanwhile, please make sure that **you have posted enough image to demo y
 
 Have a nice day! 🍵`;
 
+const INACTIVE_ISSUE =
+    `This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.`;
+
 const ISSUE_UPDATED =
     `An update has been made to this issue. The maintainers are right on their way. 🚒`;
 
@@ -35,7 +38,9 @@ You may send an email to dev-subscribe@echarts.apache.org to subscribe our devel
 const PR_NOT_MERGED = `I'm sorry your PR didn't get merged. Don't get frustrated. Maybe next time. 😛`
 
 const LABEL_HOWTO =
-    `Sorry, but please ask *how-to* questions on [Stack Overflow](https://stackoverflow.com/questions/tagged/echarts). Here's why:
+    `Sorry, but please ask *how-to* questions on [Stack Overflow](https://stackoverflow.com/questions/tagged/echarts) or [segmentfault(中文)](https://segmentfault.com/t/echarts).
+
+Here's why:
 
 Maintaining open source projects, especially popular ones, is [hard work](https://nolanlawson.com/2017/03/05/what-it-feels-like-to-be-an-open-source-maintainer/). As ECharts's user base has grown, we are getting more and more usage questions, bug reports, feature requests and pull requests every single day.
 
@@ -52,6 +57,7 @@ module.exports = {
     NOT_USING_TEMPLATE,
     ISSUE_CREATED,
     ISSUE_UPDATED,
+    INACTIVE_ISSUE,
     PR_OPENED,
     LABEL_HOWTO,
     PR_MERGED,


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org