Feature hasn't been suggested before.
Describe the enhancement you want to request
The GitHub Action (opencode github run and github/index.ts) hardcodes github.com URLs throughout — Octokit baseUrl, git credential config keys, noreply emails, fork remote URLs, image attachment regexes, and the token revocation endpoint. This prevents it from working on GHES instances.
GitHub Actions runners on GHES already set GITHUB_SERVER_URL, GITHUB_API_URL, and GITHUB_GRAPHQL_URL environment variables. Using these as the source of truth (with github.com defaults) would make the integration host-agnostic with zero configuration for GHES users.
The opencode github install command also only recognizes github.com remotes via parseGitHubRemote. Adding a host-agnostic parseGitRemote and detecting GHES would let the installer generate a workflow with use_github_token: true and write permissions pre-configured (since the opencode GitHub App only exists on github.com).
Feature hasn't been suggested before.
Describe the enhancement you want to request
The GitHub Action (
opencode github runandgithub/index.ts) hardcodesgithub.comURLs throughout — OctokitbaseUrl, git credential config keys, noreply emails, fork remote URLs, image attachment regexes, and the token revocation endpoint. This prevents it from working on GHES instances.GitHub Actions runners on GHES already set
GITHUB_SERVER_URL,GITHUB_API_URL, andGITHUB_GRAPHQL_URLenvironment variables. Using these as the source of truth (withgithub.comdefaults) would make the integration host-agnostic with zero configuration for GHES users.The
opencode github installcommand also only recognizesgithub.comremotes viaparseGitHubRemote. Adding a host-agnosticparseGitRemoteand detecting GHES would let the installer generate a workflow withuse_github_token: trueand write permissions pre-configured (since the opencode GitHub App only exists on github.com).