From 4d6eb48844eb9182d2405eaec7adeb3107dc96da Mon Sep 17 00:00:00 2001 From: aiamadeus <2789289348@qq.com> Date: Tue, 12 Dec 2023 23:08:26 +0800 Subject: [PATCH] github: update issue and pr template --- .github/ISSUE_TEMPLATE.md | 20 ----------------- .github/ISSUE_TEMPLATE/bug-report.yml | 32 +++++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 6 +++++ .github/PULL_REQUEST_TEMPLATE.md | 6 +++-- 4 files changed, 42 insertions(+), 22 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/ISSUE_TEMPLATE/bug-report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index e6877ba7d..000000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,20 +0,0 @@ -反馈bug/问题模板,提建议请删除 - -## 1.关于你要提交的问题 - -Q:是否搜索了issue (使用 "x" 选择) -* [ ] 没有类似的issue - -## 2. 详细叙述 - -### (1) 具体问题 - -A: - -### (2) 路由器型号和固件版本 - -A: - -### (3) 详细日志 - -A: diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml new file mode 100644 index 000000000..7375f5511 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -0,0 +1,32 @@ +name: 问题描述 +description: 反馈问题模板 +body: + - type: textarea + id: description + attributes: + label: 详细叙述 + description: 详细叙述问题 + validations: + required: true + - type: checkboxes + id: duplicate_issue + attributes: + label: 重复 issue + description: 是否搜索了 issues + options: + - label: 没有类似的 issue + required: true + - type: input + id: model_name + attributes: + label: 具体型号 + description: 硬件型号 + validations: + required: true + - type: textarea + id: details_log + attributes: + label: 详细日志 + description: make V=s -j1 时的问题日志 + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..9dd2f5671 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,6 @@ +--- +blank_issues_enabled: false +contact_links: + - name: discussion + url: https://github.com/coolsnowwolf/lede/discussions + about: Please ask and answer questions here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b9b4232d7..3f000a766 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,2 +1,4 @@ -Q:你知道这是`pull request`吗?(使用 "x" 选择) -* [ ] 我知道 +# Pull Request 规则,创建时请删除 + +- 禁止有关 "GitHub Actions" 的提交 +- 禁止使用 users.noreply.github.com 提交