如何贡献代码 #1368
ZhuoZhuoCrayon
announced in
Announcements
如何贡献代码
#1368
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
提交信息
commit message
${commit_type}: ${commit_msg}需满足以下正则(之一):
^(refactor|feat|perf|optimize|fix|docs|test|build|style)\(front\):(.*)"commit_type: 提交类型
commit_msg: 提交信息
一般情况下,提交都是关联 Github Issue,非常建议在
commit-msg中显式的声明或关闭 issue声明或关闭
issue(${action} #${issue_id})action:
issue还未完结commit_type,做如下约束:commit_type != bugfix-closeclosesclosedcommit_type == bugfix-fixfixesfixedresolveresolvesresolvedcommit合入主分支时,GitHub会关闭相应的issue,你可以参考:https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issueissue_id: 在提交代码前,应该先在
Github创建issue,简要记录背景和解决方案下面简单给一个样例
提交分支
当前主分支为 GitHub 的默认分支,例如
v2.3.xPR 的目标分支为,与默认分支主版本号/次版本号一致的,修订号最大的开发分支,例如
v2.3.1-dev自动生成版本日志
基于
Release Changelog Builder自动对提交信息进行去重,只要提交信息满足上述要求,即可在版本发布时记录到版本日志:https://github.com/marketplace/actions/release-changelog-builder项目提交信息转换规则,参考:https://github.com/TencentBlueKing/bk-nodeman/blob/v2.3.x/.github/configuration.json
Beta Was this translation helpful? Give feedback.
All reactions