Releases: cli/cli
GitHub CLI 2.76.1
gh pr create
regression fix
This 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 #11360
What's Changed
🐛 Fixes
📚 Docs & Chores
- add tenancy aware for san matcher by @ejahnGithub in #11261
- Run Lint and Tests on
push
totrunk
branch by @andyfeller in #11325 - update ownership of pkg/cmd/release/shared/ by @ejahnGithub in #11326
- Automate spam issue detection by @babakks in #11316
- Improve
api
--preview
docs by @jsoref in #11274 - Incorporate govulncheck into workflows by @andyfeller in #11332
- chore(deps): bump advanced-security/filter-sarif from 1.0.0 to 1.0.1 by @dependabot[bot] in #11298
- chore(deps): bump github.com/sigstore/sigstore-go from 1.0.0 to 1.1.0 by @dependabot[bot] in #11307
Full Changelog: v2.76.0...v2.76.1
GitHub CLI 2.76.0
Copilot Coding Agent Support
GitHub Copilot Pro+ and Copilot Enterprise subscribers can now assign issues to GitHub Copilot during issue creation using:
- Command-line flag:
gh issue create --assignee @copilot
- Launching web browser:
gh issue create --assignee @copilot --web
- Or interactively selecting
Copilot (AI)
as assignee ingh issue create
metadata
For more details, refer to the full changelog post for Copilot coding agent.
What's Changed
✨ Features
- Assign Copilot during
gh issue create
by @andyfeller in #11279 - Display immutable field in
release view
command by @bdehamer in #11251
🐛 Fixes
- FIX: Do not fetch logs for skipped jobs by @babakks in #11312
- Transform
extension
andfilename
qualifiers intopath
qualifier for web code search by @samcoe in #11211
📚 Docs & Chores
- FIX: Workflow does not contain permissions by @BagToad in #11322
- Add automated feature request response workflow by @BagToad in #11299
Full Changelog: v2.75.1...v2.76.0
GitHub CLI 2.75.1
What's Changed
🐛 Fixes
- Ensure hostnames are visible in CLI website by @andyfeller in #11295
- Revert "Fix:
gh pr create
prioritize--title
and--body
over--fill
when--web
is present" by @andyfeller in #11300
📚 Docs & Chores
- Ensure go directive is always .0 version in bump by @williammartin in #11259
- Minor (1-word) documentation typo in generated
~/.config/gh/config.yml
by @kurahaupo in #11246 - Automate closing of stale issues by @babakks in #11268
- Filter the
third-party/
folder out of CodeQL results by @BagToad in #11278 - Exclude
third-party
source from golangci-lint by @andyfeller in #11293
Dependencies
- Bump Go to 1.24.5 by @github-actions[bot] in #11255
- chore(deps): bump github.com/sigstore/protobuf-specs from 0.4.3 to 0.5.0 by @dependabot[bot] in #11263
- chore(deps): bump golang.org/x/term from 0.32.0 to 0.33.0 by @dependabot[bot] in #11266
- chore(deps): bump golang.org/x/sync from 0.15.0 to 0.16.0 by @dependabot[bot] in #11264
- chore(deps): bump golang.org/x/text from 0.26.0 to 0.27.0 by @dependabot[bot] in #11265
- chore(deps): bump golang.org/x/crypto from 0.39.0 to 0.40.0 by @dependabot[bot] in #11275
New Contributors
- @kurahaupo made their first contribution in #11246
- @github-actions[bot] made their first contribution in #11255
Full Changelog: v2.75.0...v2.75.1
GitHub CLI 2.75.0
What's Changed
✨ Features
- init release verify subcommands by @ejahnGithub in #11018
- Embed Windows resources (VERSIONINFO) during build by @babakks in #11048
- Support
--no-repos-selected
ongh secret set
by @williammartin in #11217
🐛 Fixes
- Fix:
gh pr create
prioritize--title
and--body
over--fill
when--web
is present by @dankrzeminski32 in #10547 - fix: get token for active user instead of blank if possible by @anuraaga in #11038
- Use Actions API to retrieve job run logs as a fallback mechanism by @babakks in #11172
- Fix query object state mutation during pagination by @babakks in #11244
- Handle
HTTP 404
when deleting remote branch inpr merge
by @babakks in #11234
📚 Docs & Chores
- chore: fix function name by @jinjingroad in #11149
- chore: update Go version to 1.24 in devcontainer configuration and docs by @tMinamiii in #11158
- Ensure lint workflow checks whether 3rd party license and code is up to date by @andyfeller in #11047
- docs: install_linux.md: add Solus linux install instructions by @chax in #10823
- Fix missing newline in install_linux.md by @BagToad in #11160
- Ensure automation uses pinned go-licenses version by @andyfeller in #11161
- Add
workflow_dispatch
support to PR Help Wanted check by @BagToad in #11179 - Remove unused
GH_TOKEN
env variable from workflow by @BagToad in #11190 - Add workflow to automate go version bumping by @williammartin in #11189
- Fix inconsistent use of tabs and spaces by @Stefan-Heimersheim in #11194
- Decouple arg parsing from PR finder by @babakks in #11192
- docs: consistently use
apt
in installation instructions by @tklauser in #11216 - Ensure bump go script has git user configured by @williammartin in #11229
- Inject token into bump-go workflow by @williammartin in #11233
- Reinstating Primer Style CLI content within
cli/cli
repository by @andyfeller in #11060 - Add setup-go to bump-go workflow by @williammartin in #11237
- Ensure GoReleaser does not break on Mac OS and Linux when skipping Windows
.rsyso
generation script by @andyfeller in #11257
Dependencies
- Bump all dependencies except dev-tunnels by @williammartin in #11203
- Update microsoft dev-tunnels to v0.1.13 by @williammartin in #11205
- Consume dependabot minor versions for go modules by @williammartin in #11213
New Contributors
- @jinjingroad made their first contribution in #11149
- @tMinamiii made their first contribution in #11158
- @chax made their first contribution in #10823
- @dankrzeminski32 made their first contribution in #10547
- @anuraaga made their first contribution in #11038
- @Stefan-Heimersheim made their first contribution in #11194
Full Changelog: v2.74.2...v2.75.0
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