ccntrq / git-jira-branch

Manage branches for your Jira tickets
https://www.npmjs.com/package/git-jira-branch
MIT License
11 stars 2 forks source link

Allow for blank -t option on "create #522

Open tfalkarkea opened 6 days ago

tfalkarkea commented 6 days ago

Excited to have this tool, but my use-case doesn't appear to mesh. Our branches are named simply after the issue name, e.g. I would hope git-jira-branch create 3262 would create a branch called XXX-3262-automatically-delete-user-feedback. Supplying an empty or blank string to -t creates an invalid branch name, /XXX-3262-automatically-delete-user-feedback.

Would it be possible to have an empty -t flag create a valid branch name with no leading branch type? Or another flag to enable such a thing.

ccntrq commented 6 days ago

Hey @tfalkarkea

Thanks for your feedback. Sure that's possible. I'd even say it's the sensible thing to do when giving an empty branch type. Branches starting with a slash don't seem very useful to me.

I will be travelling for the next month and won't be able to work on this before December. If you would like to have a go at it yourself I would be able to review and merge it, and create a release.