From d984ffa849839531eb50023b65cc49fb156b5691 Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Fri, 31 Jul 2020 18:43:31 +0100 Subject: [PATCH] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0=20PR=20=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=EF=BC=8C=E4=BF=AE=E6=94=B9=20issue=20=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=20(#5314)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/bug_report_en.md | 2 +- .github/ISSUE_TEMPLATE/bug_report_zh.md | 2 +- .github/ISSUE_TEMPLATE/pull_request_template.md | 13 +++++++++++++ lib/middleware/onerror.js | 4 ++-- 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/pull_request_template.md diff --git a/.github/ISSUE_TEMPLATE/bug_report_en.md b/.github/ISSUE_TEMPLATE/bug_report_en.md index b93741e4ec..5c1ca4e781 100644 --- a/.github/ISSUE_TEMPLATE/bug_report_en.md +++ b/.github/ISSUE_TEMPLATE/bug_report_en.md @@ -9,7 +9,7 @@ Please ensure you have read [documentation](https://docs.rsshub.app/en), and pro Due to the anti-crawling policy implemented by certain websites, some RSS routes provided by the demo will return status code 403. This is not an issue caused by RSSHub and please do not report it. --> -- Involved route +- The involved route, with all required and optional parameters - What is expected diff --git a/.github/ISSUE_TEMPLATE/bug_report_zh.md b/.github/ISSUE_TEMPLATE/bug_report_zh.md index 9966c0c2b0..dba7406ccd 100644 --- a/.github/ISSUE_TEMPLATE/bug_report_zh.md +++ b/.github/ISSUE_TEMPLATE/bug_report_zh.md @@ -9,7 +9,7 @@ about: 早起的小可爱有虫抓 由于部分源网站反爬缘故,演示地址一些 rss 会返回 status code 403,该问题不是 RSSHub 所致,请勿提交 issue。 --> -- 路由地址 +- 完整路由地址,包含所有必选与可选参数 - 预期是什么 diff --git a/.github/ISSUE_TEMPLATE/pull_request_template.md b/.github/ISSUE_TEMPLATE/pull_request_template.md new file mode 100644 index 0000000000..d1ffaeb445 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/pull_request_template.md @@ -0,0 +1,13 @@ +## 该 PR 相关 Issue / Involved issue + +Close # + +## 完整路由地址 / Example for the proposed route(s) + + diff --git a/lib/middleware/onerror.js b/lib/middleware/onerror.js index a2a9a57ee9..ff80f58377 100644 --- a/lib/middleware/onerror.js +++ b/lib/middleware/onerror.js @@ -29,7 +29,7 @@ module.exports = async (ctx, next) => { 由于部分源网站反爬缘故,演示地址一些 rss 会返回 status code 403,该问题不是 RSSHub 所致,请勿提交 issue。 --> -- 路由地址 +- 完整路由地址,包含所有必选与可选参数 \`${ctx.path}\` - 预期是什么 @@ -60,7 +60,7 @@ Please ensure you have read [documentation](https://docs.rsshub.app/en), and pro Due to the anti-crawling policy implemented by certain websites, some RSS routes provided by the demo will return status code 403. This is not an issue caused by RSSHub and please do not report it. --> -- Involved route +- The involved route, with all required and optional parameters \`${ctx.path}\` - What is expected