当前位置:网站首页>Code submission specification
Code submission specification
2022-06-28 07:14:00 【Windyº】
fix: type by fix The submission of indicates that a... Has been fixed in the code base bug( This and the semantic version of PATCH Corresponding ).feat: type by feat The submission of represents a new feature in the code base ( This and the semantic version of MINOR Corresponding ).- BREAKING CHANGE: At the beginning of the optional body or footnote, there is BREAKING CHANGE: Submission of , Indicates that disruptive changes have been introduced ( This and the semantic version of MAJOR Corresponding ). Disruptive changes can be arbitrary type Part of the submission . about fix:、feat: and chore:, And more type for , It's all valid .
- Others in fix: and feat: Other submissions type They all support , for example Angular Appointment Recommended in docs:、style:、refactor:、perf:、test:、chore:, However, these labels are not mandatory in the agreed submission specification .
Other label meanings :
docs: file (documentation)
style: Format ( Changes that do not affect code operation )
refactor: restructure ( It's not new , It's not a revision bug Code changes )
test: Add tests
chore: Changes in the build process or AIDS
Agreed submission specifications
Keywords in this document “ must ”、“ prohibit ”、“ need ”、“ Should ”、“ It shouldn't be ”、“ should ”、“ Should not be ”、“ recommend ”、“ Sure ” and “ Optional ” Should be in accordance with the RFC 2119 Description and explanation of .
- Each submission must use the type field prefix , This consists of a shape such as feat or fix The nouns of , Followed by a colon and a space .
- When a submission implements a new feature for an application or class library , You have to use feat type .
- When a submission is fixed for an application bug when , You have to use fix type .
- Optional scope fields can be provided after the type . A scope is a phrase that describes a part of the code base , Enclosed in parentheses , Form like fix(parser): etc. .
- The description field must immediately follow the type or scope prefix . Description refers to a short description of the code changes , Form like fix: array parsing issue when multiple spaces were contained in string.
- After a brief description , You can write longer submission text , Provide additional context information for code changes . The body must start with a blank line at the end of the description field .
- After a blank line at the end of the body , You can write footnotes ( If the text is missing , It can be written after the description ). Footnotes should include additional... For code changes issue Quote information ( For example, it fixes issue, similar Fixes #13 etc. ).
- Disruptive changes must be shown in the body of the submission or in footnotes . A destructive change must contain capitalized text BREAKING CHANGE, Followed by a colon and a space .
- stay BREAKING CHANGE: A description must then be provided , To describe right API Changes . for example BREAKING CHANGE: environment variables now take precedence over config files.
- Footnotes must contain only BREAKING CHANGE、 External links 、issue References and other metadata information .
- In the submission instructions , have access to feat and fix Other types .
Why use contractual submission
- Automatic generation CHANGELOG.
- Based on the type of submission , Automatically determine semantic version changes .
- To colleagues 、 The public and other stakeholders communicate the nature of the change .
- Trigger the build and deploy process .
- Make it easier for people to explore structured submission history , Reduce the difficulty of contributing to the project .
边栏推荐
猜你喜欢

Wechat applets - basics takes you to understand the life cycle of applets (I)

Comprehensive analysis of real enterprise software testing process

Libuv framework echo server C source code explanation (TCP part)

金山云团队分享 | 5000字读懂Presto如何与Alluxio搭配

Practice of traffic recording and playback in vivo

C语言教程大全

Vivo browser rapid development platform practice - Overview
面经---测试工程师web端自动化---大厂面试题

C language tutorial

Overview, implementation and use of CRC32
随机推荐
Encyclopedia of scala operators
MMR重排(相似度通过编辑距离和重复度计算)
R 语言 ggmap
一个小工具可以更快的写爬虫
Comment la passerelle BACnet / IP recueille - t - elle les données du système central de contrôle des bâtiments?
Sword finger offer II 091 Paint the house
Mysql57 zip file installation
SQL statement optimization steps (1)
R language drawing ggplot2 seasonal graph
[rust daily] May 24, 2020 rush, rocket, Mun, caspin
CMAKE小知识
Practice and exploration of vivo live broadcast application technology
【Rust翻譯】從頭實現Rust异步執行器
ABAP skill tree
7-2 芬兰木棋 结构体排序
"Jay bear" plummeted by 96.6%. Why is NFT with star goods cold?
An important term in MySQL -- CRUD
XML序列化向后兼容
同花顺网上开户安全吗
华为云计算之物理节点CNA安装教程