Issue Summary
Jira's DVCS integration does not currently support GitHub Enterprise Cloud environments hosted under *.ghe.com subdomains. These are GitHub-hosted enterprise tenants that use a separate subdomain for API traffic (e.g. api.<subdomain>.ghe.com). The current DVCS connector only supports GitHub Cloud (github.com) and GitHub Enterprise Server (self-managed), which assumes both UI and API traffic are handled under the same base domain.
Steps to Reproduce
- In Jira, navigate to Administration > DVCS Accounts and click "Link an account"
- Toggle the selector to GitHub Enterprise
- Enter a GitHub Enterprise Cloud subdomain (e.g. `my-org.ghe.com`)
- Authenticate and save the integration
- Wait for repositories to sync or view the activity log
Expected Results
DVCS should support GitHub Enterprise Cloud environments by properly routing API calls under api.<subdomain>.ghe.com and successfully syncing repositories and pull requests.
Actual Results
- Repository sync may appear partially successful.
- Pull requests fail to sync.
- The following error is observed:
001x000001x1 abcd 10.10.10.13 /rest/bitbucket/1.0/repository/1/softsync [c.a.j.p.d.spi.github.GithubClientWithTimeout] Failed to execute request [GET /repos/{organization}/{repository}/events] response code: 404, errors:
Unable to complete request that contains suffixed values in the response payloads. (404)
Workaround
None.