Skip to content

feat(list): expose the configured forge API host in JSON - #4857

Merged
max-sixty merged 1 commit into
max-sixty:mainfrom
sdi2200262:feat/issue-4762
Nov 21, 2026
Merged

max-sixty merged 1 commit into
max-sixty:mainfrom
sdi2200262:feat/issue-4762

Conversation

@sdi2200262

Copy link
Copy Markdown
Contributor

For a remote at [email protected]:team/app.git with forge.hostname set to api.company.example, wt list --format=json now reports both host: "git.company.example" and api_host: "api.company.example" in repo.forge. With no hostname configured, it omits api_host. A pull request targeting another repository keeps its own URL-derived metadata.

I tested both JSON formats with the branch-built CLI, covering user and project settings, equal web and API hostnames, and a checkout without a remote. I also checked PR-target isolation, verified that the generated schema marks the field optional, and ran the full pre-merge gate successfully.

Closes #4762.

@sdi2200262
sdi2200262 marked this pull request as ready for review November 20, 2026 11:40
@max-sixty
max-sixty merged commit ee7960c into max-sixty:main Nov 21, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

list --format json: give the API host of the forge (forge.hostname) in repo.forge

3 participants