Skip to content

Parse and respect non-github.com git remotes - #1258

Merged
mislav merged 6 commits into
trunkfrom
ghe-remotes
Jul 15, 2020
Merged

Parse and respect non-github.com git remotes#1258
mislav merged 6 commits into
trunkfrom
ghe-remotes

Conversation

@mislav

@mislav mislav commented Jun 23, 2020

Copy link
Copy Markdown
Contributor

When in the context of a git repository whose remotes point to a non-github.com host, take that host into account instead of ignoring it, and respect that hostname when generating URLs such as when adding the new git remote for a fork during pr create.

TODO:

  • Initialize proper hostname for api.Repository objects
  • Respect other hostname in issueFromArg and prFromArgs

Fixes #1181, fixes #1183

@mislav
mislav marked this pull request as ready for review July 2, 2020 18:55
@mislav
mislav requested a review from a team July 2, 2020 18:55
@mislav

mislav commented Jul 2, 2020

Copy link
Copy Markdown
Contributor Author

This is now ready for review! All Repository and repository-related objects (such as git remotes) now have knowledge of the hostname they map to. That hostname is then respected when generating URLs for those objects, such as those for added git remotes or for web-browsing commands.

@vilmibm

vilmibm commented Jul 13, 2020

Copy link
Copy Markdown
Contributor

Sorry this took so long, I mistakenly thought it had outstanding TODOs when it hadn't for quite a while ^_^()

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.

GHE compatibility: generating URLs GHE compatibility: git remote parsing

2 participants