GitHub CLI 2.66.0
gh pr view and gh pr status now respect common triangular workflow configurationsPreviously, gh pr view and gh pr status would fail for pull request's (PR) open in triangular workflows. This was due to gh being unable to identify the PR's corresponding remote and branch refs on GitHub.
Now, gh pr view and gh pr status should successfully identify the PR's refs when the following common git configurations are used:
branch.<branchName>.pushremote is setremote.pushDefault is setBranch specific configuration, the former, supersedes repo specific configuration, the latter.
Additionally, if the @{push} revision syntax for git resolves for a branch, gh pr view and gh pr status should work regardless of additional config settings.
For more information, see
gh secret list, gh secret set, and gh secret delete now require repository selection when multiple git remotes are presentPreviously, gh secret list, gh secret set, and gh secret delete would determine which remote to target for interacting with GitHub Actions secrets. Remotes marked as default using gh repo set-default or through other gh commands had higher priority when figuring out which repository to interact with. This could have unexpected outcomes when using gh secret commands with forked repositories as the upstream repository would generally be selected.
Now, gh secret commands require users to disambiguate which repository should be the target if multiple remotes are present and the -R, --repo flag is not provided.
For more information, see https://github.com/cli/cli/issues/4688
Previously, the GitHub CLI would notify users about newer versions every time an extension was executed. This did not match GitHub CLI notices, which only notified users once every 24 hours and could be disabled through an environment variable.
Now, extension update notices will behave similar to GitHub CLI notices. To disable extension update notices, set the GH_NO_EXTENSION_UPDATE_NOTIFIER environment variable.
For more information, see https://github.com/cli/cli/issues/9925
gh attestation attestation bundle fetching logic by @malancas in https://github.com/cli/cli/pull/10185gh attestation verify table output by @malancas in https://github.com/cli/cli/pull/10104@{push} by @Frederick888 in https://github.com/cli/cli/pull/9208gh attestation bundle fetching logic by @malancas in https://github.com/cli/cli/pull/10339gh gist view and gh gist edit prompts with no TTY by @mateusmarquezini in https://github.com/cli/cli/pull/10048ReadBranchConfig and prSelectorForCurrentBranch by @jtmcg in https://github.com/cli/cli/pull/10197--workflow flag by @iamazeem in https://github.com/cli/cli/pull/10323gh issue create by @andyfeller in https://github.com/cli/cli/pull/10208gh attestation verify integration tests by @malancas in https://github.com/cli/cli/pull/10102Big thank you to our many new and longtime contributors making this release happen!! ❤️ ✨
Full Changelog: https://github.com/cli/cli/compare/v2.65.0...v2.66.0
Fetched April 8, 2026