Branch link in finished comment broken on GitHub Enterprise Server (regex hardcodes github.com)
Author: ManoharPaturiCreated Sep 18, 2026Updated Sep 19, 2026
Labelsbugp3
what happens
on github enterprise server the finished comment shows the branch as plain text with no link.
why
the owner/repo extraction in the finished-comment logic hardcodes github.com in its regex:
const repoMatch = jobUrl.match(/github\.com\/([^\/]+)\/([^\/]+)\//);on ghes the job url is https://github.mycompany.com/owner/repo/... so the match fails, branchUrl stays undefined, and the header falls back to plain text.
expected
the regex uses the actual server url (the job url's own origin) so ghes installs get a clickable branch link too.
env: main a4f54ef
Source: anthropics/claude-code-action