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

[AXON-145] Added branch name validation for space characters #136

Merged

Conversation

marcomura
Copy link
Contributor

@marcomura marcomura commented Feb 20, 2025

From: https://bitbucket.org/atlassianlabs/atlascode/issues/771/error-start-work-failed-because-of-a-space

If the branch name contains a space, or ends with a space, the branch can't be created.

The cleanest way to solve this is adding a field validation on the UI itself, so it doesn't allow the space character to be typed. To be consistent with other logic, the space character is being replaced with a dash - while typing.

Typing "This is a branch" will result in typing "This-is-a-branch".

AXON-125-fixed

@marcomura marcomura merged commit 1eb76a1 into main Feb 20, 2025
2 checks passed
@marcomura marcomura deleted the AXON-145-start-work-failed-because-of-a-space-at-the-end-of branch February 20, 2025 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants