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

commit f147289aa7388180091956100f30a8098b130359
Author: Ovilia <zwl.s...@gmail.com>
AuthorDate: Fri Aug 30 11:18:47 2019 +0800

    bot should not check template if an issue is reopened
---
 index.js    | 9 ++-------
 src/text.js | 6 +++++-
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/index.js b/index.js
index 9b876c9..bb6c48d 100644
--- a/index.js
+++ b/index.js
@@ -3,7 +3,7 @@ const coreCommitters = require('./src/coreCommitters');
 const {LABEL_HOWTO, NOT_USING_TEMPLATE, INACTIVE_ISSUE} = 
require('./src/text');
 
 module.exports = app => {
-    app.on(['issues.opened', 'issues.reopened'], async context => {
+    app.on(['issues.opened'], async context => {
         const issue = new Issue(context);
 
         // Ignore comment because it will commented when adding invalid label
@@ -23,12 +23,7 @@ module.exports = app => {
             }))
             : Promise.resolve();
 
-        if (issue.isUsingTemplate()) {
-            return Promise.all([comment, addLabels, removeLabels]);
-        }
-        else {
-            return Promise.all([comment, addLabels, removeLabels]);
-        }
+        return Promise.all([comment, addLabels, removeLabels]);
     });
 
     app.on('issues.labeled', async context => {
diff --git a/src/text.js b/src/text.js
index 98a445b..fac39dc 100644
--- a/src/text.js
+++ b/src/text.js
@@ -3,9 +3,13 @@ const NOT_USING_TEMPLATE =
 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.
 
+If you think you have already made your point clear without the template, or 
your problem cannot be covered by it, you may re-open this issue again.
+
 这个 issue 未使用 [issue 
模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
 为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
-如果您愿意,可以请使用 issue 模板重新创建 issue。`;
+如果您愿意,可以请使用 issue 模板重新创建 issue。
+
+如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 issue。`;
 
 const ISSUE_CREATED =
     `Hi! We\'ve received your issue and please be patient to get responded. 🎉


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

Reply via email to