commitizen / commitizen/cz-cli

Feature request: inherit git branch name to shorten on questions

未关闭
#935 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
17.5k
派生
566
平均合并
8 小时 16 分钟
30 天内合并 PR
1

描述

Hi,

In many companies git branches are named after something like this: `feature/ticket-15`.

My feature request would be:
an option to inherit the current branch name, with even the option to define how you write your branch name.

so thhe option would be something like this:
`{
inheritGitBranch: true // results in feature/issue-ticket
}`
*This will let you skip the "type" and "scope" questions

By putting the option like this:
`{
inheritGitBranch: ["type", "/", "scope"]
}`
you can even switch scope, and type or even change the devider to '-'.

However, i think this would make a lot of devs happy since it prevents you from 2 steps

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。