intellij-community icon indicating copy to clipboard operation
intellij-community copied to clipboard

IDEA-257690 Add settings for validation of branch name

Open MitchyGoodness opened this issue 3 years ago • 1 comments

Add to the Settings menu, under Version Control | Git | Branching:

  • Checkbox to toggle if validation runs
  • Dropdown to select the string used to replace invalid branch name entries
    • Replacement strings selectable are an empty string, hyphen, or underscore
  • Checkbox to toggle if branch name is converted to lower case
  • Dropdown to select the maximum number of consecutive underscores allowed

Add checkbox to toggle if validation runs to the new branch name dialog.

MitchyGoodness avatar Aug 03 '22 14:08 MitchyGoodness

Hey @dmitriysmirnovjb, I forgot to add tests for git4idea.validators.GitRefNameValidator#cleanUpBranchNameOnTyping in git4idea.config.GitRefNameValidatorSettingsTest. I'll add a commit for that change a little later today.

MitchyGoodness avatar Aug 05 '22 14:08 MitchyGoodness

Would love to see this merged, would be a great QoL improvement. Anything specific holding this back @dmitriysmirnovjb ?

Mattwmaster58 avatar Sep 11 '22 00:09 Mattwmaster58

Good day, do we have any update on this one? Will it get merged some day? Thanks for info in advance.

Radek-Pysny avatar Dec 19 '22 14:12 Radek-Pysny

Hey @ybedrov and @dmitriysmirnovjb, do you need me to resolve conflicts, or adhere to a requirement before this can be merged? I would like to see this merged in, since it impacts my workflow.

MitchyGoodness avatar Dec 19 '22 18:12 MitchyGoodness

@MitchyGoodness you are godsent! Could you please resolve conflicts so that admins can merge? There are 6 different tracked issues and a bunch of twitter posts wanting this feature. IDEA-257690 nicknamed To Hell with underscores Our entire team would be super happy to get this feature.

reseto avatar Jan 31 '23 12:01 reseto

@reseto sorry for the wait! The conflict has been resolved.

MitchyGoodness avatar Feb 23 '23 14:02 MitchyGoodness

Hi, Any news on the release date of this feature ? We are very looking forward to use this feature in our company 👀

AlexBsrd avatar Mar 16 '23 17:03 AlexBsrd

Issue fixed by Dmitriy Smirnov

MitchyGoodness avatar Jun 20 '23 22:06 MitchyGoodness