Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ee318ae

Browse files
chore: update pull request template (doocs#1172)
1 parent fc56344 commit ee318ae

File tree

3 files changed

+34
-37
lines changed

3 files changed

+34
-37
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!--
2+
3+
🤭 感谢你的提交,请检查你的改动是否符合以下项目规范。
4+
5+
### 1. 格式化
6+
7+
我们项目中各种编程语言代码(包括文档)所采用的格式化工具不同,提交 pr 之前必须确保代码、文档正确格式化。
8+
9+
- .{md,js,ts,php,sql} 采用 prettier
10+
- .{c,cpp,java} 采用 clang-format
11+
- .{py} 采用 black
12+
- .{go} 采用 gofmt
13+
- 其它待完善
14+
15+
### 2. Git 提交信息
16+
17+
我们项目遵循 [AngularJS Git Commit Message Conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#) 规范,我们希望你的提交信息尽可能与项目保持一致。
18+
19+
- 新增或修改题解:feat: add/update solution(s) to lc problem(s): No.xxxx
20+
- 修复错误:fix: xxxx
21+
- 日常维护:chore: xxx
22+
23+
### 3. 其它补充
24+
25+
新增题解及代码时,需要创建 Solution.xxx 源代码文件(如果已存在,请确认算法是否更优,是则覆盖已有算法代码),同时,需要在 README.md 以及 README_EN.md 中添加对应的代码片段(英文文件中不要出现中文注释)
26+
27+
另外,编码风格(比如变量、函数的命名),尽量跟项目已有代码保持一致。
28+
29+
-->

‎.github/PULL_REQUEST_TEMPLATE/template_en.md‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
[中文模板](?quick_pull=1&template=pull_request_template.md)
2-
3-
---
4-
51
<!--
6-
🤭 Thank you for your contribution. Please check if your changes comply with the following project specifications.
7-
-->
82
9-
<!--
3+
🤭 Thank you for your contribution. Please check if your changes comply with the following project specifications.
104
115
### 1. Formatting
126

‎.github/pull_request_template.md‎

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,6 @@
1-
[English Template](?quick_pull=1&template=template_en.md)
1+
请切换到 `Preview` 选项卡选择对应的模板:
22

3-
---
3+
> Please go the the `Preview` tab and select the appropriate sub-template:
44
5-
<!--
6-
🤭 感谢你的提交,请检查你的改动是否符合以下项目规范。
7-
-->
8-
9-
<!--
10-
### 1. 格式化
11-
12-
我们项目中各种编程语言代码(包括文档)所采用的格式化工具不同,提交 pr 之前必须确保代码、文档正确格式化。
13-
14-
- .{md,js,ts,php,sql} 采用 prettier
15-
- .{c,cpp,java} 采用 clang-format
16-
- .{py} 采用 black
17-
- .{go} 采用 gofmt
18-
- 其它待完善
19-
20-
### 2. Git 提交信息
21-
22-
我们项目遵循 [AngularJS Git Commit Message Conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#) 规范,我们希望你的提交信息尽可能与项目保持一致。
23-
24-
- 新增或修改题解:feat: add/update solution(s) to lc problem(s): No.xxxx
25-
- 修复错误:fix: xxxx
26-
- 日常维护:chore: xxx
27-
28-
### 3. 其它补充
29-
30-
新增题解及代码时,需要创建 Solution.xxx 源代码文件(如果已存在,请确认算法是否更优,是则覆盖已有算法代码),同时,需要在 README.md 以及 README_EN.md 中添加对应的代码片段(英文文件中不要出现中文注释)
31-
32-
另外,编码风格(比如变量、函数的命名),尽量跟项目已有代码保持一致。 -->
5+
* [中文模板](?quick_pull=1&template=template.md)
6+
* [English Template](?quick_pull=1&template=template_en.md)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /