Releases: cli/cli
GitHub CLI 2.74.2
What's Changed
🐛 Fixes
- Fix assignees being dropped from
gh pr edit
by @BagToad in #11065 - Add accurate context when run rerun fails by @leudz in #10774
- Avoid requesting PR reviewer twice by @williammartin in #11099
- Quote filenames suggested at the end of worklow run by @williammartin in #11134
- Fix expected error output of TestRepo/repo-rename-transfer-ownership by @aconsuegra in #10888
📚 Docs & Chores
- Add instructions for MidnightBSD installation by @laffer1 in #10699
- docs: update install command for Debian by @MagneticNeedle in #10935
- Fix step order for CodeQL workflow by @BagToad in #11145
- Add workflow to check
help wanted
labelling by @williammartin in #11105 - Quote workflow conditional by @williammartin in #11122
- Fix script path for help-wanted check by @BagToad in #11125
- Exclude 3rd party license compliance content from GHAS scanning by @andyfeller in #11127
- Second fix for file not found in help-wanted check by @BagToad in #11128
- Ensure gh executes in workflow check script by @williammartin in #11133
- Improve help wanted check skipping logic by @BagToad in #11135
Dependencies
- Bump go to 1.24 by @williammartin in #11142
- chore(deps): bump mislav/bump-homebrew-formula-action from 3.2 to 3.4 by @dependabot in #11066
- chore(deps): bump github.com/sigstore/protobuf-specs from 0.4.2 to 0.4.3 by @dependabot in #11092
- chore(deps): bump google.golang.org/grpc from 1.72.0 to 1.72.2 by @dependabot in #11033
- chore(deps): bump actions/attest-build-provenance from 2.3.0 to 2.4.0 by @dependabot in #11107
- chore(deps): bump github.com/in-toto/attestation from 1.1.1 to 1.1.2 by @dependabot in #11123
- chore(deps): bump github.com/google/go-containerregistry from 0.20.3 to 0.20.6 by @dependabot in #11120
- Bump golangci-lint to v2 by @williammartin in #11121
New Contributors
- @MagneticNeedle made their first contribution in #10935
- @laffer1 made their first contribution in #10699
Full Changelog: v2.74.1...v2.74.2
GitHub CLI 2.74.1
What's Changed
- Document support for
@copilot
ingh [pr|issue] edit --add-assignee
and--remove-assignee
by @timrogers in #11056 - Fix pr edit when URL is provided by @williammartin in #11057
- Fix const in PR finder tests by @babakks in #11091
Full Changelog: v2.74.0...v2.74.1
GitHub CLI 2.74.0
Security
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 GHSA-g9f5-x53j-h563
What's changed
✨ Features
- Add
preview prompter
command by @BagToad in #10745 - [gh run watch] Support
--compact
flag by @iamazeem in #10629 - Fix brew update notifications by @BagToad in #11024
🐛 Fixes
- Revert "[gh config] Escape pipe symbol in Long desc for website manual" by @BagToad in #11004
- Fix formatting in allowed values for
gh config --help
by @BagToad in #11003 - fix:
gh gist edit
panic when no file in a gist by @phanen in #10627 - Add retry logic when fetching TUF content in
gh attestation
commands by @malancas in #10943
📚 Docs & Chores
- Update README.md by @irhdab in #11022
- Add tests for
RenderJobs
andRenderJobsCompact
by @babakks in #11013 - Add example usage of
--head
option topr list
docs by @babakks in #10979 - Mention
pr create
will print the created PR's URL by @babakks in #10980 - Add Digest to ReleaseAsset struct by @bdehamer in #11030
Dependencies
- Bump
go-gh
to v2.12.1 by @BagToad in #11043 - chore(deps): bump github.com/gabriel-vasile/mimetype from 1.4.8 to 1.4.9 by @dependabot in #10825
- Update sigstore-go dependency to v1.0.0 by @malancas in #11028
- chore(deps): bump github.com/sigstore/protobuf-specs from 0.4.1 to 0.4.2 by @dependabot in #10999
- chore(deps): bump github.com/yuin/goldmark from 1.7.8 to 1.7.12 by @dependabot in #11032
New Contributors
Full Changelog: v2.73.0...v2.74.0
GitHub CLI 2.73.0
Copilot Coding Agent Support
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.
What's Changed
✨ Features
- Copilot is assignable to issues and pull requests with
issue edit
andpr edit
by @BagToad in #10992gh issue edit
: actors are assignable to issues by @BagToad in #10960gh pr edit
: Assign actors to pull requests by @BagToad in #10984issue edit
,pr edit
: handle display names in interactive assignee editing by @BagToad in #10990issue edit
,pr edit
: Support special non-interactive (flags) assignee name@copilot
by @BagToad in #10991
- [gh issue/pr comment] Add support for last comment delete for issues and PRs by @sinansonmez in #10596
- [gh issue view] Expose
closedByPullRequestsReferences
JSON field by @iamazeem in #10941 - Accessible prompter always displays selection defaults in a format readable by a screen reader by @BagToad in #10937
🐛 Fixes
- Fix
StatusJSONResponse
usage by @babakks in #10810 - Fix panic on
gh pr view 0
by @nopcoder in #10729 - Fix flakey test for accessible prompter by @BagToad in #10918
- Fix accessible prompter flaky tests by @babakks in #10977
- Handle missing archive URLs on release download by @williammartin in #10947
- Fix bug when removing all PR reviewers by @babakks in #10975
📚 Docs & Chores
- Feature detect v1 projects on pr view by @williammartin in #10821
- Feature detect v1 projects on non-interactive pr create by @williammartin in #10909
- Feature detect v1 projects on web mode pr create by @williammartin in #10911
- Feature detect v1 projects on interactive
pr create
by @williammartin in #10915 - Feature detect v1 projects on pr edit by @williammartin in #10942
- Move predicate type filtering in
gh attestation verify
by @malancas in #10670 - Improve assertion for disabled echo mode by @babakks in #10927
Dependencies
- chore(deps): bump actions/attest-build-provenance from 2.2.2 to 2.3.0 by @dependabot in #10886
- chore(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.6 to 2.0.7 by @dependabot in #10869
What's Changed
New Contributors
- @sinansonmez made their first contribution in #10596
- @nopcoder made their first contribution in #10729
Full Changelog: v2.72.0...v2.73.0
GitHub CLI 2.72.0
Accessibility public preview
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:
- customizable and contrasting colors
- non-interactive user input prompting
- text-based spinners
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! 🙌
What's Changed
✨ Features
- Introduce
gh accessibility
help topic highlighting GitHub CLI accessibility experiences by @andyfeller in #10890 - [gh pr view] Support
closingIssuesReferences
JSON field by @iamazeem in #10544
🐛 Fixes
- Fix expected error output of
TestRepo/repo-set-default
by @aconsuegra in #10884 - Ensure accessible password and auth token prompters disable echo mode by @andyfeller in #10885
- Fix: Accessible multiselect prompt respects default selections by @BagToad in #10901
New Contributors
- @aconsuegra made their first contribution in #10884
Full Changelog: v2.71.2...v2.72.0
GitHub CLI 2.71.2
What's Changed
- Fix pr create when push.default tracking and no merge ref by @williammartin in #10863
Full Changelog: v2.71.1...v2.71.2
GitHub CLI 2.71.1
What's Changed
- Fix pr create when branch name contains slashes by @williammartin in #10859
Full Changelog: v2.71.0...v2.71.1
GitHub CLI 2.71.0
What's Changed
✨ Features
gh pr create
: Support Git's@{push}
revision syntax for determining head ref by @BagToad in #10513- Introduce option to opt-out of spinners by @BagToad in #10773
- Update configuration support for accessible colors by @andyfeller in #10820
gh config
: add config settings for accessible prompter and disabling spinner by @BagToad in #10846
🐛 Fixes
- Fix multi pages search for gh search by @leudz in #10767
- Fix:
project
commands use shared progress indicator by @BagToad in #10817 - Issue commands should parse args early by @williammartin in #10811
- Feature detect v1 projects on
issue view
by @williammartin in #10813 - Feature detect v1 projects on non web-mode
issue create
by @williammartin in #10815 - Feature detect v1 projects on web mode issue create by @williammartin in #10818
- Feature detect v1 projects on issue edit by @williammartin in #10819
📚 Docs & Chores
Dependencies
- chore(deps): bump github.com/sigstore/sigstore-go from 0.7.1 to 0.7.2 by @dependabot in #10787
- Bump google.golang.org/grpc from 1.71.0 to 1.71.1 by @dependabot in #10758
New Contributors
Full Changelog: v2.70.0...v2.71.0
GitHub CLI 2.70.0
Accessibility
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.
Ensure table headers are thematically contrasting
#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:
For more information including demos from various official distributions, see #10649.
What's Changed
✨ Features
- Update go-gh and document available sprig funcs by @BagToad in #10680
- Introducing experimental support for rendering markdown with customizable, accessible colors by @andyfeller @jtmcg in #10680
- Ensure table datetime columns have thematic, customizable muted text by @andyfeller in #10709
- Ensure table headers are thematically contrasting by @andyfeller in #10649
- Introduce configuration setting for displaying issue and pull request labels in rich truecolor by @andyfeller in #10720
- Ensure muted text is thematic and customizable by @andyfeller in #10737
- [gh repo create] Show host name in repo creation prompts by @iamazeem in #10516
- Introduce accessible prompter for screen readers (preview) by @BagToad in #10710
🐛 Fixes
run list
: do not fail on organization/enterprise ruleset imposed workflows by @BagToad in #10660- Implement safeguard for
gh alias delete
test, prevent wiping out GitHub CLI configuration by @andyfeller in #10683 - Pin third party actions to commit sha by @BagToad in #10731
- Fallback to job run logs when step logs are missing by @babakks in #10740
- [gh ext] Fix
GitKind
extension directory path by @iamazeem in #10609 - Fix job log resolution to skip legacy logs in favour of normal/new ones by @babakks in #10769
📚 Docs & Chores
./script/sign
cleanup by @iamazeem in #10599- Fix typos in CONTRIBUTING.md by @rylwin in #10657
- Improve
gh at verify --help
, document json output by @phillmv in #10685 - Acceptance test issue/pr create/edit with project by @williammartin in #10707
- Escape dots in regexp pattern in
README.md
by @babakks in #10742 - Simplify cosign verification example by not using a regex. by @kommendorkapten in #10759
- Document UNKNOWN STEP in run view by @williammartin in #10770
Dependencies
- Update github.com/sigstore/sigstore-go to 0.7.1 and fix breaking function change by @malancas in #10749
New Contributors
Full Changelog: v2.69.0...v2.70.0
GitHub CLI 2.69.0
What's Changed
Features
- Commands that accept filepath arguments will do glob expansion for
*
characters, by @iamazeem in #10413
Bug Fixes
gh 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 #10625gh repo sync
provides a more informative error for missing workflow permissions when the token is provided by a GitHub app, by @wata727 in #10574gh api
no longer tries to encode URLs incorrectly, by @williammartin in #10630
Other
- Add cli-discuss-automation environment to triage.md by @jtmcg in #10552
- chore: remove redundant word in comment by @kevincatty in #10586
- Bump golang.org/x/net from 0.34.0 to 0.36.0 by @dependabot in #10593
New Contributors
- @kevincatty made their first contribution in #10586
- @wata727 made their first contribution in #10574
Full Changelog: v2.68.1...v2.69.0