Merge pull request #2449 from statxc/feat/github-enterprise-url-support

feat: GitHub enterprise url support
This commit is contained in:
Dotta 2026-04-02 06:07:44 -05:00 committed by GitHub
commit 2c1883fc77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 121 additions and 68 deletions

View file

@ -375,6 +375,7 @@ describe("company portability", () => {
expect(
parseGitHubSourceUrl("https://github.com/paperclipai/companies?ref=feature%2Fdemo&path=gstack"),
).toEqual({
hostname: "github.com",
owner: "paperclipai",
repo: "companies",
ref: "feature/demo",
@ -389,6 +390,7 @@ describe("company portability", () => {
"https://github.com/paperclipai/companies?ref=abc123&companyPath=gstack%2FCOMPANY.md",
),
).toEqual({
hostname: "github.com",
owner: "paperclipai",
repo: "companies",
ref: "abc123",