Feature branch name format

Right now it's possible for us to manage the Feature branch name format used by the Open Task command (by the way, it's not documented here https://www.jetbrains.com/help/phpstorm/2016.1/tasks.html), but there's a few issues:

  1. When using {summary} the string is not filtered correctly, letting the user attempt to create branch names with pipes, quotes and other special characters, causing an error (at least on my platform using git)
  2. Overall the placeholder system is VERY simple, what I would ideally want is to have {issuetype}/{id}-{summary_spine_case} with:
    * issuetype being feature/bugfix according to the type of task used to generate (the task manager seems to know, since bug tasks have a ladybug icon)
    * summary_spine_case being the summary with special characters removed, whitespaces collapsed and replaced with a dash, and the whole thing set to lowercase. To match with the output of other tools like BitBucket.

#2 can be achieved with either a larger set of placeholders or a slightly more powerful macro language.

P.S.: Opened an issue with this request, if you're interested in seeing this implements, please upvote: https://youtrack.jetbrains.com/issue/WI-31608



1. Could you provide me with an example of this, please? Steps to reproduce or screenshots would be great.

2. There is a related request here: <https://youtrack.jetbrains.com/issue/IDEA-116517>. You can vote for it in order to move it up in the queue and receive notifications regarding the progress of the feature. Feel free to participate in comments. See more information on working with tracker at <https://intellij-support.jetbrains.com/entries/23368682>. If you would like to have something different, it would be great if you could submit the feature request to our tracking system here: <http://youtrack.jetbrains.com/issues/IDEA#newissue=yes>. You will be able to receive the answer directly from our developers while other users will be able to write their opinion of your proposal.


Say the summary of the task I am working on was 

Foo | Bar "Baz"

When you open that task, it asks you if you want to create a new branch, and suggests a name (by the way, why just new branch and not the option to checkout a local or a remote branch?), if there's special characters there, they are not filtered out.


Please sign in to leave a comment.