- 2019/04~ Gunosy inc.
johnmanjiro13 / gh-bump Goto Github PK
View Code? Open in Web Editor NEWgh extension for bumping version of a repository
License: MIT License
gh extension for bumping version of a repository
License: MIT License
gh bump
does not work on a repo tied to GHE when you are inside that directory. Is there a way to have gh bump figure out which GH_HOST to use like other gh commands in the cli?
Current workaround is to set the GH_HOST=ghe.company.com gh bump
This is a message from the GitHub CLI team, maintainers of gh
, writing to inform you that the most recent release of gh
contains changes which may affect your extension. The latest release introduces the feature of storing authentication tokens in the system keyring (encrypted storage) instead of in a plain text file.
The keyrings that are supported are:
Keychain on macOS
GNOME Keyring on Linux (Secret Service dbus interface)
Wincred on Windows
This has huge security benefits for the users of our tool and was one of our oldest outstanding issues. Unfortunately this change has the potential to break extensions that rely on utilizing the users authentication token to work.
In order to have continued compatibility with gh
there are some actions you, as an extension author, need to take. These actions will depend on the implementation of your extension.
Upgrade your go-gh
version to v1.2.1, the latest version.
go get github.com/cli/[email protected]
Verify that in your extension retrieval of the user authentication token is done using the auth.TokenForHost
function.
Verify that in your extension retrieval of the user authentication token is done by shelling out to the gh auth token
command.
gh config get
command, reading the configuration file directly, or any other methods it will no longer work.As of right now storing the authentication token in the system keyring is an opt-in feature, but in the near future it will be required and at that point if the changes above are not made then your extension will be broken for all users. If you have any questions/concerns about this change please feel free to open a discussion in the gh repo.
Thanks,
The GitHub CLI Team
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/ci.yaml
actions/checkout v4
actions/setup-go v5
actions/cache v4
codecov/codecov-action v4
.github/workflows/reviewdog.yml
actions/checkout v4
reviewdog/action-staticcheck v1
.github/workflows/tagpr.yml
actions/checkout v4
Songmu/tagpr v1
actions/checkout v4
actions/setup-go v5
goreleaser/goreleaser-action v5
go.mod
go 1.20
github.com/AlecAivazis/survey/v2 v2.3.7
github.com/Masterminds/semver/v3 v3.2.1
github.com/cli/safeexec v1.0.1
github.com/golang/mock v1.6.0
github.com/spf13/cobra v1.8.1
github.com/stretchr/testify v1.9.0
Hi @johnmanjiro13 ๐๐ป
First, thanks for your extension, it is really useful for me on a daily basis.
One thing I am wondering is if it could also support assets upload to the release.
I know that this is a built-in feature of the GH cli but we face some kind of issue where
gh-bump
to create the new Tag + Releasegh
to upload the assetsBut in the time between, a GitHub workflow has been triggered by the Tag pushed and fails since the assets are not there yet ๐
Have you some tips for us in that regard?
Many thanks ๐๐ป
Tags:
Error: failed to run gh. err: exit status 1, eout: release not found
Usage:
bump [flags]
Flags:
--bump-type string Bump type (major, minor or patch)
--discussion-category string Start a discussion of the specified category
-d, --draft Save the release as a draft instead of publishing it
-g, --generate-notes Automatically generate title and notes for the release
-h, --help help for bump
-n, --notes string Release notes
-F, --notes-file string Read release notes from file
-p, --prerelease Mark the release as a prerelease
-R, --repo string Select another repository using the [HOST/]OWNER/REPO format
--target string Target branch or full commit SHA (default: main branch)
-t, --title string Release title
-y, --yes Answer 'yes' to all questions
exit status 1
I think result of gh release view
was changed.
Line 181 in 4ebe7cf
Adding some tests for
release not found
casenewVersion
methodhttps://app.codecov.io/gh/johnmanjiro13/gh-bump/blob/main/bumper.go
gh release create
has some flags.
We want to support them.
FLAGS
--discussion-category string Start a discussion of the specified category
-d, --draft Save the release as a draft instead of publishing it
-n, --notes string Release notes
-F, --notes-file file Read release notes from file
-p, --prerelease Mark the release as a prerelease
--target branch Target branch or full commit SHA (default: main branch)
-t, --title string Release title
I will support bump-type
option which accepts either one of patch
, minor
or major
.
It allows run gh bump without running promptui.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.