inkblot-branch-naming
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInkblot branch naming
Inkblot分支命名
This convention is only required when the work has a Jira ticket. If there is no ticket, do not invent a prefix, do not ask for a ticket, and do not restrict the name.
本规范仅在工作对应有Jira工单时要求遵守。如果没有工单,请勿添加前缀,不要索要工单,也不要限制分支名称。
Ticket work (required)
有工单的工作(必须遵守)
The branch starts with the full Jira key, lowercase. Do not add / / type prefixes.
feat/fix/feature/text
<ticket-id>-<short-kebab>- Full key, lowercase, one primary ticket (e.g. , not
pod2-2291)2-2291 - kebab is lowercase, 3–5 words — the change, not the ticket title
- Keep the whole name short enough to read in GitHub’s branch list (~50 characters)
分支以完整的Jira工单键开头,全小写。不要添加 / / 这类类型前缀。
feat/fix/feature/text
<ticket-id>-<short-kebab>- 完整的工单键,全小写,仅使用一个主工单(例如,而非
pod2-2291)2-2291 - kebab部分为全小写,3-5个单词——描述所做的变更,而非工单标题
- 整体名称要足够短,以便在GitHub的分支列表中完整显示(约50字符以内)
Examples
示例
pod2-2291-video-call-no-showpod1-3452-company-renewal-datespod1-3459-coaching-duration-options
pod2-2291-video-call-no-showpod1-3452-company-renewal-datespod1-3459-coaching-duration-options
Do not (ticket work only)
禁止操作(仅针对有工单的工作)
- Do not prefix the ticket ID (,
fix/pod2-2291-…,feat/…,feature/…)bf-… - Do not shorten the project key (,
2-2291-…)1-3452-… - Do not use uppercase in the branch name ()
POD2-2291-… - Do not put initials in the name ()
ji-pod1-2178-… - Do not append the target env (,
-qa)-master - Do not stack ticket IDs () — use the primary ticket
pod2-2276-2277-2282-… - Do not dump the full Jira title into the kebab
- 不要给工单ID添加前缀(如、
fix/pod2-2291-…、feat/…、feature/…)bf-… - 不要缩短项目键(如、
2-2291-…)1-3452-… - 分支名称中不要使用大写字母(如)
POD2-2291-… - 不要在名称中加入首字母缩写(如)
ji-pod1-2178-… - 不要追加目标环境后缀(如、
-qa)-master - 不要堆叠多个工单ID(如)——使用主工单ID即可
pod2-2276-2277-2282-… - 不要将完整的Jira工单标题直接作为kebab部分
No ticket
无工单情况
No naming rule. , , , or any other name are all fine.
hotfix/7.54.2sync/…qa-kuma无命名规则限制。、、或任何其他名称均可。
hotfix/7.54.2sync/…qa-kumaWhy
为什么要这样规定
- Ticket-first, no type prefix: Jira and need the key at the start.
git grep/feat/only adds length.fix/ - Full key, lowercase: is still the Jira key (linking works). Lowercase avoids macOS vs Linux case-sensitivity.
pod2-2291is not a Jira key, so GitHub/Jira will not attach the branch.2-2291 - Rule only when a ticket exists: Chores, syncs, and hotfixes without a ticket should not be blocked or renamed by the agent.
- Short kebab: GitHub truncates long branch names; the ticket title already lives in Jira.
- 工单优先,无类型前缀:Jira和需要工单键位于开头。
git grep/feat/只会增加名称长度。fix/ - 完整工单键,全小写:仍然是有效的Jira工单键(链接功能正常)。全小写可避免macOS与Linux之间的大小写敏感性问题。
pod2-2291不是有效的Jira工单键,因此GitHub/Jira无法将分支与工单关联。2-2291 - 仅在有工单时执行规则:无工单的杂务、同步操作和热修复不应被Agent阻止或要求重命名。
- 简短的kebab部分:GitHub会截断过长的分支名称,而工单标题已存在于Jira中。