Merge pull request #27199 from misitebao/feature/add-issue-and-pr-templates

Add issue topics template
This commit is contained in:
Xingyu.Wang 2022-09-28 12:17:54 +08:00 committed by GitHub
commit 36d5f56e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 92 additions and 0 deletions

1
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1 @@
blank_issues_enabled: true

18
.github/ISSUE_TEMPLATE/questions.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Ask Questions | 提问
description: Please describe your problem. | 请描述您的问题。
labels: ["question"]
assignees: []
body:
- type: markdown
attributes:
value: |
Please answer these questions before you submit the desired feature. | 请在您提交期望的功能之前,回答以下这些问题
- type: textarea
attributes:
label: Your Questions
description: Please describe your problem. | 请描述您的问题。
placeholder: I have a question...
validations:
required: true

73
.github/ISSUE_TEMPLATE/topics.yml vendored Normal file
View File

@ -0,0 +1,73 @@
name: 推荐选题
description: 推荐一个选题
# title: ""
labels: []
assignees: []
body:
- type: markdown
attributes:
value: |
标题请使用 **`[推荐类型] 文章日期 文章标题`** 格式,选题类型、文章日期和文章标题中间有一个 **空格**。
完整示例:
- [推荐选题] 20220823 The Lost Art of the Makefile
- [推荐选题] 20220905 Linus Torvalds Uses Apple MacBook Hardware to Release Linux Kernel 5.19
- type: textarea
id: title
attributes:
label: 原文标题
description: 填写原文章的标题
placeholder: 原文标题
validations:
required: true
- type: textarea
id: url
attributes:
label: 原文链接地址
description: 填写原文章的链接地址
placeholder: 原文链接地址
validations:
required: true
- type: checkboxes
id: terms
attributes:
label: 版权协议
description: 填写原文章的版权协议
options:
- label: CC-SA-BY
- label: 其它公域许可证
- label: 已获取作者授权
- type: textarea
id: reason
attributes:
label: 推荐理由
description: 填写你的推荐理由
placeholder:
validations:
required: false
- type: dropdown
id: difficulty
attributes:
label: 文章难度
description: 选择文章的难度
multiple: false
options:
- 困难
- 一般
- 容易
- type: dropdown
id: category
attributes:
label: 文章分类
description: 选择文章的分类
multiple: false
options:
- 新闻(news)
- 观点(talk)
- 技术(tech)