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

Allow orgs with leading numbers in name in GitRemote #4727

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

timtebeek
Copy link
Contributor

Copy link

@tylervangorder-8451 tylervangorder-8451 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick turnaround

@timtebeek timtebeek merged commit 287e247 into main Nov 27, 2024
1 of 2 checks passed
@timtebeek timtebeek deleted the allow-orgs-with-number-in-name branch November 27, 2024 22:56
@timtebeek
Copy link
Contributor Author

You're welcome! You did just miss the release we did today, but I imagine you're comfortable running snapshot versions if needed. All the best!

@@ -279,7 +279,7 @@ private String repositoryPath(RemoteServerMatch match, URI normalizedUri) {
.replaceFirst("^/", "");
}

private static final Pattern PORT_PATTERN = Pattern.compile(":\\d+");
private static final Pattern PORT_PATTERN = Pattern.compile(":\\d+[^-\\w]"); // Allow orgs with numbers in name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github at least supports org names with only numbers.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess those will still get the exception thrown then, but at least this works for partial numeric org names. Welcome suggestions for a complete fix!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guess those will still get the exception thrown then, but at least this works for partial numeric org names. Welcome suggestions for a complete fix!

I had opened this previously #4651

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I had no idea. Approved just now & sorry about the conflict. Do let me know if there's ever something open for too long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Git Provenance generates a warning when a GitHub organization happens to start with a number
3 participants