Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: cli/cli

GitHub CLI 1.5.0

21 Jan 18:55
938f6f4

Choose a tag to compare

New Commands

Add ability to comment on issues and pull requests (#2535, #2776)

gh issue comment and gh pr comment commands are now available

Add ability to clone gists (#2222)

gh gist clone is now available

New Features

  • pr view: Display top level review comments inline with regular comments #2757

  • repo fork: Add ability to specify fork remote name #1882

  • pr merge: Add ability to delete local branch for previously merged PRs (#2789, #2798)

Fixes

  • auth: Add more descriptive error messaging when aborting due to environment variables #2813

  • completion: Improve docs for bash, zsh, fish #2636

  • version: Output link to correct tagged release #2638

  • Update notification avoids incorrect notifications when gh is built from source #2812

GitHub CLI 1.4.0

15 Dec 17:54
04e6446

Choose a tag to compare

New features

View issue and pull request comment threads (#2462, #2575)

gh issue view and gh pr view commands now include the latest comment in their output. To render the entire comment thread, use the new --comments flag:

$ gh issue view <number> --comments

Note that, for now, gh pr view will only render regular comments and not review comments.

Manage GitHub Actions secrets (#2529)

The new gh secret commands enables setting, listing, and removing secrets for a repository or an organization. For example, to set a repository secret from file:

$ gh secret set MY_SECRET < file.txt

To manage organization secrets, you will need to require an additional permission scope for GitHub CLI:

$ gh auth refresh --scopes admin:org

For more information, see gh help secret set.

Set up git credentials when logging into GitHub CLI (#2449)

The gh auth login flow now includes a step to authenticate git as well when "HTTPS" is selected as the default clone protocol. This enables operations like git clone, git push, etc. to automatically work with GitHub on a pristine system after the user has authenticated to GitHub CLI. Previously, users had to authenticate git separately.

This is enabled by the git credential helper. In the background, GitHub CLI runs this for the user:

$ gh auth login
#=> git credential approve <<<"url=https://USERNAME:[email protected]"

If no git credential helper was configured on the system, gh configures git to set itself as the credential helper for GitHub.

If you had already logged in with GitHub CLI, you can sync your git credentials with those of GitHub CLI with:

$ gh auth refresh --scopes workflow
# (the additional "workflow" scope is required for pushing changes to any Actions workflow files)

Build system

  • Statically build our Linux binaries so they work on Alpine Linux #2556

  • Add armv6 build for Raspberry Pi #2621

  • Add make install, make uninstall targets for POSIX systems when building from source #2455

Fixes

  • pr merge: attempt the merge even if mergeability status could not be determined #2582

  • repo clone: enable cloning repository wikis #2493

  • Recognize Include directives when parsing ssh config files #2230

  • Display the new release notice only once per 24 hours #2488

GitHub CLI 1.3.1

03 Dec 18:04

Choose a tag to compare

Bug fixes

  • pr view: prioritize latest PR when looking up PRs for a branch #2479

  • issue create: fix respecting chosen action #2519

  • issue/pr create: avoid resetting metadata specified via flags #2472

  • pr create: allow interactive flow even if git commits could not be detected locally

  • Allow setting GITHUB_ENTERPRISE_TOKEN to avoid auth login #2521

  • pr create: document that reviewers can be teams #2465

  • Bump AlecAivazis/survey #2480

GitHub CLI 1.3.0

24 Nov 19:38
9f84f0f

Choose a tag to compare

New Stuff

  • If an interactive invocation of either pr create or issue create fails, gh will now save a
    user's input. Both create commands now support a --recover option to pick up where you left off. #2408
  • Add support for GH_TOKEN and GH_ENTERPRISE_TOKEN #2388

Bug Fixes

  • Correctly select branch when viewing repository #2404
  • Downgrade survey to v2.1.1 #2421

Cleanup

  • Refactor pr/issue creation code for readability and maintainability #2386
  • Fix spelling errors #2397, #2460
  • Fix USAGE help info for some commands #2405

GitHub CLI 1.2.1

11 Nov 15:54

Choose a tag to compare

Security

  • This fixes the security vulnerability where running gh inside of an untrusted directory on Windows could lead to .\git.exe, .\git.bat, or a similarly crafted executable in the same directory being run instead of the system git command. See GHSA-fqfh-778m-2v32

Fixes

  • issue list: fetch and display all labels instead of just the first three #2312

  • pr view <branch>: allow viewing closed PRs #2276

  • pr create: omit the unnecessary and misleading Create a pull request for '<branch>' on GitHub by visiting: <URL> message generated by git push #2016

  • pr checks: improve error message when no checks are reported #2279

  • repo clone: print friendly error for the required argument #2253

  • release create: print friendly error for the required argument #2351

  • garden: completely reset status line when moving around #2341

  • Allow running gh commands from Windows Explorer search bar #2076 #2383

GitHub CLI 1.2.0

27 Oct 13:20
edecb2e

Choose a tag to compare

Features

  • api: add flag --hostname to set host target for api requests #2058

  • pr merge: add confirmation step in interactive mode #1622

  • auth login: add flag --scopes to set authorization scopes #2201

  • auth status: add flag --show-token to display auth token #2157

  • config set: add validation of configuration values #2138

  • config set: add warning for unknown configuration keys #2183

  • Codespaces: add support for "integration" tokens #2207

  • Add GH_NO_UPDATE_NOTIFIER environment variable to allow skipping of update checks #2134

  • Skip update checks in CI environments #2134

Bugs

  • issue list: fix result inconsistencies when specifying limit #2190

  • issue list: fix filtering by milestone for large milestone numbers #2178

  • repo clone: use canonical capitalization for remote URLs #2177

  • pr create: fix continue in browser for branches with special characters #2249

  • repo garden: fix incorrect terminal state after Ctrl-C #2205

  • Improve shell autocompletions for bash, zsh, and PowerShell #2237

Build

  • Rename the internal command package, resulting in a rename of Version and Date variables passed via ldflags at build time #2247

    To set version and date when building from source, use the GH_VERSION and BUILD_DATE environment variables in conjunction with our Makefile.

GitHub CLI 1.1.0

06 Oct 13:13
0d593e7

Choose a tag to compare

Features

  • Support GH_PAGER environment override for PAGER #2020

  • Disable terminal pager when its value is set to cat #2021

  • repo view: add option to specify a branch #1766

  • repo view: render :emoji: syntax as emoji characters #1816

Bugs

  • Fix pr create when branch was already pushed to a non-base remote #1926

  • pr status/view/create: fix API-related failures with GitHub Enterprise Server #2035

  • Fix markdown rendering when terminal pager is enabled #1917

  • repo create: respect repo name input given in interactive prompt #1880

  • auth login: display correct hostname in Personal Access Token instructions #1893

  • auth login: document minimum required token scopes #2057

  • pr checkout: fix running on detached HEAD #1889

  • pr merge: default to "no" for "delete branch after merge" prompt #1962

  • gist list: switch to GraphQL API to improve fetching #1763

    • support fetching more than 100 gists
    • list gists ordered by creation time, descending
    • for machine-readable output, serialize timestamps in RFC 3339 format
    • ensure newlines in gist description are rendered as spaces
  • gist view/edit: fix passing Gist URL as argument #1781

  • gist edit: check ownership before editing #2034

  • gist edit: avoid updating gist when the contents haven't changed #1828

  • repo garden: fix for repositories with only a few commits #1967

  • repo garden: restore tty settings on exit #2072

  • Fix reading the current git branch name when it contains a non-breaking space #2025

  • Document gh config set pager ... option #1710

  • Fix .tar upload tests on different OSs #1738

GitHub CLI 1.0.0

16 Sep 17:19
b2e36a0

Choose a tag to compare

Please see our installation instructions for help with installation or upgrading.

Features

  • Add gh release commands for managing GitHub Releases #1552

  • Add gh pr checks command #1563

  • Add gh gist list/view/edit commands #1699

  • Improve resolving the base repository for all commands #1706

    Additionally, gh pr create now prompts for where to push the current branch, including an option to create a fork, instead of trying to guess the head repository or automatically fork in the background.

    Add gh pr create --head <branch> flag to explicitly set the head branch for automation and opt out of any forking/pushing functionality.

  • Add gh config set prompt disabled config setting #1639

  • Add gh help environment help topic listing all supported environment variables #1696

  • Add support for PAGER environment variable to enable a terminal pager program such as less, also supported through the pager config option #1630

  • Add gh auth login --web flag #1642

Bugs

  • pr merge --squash: add pull request title to the commit subject #1627

  • pr create: prepend body defaults to the selected template #1611

  • repo view: do not HTML-escape output #1657

  • issue list: fix misalignment due to Unicode and emoji characters #1677

  • Fix terminal color display under various color schemes #1631

  • Fix zsh completion script #1707

  • Fix opening the web browser under WSL #1708

Thanks

Thank you to all our open source contributors and everyone who has provided valuable feedback during the beta period! For specific shout-outs, as well as some examples of what's possible using GitHub CLI, check out our announcement post.

v0.12.0

08 Sep 08:38
72e9747

Choose a tag to compare

Features

  • New gh auth commands for authentication:

  • Add support for GitHub Enterprise Server #1517

    • To get started, use gh auth login
    • To clone a GHE repo: gh repo clone example.com/owner/repo
    • Use GH_HOST environment variable to choose a default hostname for all commands
  • Implement OAuth Device Authorization flow for github.com #1522

    This enables authenticating to github.com when gh is used on a machine that does not have a graphical web browser. The new flow enables opening a browser on a different machine to complete the authentication process.

  • Publish repositories for Debian and RPM packages #1615

    See Linux installation instructions

  • Add ability to create repositories from a repository template #1590

    gh repo create <reponame> --template <owner>/<templaterepo>

  • Enable using PAGER for gh pr diff output #1534

  • Add gh pr checkout --recurse-submodules flag #1479

  • Add gh pr close --delete-branch flag #1476

  • Allow omitting one's own username in gh repo view <reponame> #1567

  • gh issue/pr view now include number and URL in machine-readable output #1580

  • Add :branch placeholder in gh api #1515

  • Support GraphQL operationName field in gh api #1448

Bugs

  • Fix “TLS handshake timeout” on macOS #514

  • Fix gh issues list --milestone filter #1462

  • Fix color output on standard error on Windows #1579

  • Disallow gh pr <command> --repo <repo> flag for commands that operate on the current branch #1585

  • Be transparent about which part of gh pr create flow failed #1603

  • Fix detecting display width of common punctuation characters #1616

  • Filter bots out of gh repo credits output #1623

v0.11.1

28 Jul 14:27
58bd549

Choose a tag to compare

Features

  • Enable custom color themes with the GLAMOUR_STYLE environment variable #1411

Bugs

  • Fix printing network error in case for failed HTTP requests #1382

  • Fix creating gists from stdin with argument #1383

  • Correctly report HTTP and Markdown errors in repo view #1403

  • Automatically adapt Markdown rendering for light terminal backgrounds #1402

Build

  • Enable adding to GO_LDFLAGS without having to replace them all #1379

Tweaks

  • gh pr command scriptability improvements #1373

  • gh repo command scriptability improvements #1388

  • Misc. scriptability improvements #1387