Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git-Flow fails on branch names with spaces #311

Open
DarrenBishop opened this issue Jul 14, 2020 · 1 comment
Open

Git-Flow fails on branch names with spaces #311

DarrenBishop opened this issue Jul 14, 2020 · 1 comment

Comments

@DarrenBishop
Copy link

Would be awesome if there can be some simple/configurable sanitisation of the branch name used for the feature/hotfix/bugfix such that spaces are replaced with underscores and punctuation removed or replaced with underscores also.

I use JIRA integration and for any other issue tracker that uses PRJ-1234 style issue-ids, it would be great if an issue with id PRJ-1234 and summary Some JIRA managed issue with spaces in the summary could be transformed into

<branch-type>/PRJ-1234-Some_JIRA_managed_issue_with_spaces_in_the_summary

The UI offers many options; it would be even better if there was an option (checkbox) to 'guess' the branch-type e.g. a bug in JIRA maps to a bugfix branch in git-flow.

I narrowed down a possible location for this change to here:

ps. I am not experienced in Intellij UI Plugin development so hesitate to raise a PR for this - specifically, I am not familiar enough with the toolchain to test the changes, which is important, right?

@OpherV
Copy link
Owner

OpherV commented Jul 31, 2020

Thanks for the suggestion.
"to 'guess' the branch-type e.g. a bug in JIRA maps to a bugfix branch in git-flow." How would you logically implement this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants