cz-cli icon indicating copy to clipboard operation
cz-cli copied to clipboard

Feature request: inherit git branch name to shorten on questions

Open danielgroen opened this issue 2 years ago • 2 comments

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

danielgroen avatar May 17 '22 08:05 danielgroen

You can use the default value to customize the processing. https://cz-git.qbenben.com/recipes/defaultIssues.html

hope can help u~

Zhengqbbb avatar Jun 17 '22 02:06 Zhengqbbb