-
Notifications
You must be signed in to change notification settings - Fork 357
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
Build GitRemote
url from it's parts
#4411
Conversation
Adds a static method on `GitRemote` that can be used to create a `URI` from the required parts: ``` URI buildRemoteUrl(Service service, boolean ssh, String origin, String path) ```
GitRemote
url from it's partsGitRemote
url from it's parts
related: #4414 |
BitbucketCloud, false, bitbucket.org, org/repo, https://bitbucket.org/org/repo | ||
BitbucketCloud, true, bitbucket.org, org/repo, ssh://[email protected]/org/repo.git | ||
Bitbucket, false, scm.company.com/context/path, org/repo, https://scm.company.com/context/path/scm/org/repo | ||
Bitbucket, true, scm.company.com/context/path, org/repo, ssh://[email protected]/context/path/org/repo.git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we agreed on not adding the port 7999 to the ssh URL for Bitbucket?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is in a separate PR, but we probably need to decide that first: #4414
replaced by #4429 |
What's changed?
Adds a static method on
GitRemote
that can be used to create aURI
from the required parts:What's your motivation?
A single place to put this logic, which is the reverse of the URL parser that is already in
GitRemote
Anything in particular you'd like reviewers to focus on?
Are all these URI's (in the test) correct
Anyone you would like to review specifically?
@bryceatmoderne
Checklist