Skip to content
Browse files
bot should not check template if an issue is reopened
  • Loading branch information
Ovilia committed Aug 30, 2019
1 parent 69d7ca1 commit f147289aa7388180091956100f30a8098b130359
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
@@ -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 => {
@@ -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 模板]( 创建,所以我将关闭此 issue。
如果您愿意,可以请使用 issue 模板重新创建 issue。`;
如果您愿意,可以请使用 issue 模板重新创建 issue。
如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 issue。`;

`Hi! We\'ve received your issue and please be patient to get responded. 🎉

0 comments on commit f147289

Please sign in to comment.