2023-02-16 16:02:10 by Benny Siegert | Files touched by this commit (129) | |
Log message:
Revbump all Go packages after go119 update
|
2023-01-22 19:48:26 by Benny Siegert | Files touched by this commit (3) | |
Log message:
gh: update to 2.21.2
What's New
Selecting a default repository
When running a gh command for the first time in a local git repository that has
multiple git remotes, gh used to interactively ask Which should be the base
repository? so that the user may choose the git remote to default to when
making queries to GitHub repositories. This had several problems:
- Some users did not fully understand what they are being asked to choose;
- The term “base repository” isn't an established GitHub term, except in the
context of Pull Requests;
- Once chosen, the only way to undo or change the choice made was to manually
edit .git/config in the local repository.
The new behavior is as follows:
- gh commands in a repository with multiple remotes will now error out until a
default has been chosen.
- The new gh repo set-default command can be used to select a default, view the
selected value, or undo the selection altogether.
Internal git operations are now always authenticated
Previously, it could be confusing that a properly authenticated gh repo clone
<repo> command could fail with a prompt for GitHub password. The underlying
reason was that gh repo clone would shell out to git clone <url>, and from then
on the authentication was entirely up to git's own credential management. If
git wasn't set up to authenticate to GitHub, this could result in a generic
password prompt, which appeared as if it was coming from gh.
The best general solution for setting up git to use credentials from GitHub CLI
is to run gh auth setup-git. However, in this release, gh ensures that all
underlying git operations are authenticated by gh, even if git on its own
wasn't configured with a credential helper.
The way this works is by injecting extra configuration arguments when shelling \
out to git:
git -c credential.helper='!gh auth git-credential' clone <url>
The gh api command now accepts nested JSON parameters
The gh api command is similar to the popular curl tool, but with JSON encoding
& parsing support and with built-in GitHub authentication. Sending JSON POST
parameters was as easy as:
gh api <endpoint> -f 'param1=value1' -f 'param2=value2'
Now there is also a way to send nested JSON objects and arrays via a special
brackets syntax when specifying field names:
gh api <endpoint> -f 'head[branch][name]=main'
gh api <endpoint> -f 'labels[]=bug' -f 'labels[]=priority-1'
|
2023-01-11 18:28:38 by Benny Siegert | Files touched by this commit (123) | |
Log message:
Revbump all Go packages after go119 update
|
2022-12-08 17:14:27 by Benny Siegert | Files touched by this commit (122) | |
Log message:
Revbump all Go packages after go119 security update
|
2022-11-16 17:10:00 by Leonardo Taccari | Files touched by this commit (3) |
Log message:
gh: Update to 2.20.2
pkgsrc changes:
- G/C custom do-build target: we can (ab)use GO_BUILD_PATTERN to inject custom
`-ldflags' (pretty common pattern among several Go packages)
Changes:
2.20.2
======
What's Changed
--------------
* Fix up Linux packaging regression by @samcoe in #6621
2.20.1
======
What's Changed
--------------
* Update security policy by @maclarel in #6587
* Fix listing repositories for a named GitHub user
* Fix commands not properly refreshing the terminal screen
2.20.0
======
What's New
----------
* New gh extension browse command:
List, filter, and install available gh extensions from GitHub.com using an
interactive interface.
* New gh extension search command:
Search GitHub.com repositories that have the gh-extension topic.
What's Changed
--------------
* Internal: add instructions for adding protocol buffers
2.19.0
======
What's New
----------
* Support explicitly marking a Release as "Latest"
Example:
gh release create v1.3.0 --latest --target=main --notes ""
gh release create v1.2.1 --latest=false --target=1.2-stable --notes \
""
* New gh issue develop command for managing branches linked to an issue
Example:
gh issue develop 123 --checkout
#=> remotely generates a branch linked to issue #123 and checks it out \
locally
* Add gh release download --output flag for downloading a single asset
Example:
gh release download --archive=tar.gz --output - | tar xz
* run list: add number field to JSON export
* run view: add jobs field to JSON export
* repo list --topic flag now accepts multiple topics
* codespace rebuild: perform incremental rebuild by default, add --full for
full rebuild
* extension upgrade --force overrides the pinned state of extensions
What's Changed
--------------
* pr create -R <repo> -H <branch>: enable use from outside of a \
local git
repo
* codespace ssh: avoid timing out waiting for the codespace to start
* release create: avoid duplicate release when uploading assets
* extension create: upgrade template for actions/checkout@v3
* tablerow template helper: fix measuring available width when
GH_FORCE_TTY=100% and output redirection are used
* Document the hyperlink template helper
* Fix NO_COLOR setting not respected in gh upgrade notice
* gpg-key add: explain in error message how to convert keys into
ASCII-armored format for uploading
* repo list: fix listing when belonging to org with IP Allow list
* auth: fix setting up git credential helper for some Windows paths
* Auth error messsage in Actions now suggests using github.token instead of
secrets.GITHUB_TOKEN
* Dogfood the term package from go-gh library
* Improve resolving SSH hostname aliases from git remotes
* Normalize the Time-Zone headers in tests
* Refactor the git client
* Add support for the internal garage.github.com host
* Bump microsoft/setup-msbuild from 1.0.3 to 1.1.3
|
2022-11-02 20:39:58 by Benny Siegert | Files touched by this commit (115) | |
Log message:
Revbump all Go packages after go119 security update
|
2022-10-25 20:23:21 by Benny Siegert | Files touched by this commit (3) | |
Log message:
gh: update to 2.18.1
GitHub CLI 2.18.1
Replace spaces with tabs in mixed whitespace string
pr create: Fix regression in non-interactive mode
GitHub CLI 2.18.0
New Commands and Flags:
- cs rebuild
- ssh-key delete
- gpg-key delete
- release delete: new --cleanup-tag flag
- isssue/pr comment: new --edit-last flag
- pr diff: new --web flag
|
2022-10-08 12:03:34 by Benny Siegert | Files touched by this commit (3) | |
Log message:
gh: update to 2.17.0
- Add gh auth token
- Add flag to pr merge allowing the selection of the merge commit email
- Fix color output for non-256 color terminals
- surface merge conflicts in pr status
- Add header to the gpg-key list output
- Fix Ubuntu installation instructions for curl
- Fix missing text in "man gh-codespace-ssh"
- update formatting help
- add and use ConfirmDeletion in {label,repo} delete
- Add more help to "template" flags
|
2022-10-05 13:33:09 by Benny Siegert | Files touched by this commit (113) | |
Log message:
Revbump all Go packages after go119 security update
|
2022-09-26 20:40:24 by Benny Siegert | Files touched by this commit (113) |
Log message:
Revbump all Go packages after 1.19 became default
|