Skip to content

Commit 78086b0

Browse files
committed
chore: 增强 PR 描述模板
1 parent ef7266a commit 78086b0

2 files changed

Lines changed: 31 additions & 11 deletions

File tree

‎.github/ISSUE_TEMPLATE/bug-report.yml‎

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,15 @@ body:
8080
attributes:
8181
label: ⌨️ Code Snapshots / 代码片段
8282
description: |
83-
1. 请粘贴你的**核心代码片段**, 包括但不限于 `报错信息`, `s2Options 配置信息`, `s2DataConfig 数据源信息`。
84-
2. 请不要粘贴你自己的业务代码, 更不要无脑粘贴一大段没有格式化的 "乱码", 请注意使用 markdown code 标签。
85-
3. 请不要**直接粘贴官网的在线示例链接, 然后告诉我们有问题, 官网不会保存你编辑后的代码**, 请粘贴 `你的代码片段`, 或者使用 [codesandbox](https://codesandbox.io/)
86-
4. 请尽量不要粘贴代码的截图,请使用文本, 方便复制.
87-
placeholder: |
88-
If there is a code block, please use Markdown syntax, such as:
89-
请注意使用 markdown code 标签:
83+
1. 请贴出你的**核心代码片段**,包括但不限于 `报错信息`, `s2Options 配置信息`, `s2DataConfig 数据源信息`。
84+
2. 请保证代码格式清晰。你可以直接修改下方的示例代码块。
85+
3. 请不要直接贴截图,文本更方便我们复制运行。
86+
value: |
87+
```typescript
88+
// 在这里粘贴你的核心代码,一定要保留上下两行的 ``` 符号!
89+
// Paste your code here, keeping the ``` around it!
9090
91-
```javascript
92-
// Your code here
91+
9392
```
9493
validations:
9594
required: true
@@ -155,3 +154,16 @@ body:
155154
- label: Safari (Limited support / 有限支持)
156155
- label: IE (Nonsupport / 不支持)
157156
- label: Others / 其他
157+
158+
- type: checkboxes
159+
id: terms
160+
attributes:
161+
label: 🪓 Check that you have performed the following steps / 请确认你已完成以下自查
162+
options:
163+
- label: 我已经主动搜索过问题列表 (I have actively searched the Issues list)
164+
- label: 我已经主动搜索过讨论区 (I have actively searched the Discussions list)
165+
- label: 我已经仔细阅读过官方文档 (I have read the Official Document)
166+
- label: 我确认这是一个 BUG,而不是如何使用的问题 (I confirm this is a BUG, not a usage question)
167+
- label: 我已经提供了有效的复现链接或严格的操作步骤 (I have provided a valid reproduction link or strict descriptive steps)
168+
validations:
169+
required: true

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
- [ ] Type optimization
1717

1818
🐛 Bugfix
19-
20-
- [ ] Solve the issue and close #0
19+
<!-- 如果没有相关的 issue 需要关闭,请删除这一行 -->
20+
- [ ] Solve the issue and close #1904
2121

2222
🔧 Chore
2323

@@ -41,6 +41,14 @@
4141
| ------ | ----- |
4242
| ❌ | ✅ |
4343

44+
### ⚠️ Breaking Changes
45+
46+
<!-- Does this PR introduce a breaking change? -->
47+
<!-- 这个 PR 是否包含破坏性变更?如果有,请说明它对现有用户的影响以及如何进行迁移。 -->
48+
49+
- [ ] Yes
50+
- [ ] No
51+
4452
### 🔗 Related issue link
4553

4654
<!-- If there is a related Issue/PR link -->

0 commit comments

Comments
 (0)