-
Notifications
You must be signed in to change notification settings - Fork 28k
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
[feature] git extension - add branch name validation #50241
Comments
(Experimental duplicate detection) |
Sure, submit ahead. |
Is this really something that should be in VS Code? And not say a Git server hook? |
@joaomoreno I've added the pr. @TomasHubelbauer ihmo being able to configure the character used for replacing whitespaces etc. in the branch name cannot be fixed in a hook. Question is if this is the solution |
Hmm having an API for this would be actually quite interesting, because it would enable your scenario so that VS Code could work the best for you but also allow teams to publish extensions of their own which would check the branch name policies or perhaps even do clever things like suggest prepending current ticket code to the branch name automatically if forgotten etc. |
@TomasHubelbauer yes would be interesting - I'm currently digging into the vs code source. For now I've attached a gif on the pull request for both solutions. |
Description:
whitespace
char-
configurable (we default space etc. to underscore - meaning we cannot just past in issue title and be done)Example implementation:
I can create an initial pr. with the implementation for further discussion, if this is something the vscode team would consider.
eg. if the change should enable extensions to lint/validate the branch name or be a configuration etc.
Kind regards Morten
The text was updated successfully, but these errors were encountered: