当前位置:网站首页>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 .
边栏推荐
- UPC -- expression evaluation
- XML序列化向后兼容
- vite2.9 中指定路径别名
- 网传互联网公司加班表,排名第一的没悬念
- Niubi 666, this project makes web page making as simple as building blocks
- Wechat applets - basics takes you to understand the life cycle of applets (I)
- Jinshan cloud team shared | 5000 words to understand how Presto matches with alluxio
- JS regular expression system explanation (comprehensive summary)
- ice - 资源
- Reinforcement learning - grid world
猜你喜欢
Principle and practice of bytecode reference detection
vite2.9 中指定路径别名
JS regular expression system explanation (comprehensive summary)
Kubernetes cluster lossless upgrade practice
Jinshan cloud team shared | 5000 words to understand how Presto matches with alluxio
How bacnet/ip gateway collects data of building centralized control system
Reinforcement learning - grid world
open62541直接导入NodeSet文件
pytorch RNN 学习笔记
Niubi 666, this project makes web page making as simple as building blocks
随机推荐
VM332 WAService. js:2 Error: _ vm. Changetabs is not a function
MySQL installation steps - how to create a virtual machine under Linux (1)
LeetCode+ 51 - 55 回溯、动态规划专题
Reading notes - MySQL technology l act: InnoDB storage engine (version 2)
普歌--三大基础排序,冒泡·选择·快速
[C language] detailed explanation of C language to obtain array length
Rust FFI programming - libc crate
DOM parsing of XML file case code sentence by sentence analysis
Mysql8.0和Mysql5.0访问jdbc连接
Wechat applets - basics takes you to understand the life cycle of applets (I)
《微信小程序-基础篇》带你了解小程序中的生命周期(一)
Comprehensive analysis of real enterprise software testing process
Libuv框架echo-server.c源码详解(TCP部分)
Mise en œuvre de l'actionneur asynchrone d'exécution à partir de zéro
ice - 资源
力扣515.在每棵树行中找最大值
ice, protobuf ,thrift -- 笔记
Hungry for a long time, the brain will enter the "power saving mode"! Your senses are weakened and you can't see clearly
My MVVM open source project "travel epidemic prevention app" has been released
【Rust日报】 2020-04-23 Rust 1.43.0 发布