Releases: cli/cli
GitHub CLI 2.37.0
⚠️ ⚠️ Breaking Changes ⚠️ ⚠️
project
: Removetemplate
field from--format=json
output by @samcoe in #8160- In v2.34.0 we introduced the
template
field when outputing projects to JSON, unfortunately
we forgot to take into account our GHES users. This field does not exist on GHES 3.8 and older.
Including this field in our queries and output broke nearly all theproject
commands for users
targeting these older versions of GHES. As we try our hardest to keepgh
compatible with all
non-deprecated GHES versions this was a pretty big mistake. In order to fix it we are reverting
the querying and exporting of thetemplate
field forproject
commands. We apologize for the
inconvenience this may cause, and plan to bring back this field once GHES 3.8 gets deprecated.
- In v2.34.0 we introduced the
What's Changed
repo create
: Allow--disable-issues
and--template
flags to be used together by @utouto97 in #7918repo create
: Allow--homepage
and--template
flag to be used together by @arunsathiya in #8188repo create
: Allow creating repositories from templates in interactive mode by @JunNishimura in #7769repo fork
: Set default repo when forking repo by @kbailey4444 in #7768codespace
: Migrate all Codespaces operations from Live Share to Dev Tunnels by @dmgardiner25 in #8149codespace create
: Poll permission acceptance endpoint on codespace creation by @dmgardiner25 in #8179pr create
: Remove duplicates targets for push survey by @benebsiny in #8184pr create
: Fix typo in documentation by @darthwalsh in #8115browse
: Do not use relative paths when--repo
flag is used by @benebsiny in #8141
Other Changes
- Add homebrew-bump-debug workflow by @williammartin in #8114
- Update deployment.yml by @andyfeller in #8116
dependencies
: Update to fix security vulnerability by @samcoe in #8176dependencies
: bump github.com/gabriel-vasile/mimetype from 1.4.2 to 1.4.3 by @dependabot in #8185
New Contributors
- @darthwalsh made their first contribution in #8115
- @benebsiny made their first contribution in #8184
Full Changelog: v2.36.0...v2.37.0
GitHub CLI 2.36.0
What's Changed
codespace
: Hint addingcodespace
scope when not logged in by @rajhawaldar in #7961codespace ports
: Forward codespace ports over Dev Tunnels by @dmgardiner25 in #8023cache delete
: Percent-encode keys by @benoit-pierre in #8030gpg-key delete
,run watch
: Return HTTP errors properly by @heaths in #8037pr checks
: Show cancelled checks by @rajhawaldar in #7960cache list
: Add JSON exporting support by @siketyan in #7954auth
: Fix startup panic when logged out by @alrs in #8105secret list
,deploy-key list
: Support standard output format flags by @rajhawaldar in #8081pr create
: Update the docs on flag--fill
by @peterramaldes in #8080run view
: Use attempt input when fetching jobs by @arunsathiya in #7831project item-edit
: New clear flag to remove item field value by @arunsathiya in #8024- build(deps): Bump mislav/bump-homebrew-formula-action from 2 to 3 by @dependabot in #8033
- Update triage documentation with link to unlabeled open issues by @andyfeller in #8082
New Contributors
- @benoit-pierre made their first contribution in #8030
- @siketyan made their first contribution in #7954
- @alrs made their first contribution in #8105
- @peterramaldes made their first contribution in #8080
- @arunsathiya made their first contribution in #7831
Full Changelog: v2.35.0...v2.36.0
GitHub CLI 2.35.0
What's New
gh alias delete
now supports the--all
flag by @JunNishimura in #7900gh release delete
now supports the--cleanup-tag
flag by @kemingy in #7884gh release create
now supports the--notes-from-tag
flag by @kbailey4444 in #7861
What's Changed
- Clarified
gh repo list --fork
and--source
behavior for orgs @ncalteen in #7964 gh cs create
now shows the full permissions URL by @joshmgross in #7983- Documented when
gh auth login
falls back to using insecure storage by @kbailey4444 in #7781 - Bumped goreleaser/goreleaser-action from 4 to 5 by @dependabot in #7981
New Contributors
- @kemingy made their first contribution in #7884
- @ncalteen made their first contribution in #7964
- @kbailey4444 made their first contribution in #7861
Full Changelog: v2.34.0...v2.35.0
GitHub CLI 2.34.0
What's New
api
: Add--verbose
flag by @JunNishimura in #7826config clear-cache
: New command to clear the cli cache by @ffalor in #7693workflow list
: Add--json
,--jq
and--template
flags by @rajhawaldar in #7902project mark-template
: New command to control project template options by @mntlty in #7916 #7923
What's Changed
docs
: Fix Nix/NixOS install docs by @junaga in #7891repo rename
: Properly rename remote for GHES hosts by @samcoe in #7890pr checks
: Return different exit code for PENDING vs FAILED by @rajhawaldar in #7866repo create
: Execute clone when readme option is enabled by @shion1305 in #7837repo create
: Allow--disable-wiki
flag with--template
flag by @utouto97 in #7886auth status
: Reword token invalid message by @kousikmitra in #7906status
: Show status even if a comment 404s by @rwe in #7873run view
: Fetch all run jobs by @harveysanders in #7879- Use go-gh prompter package by @samcoe in #7896
- Add formula-path to homebrew-bump step by @williammartin in #7930
- build(deps): bump actions/checkout from 3 to 4 by @dependabot in #7937
New Contributors
- @junaga made their first contribution in #7891
- @utouto97 made their first contribution in #7886
- @rwe made their first contribution in #7873
Full Changelog: v2.33.0...v2.34.0
GitHub CLI 2.33.0
Meowdy terminal aficionados! 😸
Before moving onto the freshest gh
release notes, I have some GitHub CLI team news to share with the community:
-
Our dear friend and college @vilmibm has moved on from GitHub in following his passions for digital humanities 😿
The core GitHub CLI team could not be happier for Nate as those same passions has brought
gh
to this point. 😻 So a tremendous unimaginable thanks to our dear friend as he chases the wind with the hopes he continues as part of the GitHub CLI community 💯 -
We welcome a new GitHub CLI team member: @andyfeller 😹
Andy has been a long-time CLI extension advocate within GitHub for some time, maintaining extensions for unique user challenges. Please warmly welcome him as he gets up to speed with supporting our community officially! ❤️
What's Changed
- Delete local branch more often when merging PR by @armandgrillet in #7709
- Do not allow issue and pr templates to be symlinks by @samcoe in #7756
release create
: Trim spaces on tag name by @harveysanders in #7759- Use filepath.Base to sanitize path for archive downloads by @samcoe in #7805
- Codespaces: Use the host name from the logged in server for commands by @jkeech in #7795
- Update CONTRIBUTING.md by @andyfeller in #7812
- Allow --org parameter in lieu of a repo context for rulesets, add current_user_can_bypass to rs view by @vaindil in #7747
- add missing
ls
aliases tolist
subcommands by @cawfeecake in #7818 - port repo edit prompts by @vilmibm in #7816
- add clobber flag to
alias set
by @JunNishimura in #7787 - Remove GHE handling for
workflow
by @jamietanna in #7841 - Upgrade to Go 1.21 by @samcoe in #7843
- switch to prompter in workflow commands by @vilmibm in #7847
- update more prompts by @vilmibm in #7850
- switch to prompter in pr shared code by @vilmibm in #7859
- THE FINAL PROMPTDOWN by @vilmibm in #7860
- codespace: Handle HTTP request retry interruption by @azrsh in #7846
New Contributors
- @armandgrillet made their first contribution in #7709
- @harveysanders made their first contribution in #7759
- @andyfeller made their first contribution in #7812
- @JunNishimura made their first contribution in #7787
- @jamietanna made their first contribution in #7841
- @azrsh made their first contribution in #7846
Full Changelog: v2.32.1...v2.33.0
GitHub CLI 2.32.1
What's Changed
pr checks
: Fix regression making it unusable in GHES versions older than 3.9 by @samcoe in #7725pr edit
: Do not make reviewer update request if there are no reviewer changes by @samcoe in #7730repo view
: Sanitize file contents before displaying them by @samcoe in #7694release download
: Use filepath.Clean to sanitize path for archive downloads by @samcoe in #7720auth
: Do not add auth token to redirect requests which do not have the same host as the initial request by @samcoe in #7692- Use asciisanitization package from go-gh by @samcoe in #7745
Full Changelog: v2.32.0...v2.32.1
GitHub CLI 2.32.0
hello terminal fans, it's me @vilmibm .
We are pleased to bring you a new release of the GitHub CLI on this Confusion 46, 3189 YOLD.
We've got features. we've got bugfixes. This release has a real zest for life; can you feel it?
First though, a sad note. @mislav has moved on from GitHub. He was instrumental to this project and without him I don't think it would have ever happened. BIG THANKS MUCH LOVE to this wonderful person!
Happily, we have a new core team member who is, truly, a delight. Please welcome @williammartin , whom you'll see a lot more on issues and pull requests moving forward.
Now, let's talk BUSINESS.
gh ruleset
Repository Rulesets are in beta on git hub dot com and they are now also in beta on git hub sea ell eye. You can list, view, and check branches against rulesets set at the repository or organization level. Major shoutouts to @vaindil for this big contribution. My favorite command in here is gh rs check <branch>
which will tell you what rules would apply to a hypothetical branch name. To learn more, run gh help ruleset
.
gh cache
gh cache
is a new top level command in our suite of support for Actions. It lets you list and delete caches saved in Actions. It's neat and I like it. Thanks, @joshkraft ! To learn more, run gh help cache
.
Other new stuff
- Add option to remove file from gist by @kousikmitra in #7560
- Add remove/reset to auth refresh by @n1lesh in #7597
- Small tweaks to auth refresh remove-scopes and reset-scopes flags by @samcoe in #7631
- make
gh pr create
behavior likegh repo fork
by @leavesster in #7330 - chore: add title to iteration and milestone fields by @kamaz in #7621
- AutoFetch new branch created with gh issue develop by @shion1305 in #7589
- feat: add statuscheck description to pr checks output by @jgrumboe in #7451
- Always show created gist privacy status. by @seanbright in #7645
- [Codespaces] Support random
--server-port=0
and printing connection details by @josebalius in #7655 - gh release edit: support --verify-tag like gh release create by @rajhawaldar in #7646
- Feature: Add
fill-first
flag topr create
command by @kousikmitra in #7398 - Return error on no-browser option if repo don't exists by @kousikmitra in #7314
Bugfixes
- Early exit repo sync if merge-upstream requires workflow scope by @williammartin in #7612
- Don't deduplicate checks that stem from different events by @samcoe in #7618
- gh run cancel needs input validation by @rajhawaldar in #7647
- Ensure gist edit request body matches desired schema by @williammartin in #7635
- fix(api): do not interpret "branch" placeholder when
GH_REPO
is set by @alex-petrov-vt in #7626 - fix pr create crash on interactive milestone selection by @vilmibm in #7666
- Fix issue develop command by @samcoe in #7656
Docs & Dev
- docs: example of setting multiple vars using stdin by @iloveitaly in #7683
- Remove old code paths and improve code comments for
repo sync
by @samcoe in #7610 - Update httpretty to released version by @josebalius in #7654
- build(deps): bump github.com/henvic/httpretty from 0.1.1 to 0.1.2 by @dependabot in #7657
- build(deps): bump google.golang.org/grpc from 1.49.0 to 1.53.0 by @dependabot in #7665
- Use SmartBaseRepoFunc for api command by @whi-tw in #7594
- Clean up style nits and simplify some logic by @samcoe in #7687
- add gh cache to Actions explainer by @vilmibm in #7689
New Contributors
- @leavesster made their first contribution in #7330
- @kamaz made their first contribution in #7621
- @shion1305 made their first contribution in #7589
- @jgrumboe made their first contribution in #7451
- @whi-tw made their first contribution in #7594
- @seanbright made their first contribution in #7645
- @iloveitaly made their first contribution in #7683
Full Changelog: v2.31.0...v2.32.0
GitHub CLI 2.31.0
What's New
- New suite of
project
commands for interacting with and manipulating projects. Huge shoutout 🥳 for the time and effort put into this work by @mntlty in #7375 #7578 - New
search code
command by @joshkraft in #7376 - New
cs view
command by @dmgardiner25 in #7496 #7539
What's Changed
api
: output a single JSON array in REST pagination mode by @mislav in #7190api
: support array params in GET queries by @mislav in #7513api
: force method to uppercase by @ffalor in #7514alias
: Allow aliases to recognize extended commands by @srz-zumix in #7523alias import
: Fix--clobber
flag by @samcoe in #7569run rerun
: Improve docs around--job
flag by @williammartin in #7527run view
: Support viewing logs for jobs with composite actions by @williammartin in #7526gist edit
: Add selector option togist edit
command by @kousikmitra in #7537repo clone
: Set upstream remote to track all branches after initial fetch by @samcoe in #7542extension
: Speed up listing extensions by lazy-loading extension information when needed by @mislav in #7493auth
: Add timeouts to keyring operations by @samcoe in #7580auth status
: write to stdout on success by @rajhawaldar in #7540completion
: Fix bash completions for extensions and aliases by @mislav in #7525issue/pr view
: alphabetically sort labels forgh pr/issue view
by @ffalor in #7587- Fix error handling for extension and shell alias commands by @samcoe in #7567
- Fix pkg imported more than once by @testwill in #7591
- Refactor a nested if statement by @yanskun in #7596
- Fix a typo by @lerocknrolla in #7557
- Fix flaky test by @samcoe in #7515
- Credential rotations, renames and decouplings from Mislav by @williammartin in #7544
- build(deps): bump github.com/cli/go-gh/v2 from 2.0.0 to 2.0.1 by @dependabot in #7546
- build(deps): bump github.com/AlecAivazis/survey/v2 from 2.3.6 to 2.3.7 by @dependabot in #7576
New Contributors
- @srz-zumix made their first contribution in #7523
- @lerocknrolla made their first contribution in #7557
- @testwill made their first contribution in #7591
- @rajhawaldar made their first contribution in #7540
Full Changelog: v2.30.0...v2.31.0
GitHub CLI 2.30.0
What's New
- Support for nested aliases by @samcoe in #7457
repo set-default --view
can now be called without a repo argument by @Jackenmen in #7441
What's Changed
- Color control and sensible defaults in modern terminals by @rick-kilgore in #7354
- Fix windows crash by bumping wincred by @mislav in #7459
- Update browser package to avoid Windows crash by @mislav in #7474
release upload
sanitizes asset filenames prior to uploading by @jtpetty in #7477pr status
uses lighter API in supported environments by @williammartin in #7462- All commands start up time improvements by @mislav in #7487
- More commands use latin matching filter by @benjlevesque in #7492
pr create
respects GH_REPO env variable by @ffalor in #7445- Do not fall back to legacy template if template selector returns nil by @samcoe in #7444
All the Details
- Fix release guard for deployment workflow by @mislav in #7424
- Introduce helpTopics type and reduce duplication across commands by @williammartin in #7414
- Allow
gh repo set-default --view
without repo argument by @Jackenmen in #7441 - make prompt default values visible and also the color controllable in… by @rick-kilgore in #7354
- Mention setting GH_ENTERPRISE_TOKEN when GH_HOST is set by @goldstar611 in #7449
- respect GH_REPO env variable in
pr create
by @ffalor in #7445 - Do not fall back to legacy template if template selector returns nil by @samcoe in #7444
- Remove old, unused detector fields by @williammartin in #7458
- Fix windows crash by bumping wincred by @mislav in #7459
- Get some additional confidence around PullRequest ChecksStatus by @williammartin in #7454
- build(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 by @dependabot in #7460
- build(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3 by @dependabot in #7469
- Update triage.md with severity descriptions by @williammartin in #7473
- Clarify docs regarding what is listed when running gh workflow list by @torgeir in #7475
- build(deps): bump github.com/mattn/go-isatty from 0.0.18 to 0.0.19 by @dependabot in #7476
- Update browser package to avoid Windows crash by @mislav in #7474
- Updated to sanitize asset filename prior to uploading. Fixes #7024 by @jtpetty in #7477
- replace prompts in
gh run
commands by @vilmibm in #7302 - Allow nested aliases by @samcoe in #7457
- Use new GQL fields that support CheckRun and StatusContext counts by state by @williammartin in #7462
- Speed up gh start up time by @mislav in #7487
- Do not generate docs for aliases by @samcoe in #7497
- fix: apply latin matching filter to more fields by @benjlevesque in #7492
- build(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4 by @dependabot in #7510
New Contributors
- @williammartin made their first contribution in #7414
- @rick-kilgore made their first contribution in #7354
- @goldstar611 made their first contribution in #7449
- @torgeir made their first contribution in #7475
Full Changelog: v2.29.0...v2.30.0
GitHub CLI 2.29.0
What's New
- Add
alias import
command by @kevhlee in #7118 codespace
: Add capability to filter by--repo-owner
by @kousikmitra in #7347pr status
: display auto-merge information by @mjpieters in #7386pr view
: display auto-merge information by @mjpieters in #7385pr
: addautoMergeRequest
field to JSON output by @mjpieters in #7384
What's Changed
repo create
: fix empty default description for local repository by @vwkd in #7383release download
: show progress bar by @joshkraft in #7380codespace delete
: print confirmation message by @kousikmitra in #7353- Fix shellcheck errors in generate.sh by @cmbrose in #7392
- New deployment workflow for releases by @mislav in #7324
make install
: fix for macOS by @Xerkus in #7369
New Contributors
Full Changelog: v2.28.0...v2.29.0