gh pr create regression fixThis release fixes a regression introduced in v2.76.1 where organization teams were not present in prompts for pull request reviewers. This caused problems in multiple commands:
gh pr create could not select teams when adding pull request reviewersgh pr create --reviewer flag did not present a list of organization teamsgh pr edit --add-reviewer flag did not present a list of organization teamsgh pr edit --remove-reviewer flag did not present a list of organization teamsFor more information, see https://github.com/cli/cli/issues/11403
gh-models not respecting API rate-limit by @babakks in https://github.com/cli/cli/pull/11398Full Changelog: https://github.com/cli/cli/compare/v2.76.1...v2.76.2
gh pr create regression fixThis release fixes a regression introduced in v2.76.0 where organization teams were retrieved outside of intentional use cases. This caused problems for GitHub Enterprise Server users using the GitHub Actions automatic token that does not have access to organization teams.
For more information, see https://github.com/cli/cli/issues/11360
gh pr create, only fetch teams when reviewers contain a team by @BagToad in https://github.com/cli/cli/pull/11361push to trunk branch by @andyfeller in https://github.com/cli/cli/pull/11325api --preview docs by @jsoref in https://github.com/cli/cli/pull/11274Full Changelog: https://github.com/cli/cli/compare/v2.76.0...v2.76.1
GitHub Copilot Pro+ and Copilot Enterprise subscribers can now assign issues to GitHub Copilot during issue creation using:
gh issue create --assignee @copilotgh issue create --assignee @copilot --webCopilot (AI) as assignee in gh issue create metadataFor more details, refer to the full changelog post for Copilot coding agent.
gh issue create by @andyfeller in https://github.com/cli/cli/pull/11279release view command by @bdehamer in https://github.com/cli/cli/pull/11251extension and filename qualifiers into path qualifier for web code search by @samcoe in https://github.com/cli/cli/pull/11211Full Changelog: https://github.com/cli/cli/compare/v2.75.1...v2.76.0
gh pr create prioritize --title and --body over --fill when --web is present" by @andyfeller in https://github.com/cli/cli/pull/11300~/.config/gh/config.yml by @kurahaupo in https://github.com/cli/cli/pull/11246third-party/ folder out of CodeQL results by @BagToad in https://github.com/cli/cli/pull/11278third-party source from golangci-lint by @andyfeller in https://github.com/cli/cli/pull/11293Full Changelog: https://github.com/cli/cli/compare/v2.75.0...v2.75.1
--no-repos-selected on gh secret set by @williammartin in https://github.com/cli/cli/pull/11217gh pr create prioritize --title and --body over --fill when --web is present by @dankrzeminski32 in https://github.com/cli/cli/pull/10547HTTP 404 when deleting remote branch in pr merge by @babakks in https://github.com/cli/cli/pull/11234workflow_dispatch support to PR Help Wanted check by @BagToad in https://github.com/cli/cli/pull/11179GH_TOKEN env variable from workflow by @BagToad in https://github.com/cli/cli/pull/11190apt in installation instructions by @tklauser in https://github.com/cli/cli/pull/11216cli/cli repository by @andyfeller in https://github.com/cli/cli/pull/11060.rsyso generation script by @andyfeller in https://github.com/cli/cli/pull/11257Full Changelog: https://github.com/cli/cli/compare/v2.74.2...v2.75.0
gh pr edit by @BagToad in https://github.com/cli/cli/pull/11065help wanted labelling by @williammartin in https://github.com/cli/cli/pull/11105Full Changelog: https://github.com/cli/cli/compare/v2.74.1...v2.74.2
@copilot in gh [pr|issue] edit --add-assignee and --remove-assignee by @timrogers in https://github.com/cli/cli/pull/11056Full Changelog: https://github.com/cli/cli/compare/v2.74.0...v2.74.1
A security vulnerability has been identified in a core gh dependency, go-gh, where an attacker-controlled GitHub Enterprise Server could result in executing arbitrary commands on a user's machine by replacing HTTP URLs provided by GitHub with local file paths for browsing.
This issue is addressed in this gh release by updating go-gh to a fixed version.
For more information, see https://github.com/cli/go-gh/security/advisories/GHSA-g9f5-x53j-h563
preview prompter command by @BagToad in https://github.com/cli/cli/pull/10745--compact flag by @iamazeem in https://github.com/cli/cli/pull/10629gh config --help by @BagToad in https://github.com/cli/cli/pull/11003gh gist edit panic when no file in a gist by @phanen in https://github.com/cli/cli/pull/10627gh attestation commands by @malancas in https://github.com/cli/cli/pull/10943RenderJobs and RenderJobsCompact by @babakks in https://github.com/cli/cli/pull/11013--head option to pr list docs by @babakks in https://github.com/cli/cli/pull/10979pr create will print the created PR's URL by @babakks in https://github.com/cli/cli/pull/10980go-gh to v2.12.1 by @BagToad in https://github.com/cli/cli/pull/11043Full Changelog: https://github.com/cli/cli/compare/v2.73.0...v2.74.0
You can now assign issues to GitHub Copilot directly from gh, just as you would assign them to a teammate. Use gh issue edit <number> --add-assignee @copilot to assign the GitHub Copilot coding agent, and Copilot will work in the background to understand the issue, propose a solution, and open a pull request when it's ready for your review. If you run gh issue edit interactively, Copilot (AI) will be displayed as a potential assignee. This feature is available for GitHub Copilot Pro+ and Copilot Enterprise subscribers. For more details, refer to the full changelog post for Copilot coding agent.
issue edit and pr edit by @BagToad in https://github.com/cli/cli/pull/10992
gh issue edit: actors are assignable to issues by @BagToad in https://github.com/cli/cli/pull/10960gh pr edit: Assign actors to pull requests by @BagToad in https://github.com/cli/cli/pull/10984issue edit, pr edit: handle display names in interactive assignee editing by @BagToad in https://github.com/cli/cli/pull/10990issue edit, pr edit: Support special non-interactive (flags) assignee name @copilot by @BagToad in https://github.com/cli/cli/pull/10991closedByPullRequestsReferences JSON field by @iamazeem in https://github.com/cli/cli/pull/10941StatusJSONResponse usage by @babakks in https://github.com/cli/cli/pull/10810gh pr view 0 by @nopcoder in https://github.com/cli/cli/pull/10729pr create by @williammartin in https://github.com/cli/cli/pull/10915gh attestation verify by @malancas in https://github.com/cli/cli/pull/10670Full Changelog: https://github.com/cli/cli/compare/v2.72.0...v2.73.0
This release marks the public preview of several accessibility improvements to the GitHub CLI that have been under development over the past year in partnership with our friends at Charm including:
These new experiences are captured in a new gh a11y help topic command, which goes into greater detail into the motivation behind each of them as well as opt-in configuration settings / environment variables.
We would like you to share your feedback and join us on this journey through one of GitHub Accessibility feedback channels! 🙌
gh accessibility help topic highlighting GitHub CLI accessibility experiences by @andyfeller in https://github.com/cli/cli/pull/10890closingIssuesReferences JSON field by @iamazeem in https://github.com/cli/cli/pull/10544TestRepo/repo-set-default by @aconsuegra in https://github.com/cli/cli/pull/10884Full Changelog: https://github.com/cli/cli/compare/v2.71.2...v2.72.0
Full Changelog: https://github.com/cli/cli/compare/v2.71.1...v2.71.2
Full Changelog: https://github.com/cli/cli/compare/v2.71.0...v2.71.1
gh pr create: Support Git's @{push} revision syntax for determining head ref by @BagToad in https://github.com/cli/cli/pull/10513gh config: add config settings for accessible prompter and disabling spinner by @BagToad in https://github.com/cli/cli/pull/10846project commands use shared progress indicator by @BagToad in https://github.com/cli/cli/pull/10817issue view by @williammartin in https://github.com/cli/cli/pull/10813issue create by @williammartin in https://github.com/cli/cli/pull/10815Full Changelog: https://github.com/cli/cli/compare/v2.70.0...v2.71.0
This release contains dark shipped changes that are part of a larger GitHub CLI accessibility preview still under development. More information about these will be announced later this month including various channels to work with GitHub and GitHub CLI maintainers on shaping these experiences.
cli/cli#8292 is a long time issue where table headers were difficult to see in terminals with light background. Ahead of the aforementioned preview, v2.70.0 has shipped changes that improve the out-of-the-box experience based on terminal background detection.
The following screenshots demonstrate the Mac Terminal using the Basic profile, which responds to user's appearance preferences:
<img width="1512" alt="Screenshot of gh repo list in light background terminal" src="https://github.com/user-attachments/assets/87413dde-eec8-43eb-9c16-dc84f8249ddf" /> <img width="1512" alt="Screenshot of gh repo list in dark background terminal" src="https://github.com/user-attachments/assets/7430b42c-7267-402b-b565-a296beb4d5ea" />For more information including demos from various official distributions, see cli/cli#10649.
run list: do not fail on organization/enterprise ruleset imposed workflows by @BagToad in https://github.com/cli/cli/pull/10660gh alias delete test, prevent wiping out GitHub CLI configuration by @andyfeller in https://github.com/cli/cli/pull/10683GitKind extension directory path by @iamazeem in https://github.com/cli/cli/pull/10609./script/sign cleanup by @iamazeem in https://github.com/cli/cli/pull/10599gh at verify --help, document json output by @phillmv in https://github.com/cli/cli/pull/10685README.md by @babakks in https://github.com/cli/cli/pull/10742Full Changelog: https://github.com/cli/cli/compare/v2.69.0...v2.70.0
* characters, by @iamazeem in https://github.com/cli/cli/pull/10413gh issue/pr comment --edit-last no longer creates a comment in non-interactive mode if there weren't one. A new flag --create-if-none provides this behaviour, by @andyfeller in https://github.com/cli/cli/pull/10625gh repo sync provides a more informative error for missing workflow permissions when the token is provided by a GitHub app, by @wata727 in https://github.com/cli/cli/pull/10574gh api no longer tries to encode URLs incorrectly, by @williammartin in https://github.com/cli/cli/pull/10630Full Changelog: https://github.com/cli/cli/compare/v2.68.1...v2.69.0
Full Changelog: https://github.com/cli/cli/compare/v2.68.0...v2.68.1
gh attestation verify by @malancas in https://github.com/cli/cli/pull/10308gh issue/pr comment] Add --create-if-none and prompts to create a comment if no comment already exists by @latzskim in https://github.com/cli/cli/pull/10427--succeed-on-no-caches flag to return exit code 0 by @iamazeem in https://github.com/cli/cli/pull/10327GetLocalAttestations and clean up custom registry transport by @malancas in https://github.com/cli/cli/pull/10382GH_REPO too in addition to --repo for disambiguation by @williammartin in https://github.com/cli/cli/pull/10539
gh secret subcommands not working outside of a repository)remoteResolver caching issue by @iamazeem in https://github.com/cli/cli/pull/10456gh OAuth tokens in auth logout's help by @BagToad in https://github.com/cli/cli/pull/10490A bug in gh attestation verify may return an incorrect zero exit status when no matching attestations are found for the specified --predicate-type <value> or the default https://slsa.dev/provenance/v1 if not specified. This issue only arises if an artifact has an attestation with a predicate type different from the one provided in the command. As a result, users relying solely on these exit codes may mistakenly believe the attestation has been verified, despite the absence of an attestation with the specified predicate type and the tool printing a verification failure.
Users are advised to update gh to version v2.67.0 as soon as possible.
For more information, see https://github.com/cli/cli/security/advisories/GHSA-fgw4-v983-mgp8
gh pr checkout now supports interactively selecting a pull requestSimilar to commands like gh workflow run which prompts for a workflow to run, now gh pr checkout will prompt for a pull request to checkout. The list is currently limited to the most recent 10 pull requests in the repository.
https://github.com/user-attachments/assets/0b2e3761-7318-4573-8a23-ae6f1a44b018
Big thank you to @nilvng for implementing this 🙌
We've updated our CONTRIBUTING.md guidelines to give more clarity around old help wanted issues.
TLDR:
@cli/code-reviewers when an issue you want to work on does not have clear Acceptance CriteriaNote: Acceptance Criteria is posted as an issue comment by a core maintainer.
See https://github.com/cli/cli/pull/10381 and https://github.com/cli/cli/pull/10395 for more information.
❓ Have feedback on anything? We'd love to hear from you in a discussion post ❤️
gh repo rename is used with a new repo name that contains an owner by @timrogers in https://github.com/cli/cli/pull/10364iterationId field in ProjectV2ItemFieldIterationValue by @iamazeem in https://github.com/cli/cli/pull/10329--slurp flag by @iamazeem in https://github.com/cli/cli/pull/10332--ref flag by @iamazeem in https://github.com/cli/cli/pull/10328help wanted issues and pull requests by @BagToad in https://github.com/cli/cli/pull/10381gh pr checks in the Long section by @iamazeem in https://github.com/cli/cli/pull/10389Full Changelog: https://github.com/cli/cli/compare/v2.66.1...v2.67.0
gh pr view fails with provided URLThis addresses a regression in gh pr view was reported in #10352. This regression was due to a change in v2.66.0 that no longer allowed gh pr subcommands to execute properly outside of a git repo.
gh pr view fails with provided URL by @jtmcg in https://github.com/cli/cli/pull/10354Full Changelog: https://github.com/cli/cli/compare/v2.66.0...v2.66.1
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