From 0b2abdd831e3ca97a1f3868028e603a45d107822 Mon Sep 17 00:00:00 2001 From: xuexb Date: Sun, 15 Oct 2017 22:15:44 +0800 Subject: [PATCH] feat: add issue template --- .github/ISSUE_TEMPLATE.md | 9 +++++++++ README.md | 1 - src/modules/issues/replyInvalid.js | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..c2b22a7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,9 @@ + + +node version: 版本号 + +--- diff --git a/README.md b/README.md index 58eac11..b22ea76 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,6 @@ Github robot ``` node version: 版本号 -url: http://www.example.com ``` ### labels 规则 diff --git a/src/modules/issues/replyInvalid.js b/src/modules/issues/replyInvalid.js index a1fbede..849b1df 100755 --- a/src/modules/issues/replyInvalid.js +++ b/src/modules/issues/replyInvalid.js @@ -16,7 +16,7 @@ const comment = [ ].join(''); const match = str => { - return /node version:\s*(\d\.?)+/.test(str) && /url:\s*(https?:)?\/\/(\w{3,})/.test(str); + return /node version:\s*(\d\.?)+/.test(str); }; function replyInvalid(on) {