Repository navigation
fix(shared): accept Enterprise Cloud pull request URLs - #16092
rahul05ranjan wants to merge 1 commit into
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused, backward-compatible fix that extends existing pull-request URL parsing to GitHub Enterprise Cloud hosts. It includes targeted regression coverage and does not alter schemas, deployment, defaults, or security-sensitive behavior. You can add or adjust custom eligibility rules. Learn more. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughGitHub pull-request parsing and issue-reference candidate conversion now accept hosts under ChangesGitHub Enterprise Cloud URL support
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: 🔵 Low · up to Custom-host Enterprise Server users cannot link a PR using the full URL, but can use the separate host, repository, and number fields. The limitation is bounded; the change is mergeable with owner awareness. Architecture SummaryArchitecture risk: 🟡 Medium · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
Reliability and maintainability
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation Issue
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Note Written by Hi! We are cleaning up open PRs, and this one appears to have been created with an older model ( |
Problem
A PR URL such as
https://my-awesome-company.ghe.com/platform/api/pull/9is rejected bylink_pull_request, even though the same PR can be linked by passing its host, repository and number separately. The other PR tools share the same URL parser.Change
Recognize
ghe.comand its subdomains alongside the existing GitHub host patterns. PR parsing and issue-reference conversion now use the same hostname check, so links, sibling PR URLs and autolinks agree on Enterprise Cloud URLs.Scope and approval
Fixes #16070. This is a small fix to the existing GitHub URL support, using the domain identified in the triage. It does not infer GitHub from an arbitrary hostname or change remote discovery.
Verification
The URL-parser test file passes all 33 tests. The three new Enterprise Cloud regressions fail on the original code and pass with this change; the domain-guard case also passes. A direct Node check confirms the reported URL parses correctly.
I ran these with an existing Vitest 4.1.5 installation, aliasing
vite-plus/testto Vitest. Focused ESLint checks, formatting at the repository's 100-column width, andgit diff --checkpass. I could not complete the repository's Vite+ install because its package downloads stalled, so its own runner and typecheck remain unverified locally.Model/harness: GPT-6 / Codex.