You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
land-and-deploy: fork-branch ownership check can misread anonymous-HTTPS remotes #2765
That fixed the empty-owner bug on gh 2.83 and is verified live for the common setups. The residual edge: when the local remote is an anonymous HTTPS URL (no owner segment inferable, or an ssh-vs-https shape mismatch against the composed owner/name), the string comparison between the composed head repo and the local remote can misread ownership — the skill could give fork guidance to a non-fork branch, or treat a fork branch as local.
Repro shape
Clone via a mirror/proxy or credential-helper setup where git remote get-url origin returns an anonymous HTTPS URL that does not textually contain owner/name in the expected position (e.g. a self-hosted mirror path, or https://github.com/OWNER/REPO vs the SSH remote form (ssh:// / scp-style) casing/format drift).
Run /land-and-deploy on a PR whose head repo IS the base repo.
The ownership comparison misses and the skill walks the fork path (or vice versa).
Proposed fix
Resolve ownership canonically from the API instead of URL parsing: compare headRepository.nameWithOwner-composed identity against gh repo view --json nameWithOwner (the checkout's canonical repo), never against remote URL text. Touches the #2725 test pins, so it should be coordinated with that absorption's tests rather than hot-patched.
Why deferred
Decided at v1.78.0.0 ship time (wave PR #2752): the absorbed command is correct for every setup verified live; re-editing pinned community work at ship time for an unobserved edge adds churn. Filed instead with this repro shape.
/land-and-deploy no longer compares against the local remote URL: the base repo comes from gh repo view --json nameWithOwner and the head repo from the PR's headRepositoryOwner/headRepository fields, both canonical GitHub API values, with an explicit rule not to substitute the checkout's origin.
Fixed in v1.90.2.0 (#2972).
If you still see this on the latest gstack, please reopen with details.
Activity
capy-ai commentedon Oct 3, 2026
/land-and-deployno longer compares against the local remote URL: the base repo comes fromgh repo view --json nameWithOwnerand the head repo from the PR'sheadRepositoryOwner/headRepositoryfields, both canonical GitHub API values, with an explicit rule not to substitute the checkout'sorigin.Fixed in v1.90.2.0 (#2972).
If you still see this on the latest gstack, please reopen with details.