Subject: CVS commit: pkgsrc/net/gh
From: Benny Siegert
Date: 2021-03-21 08:56:18
Message id: 20210321075618.91D9CFA95@cvs.NetBSD.org

Log Message:
Update gh to 1.7.0.

GitHub CLI 1.7.0

New features

The repo list command

The gh repo list command lists GitHub repositories under a user or organization
account.

Improvements to the api command

The gh api command is a tool to directly access the GitHub API with in your
scripts. This release adds functionality to make it easier to working with the
resulting JSON.

Other new functionality

  * Allow passing issue/pr create body from file or standard input
  * Add pr edit --base to change the base branch of a PR
  * Allow pr edit without the pull request argument
  * Allow gist view without arguments
  * Add gist edit -a <file> flag to add files to a gist

Fixes

  * Fix setting up a local repository on repo create --template
  * Clarify the repo create interactive prompt
  * Avoid crash in pr merge when the pull request has no commits
  * Fix git authentication when the token comes from environment
  * Have git authentication be resilient to PATH changes
  * Avoid checking for new releases when authenticating git
  * When gh is installed via Homebrew, avoid showing the upgrade notice until
    the homebrew formula is updated
  * Validate gist arguments
  * Have gh exit with non-zero status when the user cancels a command

GitHub CLI 1.6.2

  * Fix pasting Personal Access Token to auth login for GHE

GitHub CLI 1.6.1

  * Fix regression in pr status for GitHub Enterprise 2.22 and older

GitHub CLI 1.6.0
This is a large release seeing a few major new features and a slew of fixes. In
January we spent a week cleaning out the backlog of community pull requests --
thank you for your patience as we got all that merged!

New Commands

Edit Issues and Pull Requests

gh issue edit and gh pr edit allow you to modify existing issues and pull
requests. Both versions accept arguments to edit non-interactively and running
without flags allows you to interactively edit.

SSH Key Management

gh ssh-key list and gh ssh-key add are now live! You'll be prompted to refresh
your auth token with increased scopes to use them.

Issue Deletion

Issues can now be permanently deleted with gh issue delete

New Features

PR Auto-Merge Support

pr merge now supports --auto. Instead of merging the pull request right away,
the pull request will be automatically met once all requirements are met

SSH Key Generation During Authentication

While running through the gh auth login flow, gh can now generate and upload
SSH keys to GitHub on your behalf

@me Syntax for Self Assigning Issues

When using gh issue create, the string @me can be used to self assign

pr checkout Improvements

pr checkout now supports --force to force a checkout and --detach to
checkout a pull request in a detached head state

And More

  * repo fork: support git flags
  * pr merge: edit commit body when merging
  * pr merge: alert about unpushed commits
  * gist view: --files lists filenames in a gist
  * Configuration path can now come from environment
  * Display upgrade notice for brew users
  * Show whether or not branches are up to date with the default branch in gh
    pr status
  * Show progress while creating a new pull request

Fixes

  * Minimized comments no longer appear in comment lists
  * Issue [DEL:and Pull Request:DEL] templates are now listed as per the API
    and not local file system
  * Gist description dropped from single file raw view
  * Restore fork rename behavior
  * Clarify handling of git tags during release create
  * Explain how to link an issue in pr create
  * Improve repo create docs
  * Add more examples to api docs
  * Only fetch default branch when adding upstream remote
  * Consistently use success icon
  * write:org scope is now recognized as satisfying read:org
  * pr merge: do not show invalid merge methods
  * pr merge: avoid prompting to enter editor after editing phase is chosen
  * repo create: clarify prompt
  * gist: print friendly error when missing required argument
  * auth status: add fail message for non-existent hostname
  * config: refactor to use os.UserHomeDir()
  * issue create and pr create: project argument works alongside --web now
  * secret set: fix secret set --repos for repositories that have dashes

Files:
RevisionActionfile
1.16modifypkgsrc/net/gh/Makefile
1.10modifypkgsrc/net/gh/distinfo
1.8modifypkgsrc/net/gh/go-modules.mk