Skip to content

Support URLs in forge pr checkout#104

Open
untitaker wants to merge 1 commit into
git-pkgs:mainfrom
untitaker:pr-checkout-url
Open

Support URLs in forge pr checkout#104
untitaker wants to merge 1 commit into
git-pkgs:mainfrom
untitaker:pr-checkout-url

Conversation

@untitaker
Copy link
Copy Markdown
Contributor

@untitaker untitaker commented May 25, 2026

Fix #102

forge has some helper functions that parse repo/owner from a URL, all within detect.go and forge.go. For example splitOwnerRepo just handles all URLs with zero levels of abstraction.

But I think this is the right architecture instead: Parse domain out of URL, and dispatch to the respective forge module. The cost is quite a bit of code duplication, but the logic can be tested separately.

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.

Support for forge pr checkout URL

1 participant