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

Skip to content

GitHub CLI 1.4.0

Choose a tag to compare

@github-actions github-actions released this 15 Dec 17:54
· 7523 commits to trunk since this release
04e6446

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