Giter VIP home page Giter VIP logo

gh-bump's Introduction

gh bump

a gh extension for bumping version of a repository.

image

Usage

gh bump

with another repository.

gh bump -R <repository>

If you want to see more detail about this extension, you can run below.

gh bump -h

Installation

gh extension install johnmanjiro13/gh-bump

gh-bump's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar johnmanjiro13 avatar renovate[bot] avatar yarlson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gh-bump's Issues

support some flags

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
  • --discussion-category
  • --draft
  • --notes
  • --notes-file
  • --prerelease
  • --target
  • --title

gh-bump fails when release doesn't exist

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.

if strings.Contains(eout.String(), "HTTP 404: Not Found") {

Doesn't work inside repos that are for Github Enteprise

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

"Add support for secure token storage"

Token storage change in latest release of gh

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.

Extensions built in Go using go-gh:

  1. Upgrade your go-gh version to v1.2.1, the latest version.

  2. Verify that in your extension retrieval of the user authentication token is done using the auth.TokenForHost function.

    • If you were previously accessing the authentication token using any other method it will no longer work.
    • Automatic resolution of the authentication token when using the API clients will continue to work without changes.

All other extensions:

  1. Verify that in your extension retrieval of the user authentication token is done by shelling out to the gh auth token command.

    • If you were previously accessing the authentication token using the 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

Support bump-type option

I will support bump-type option which accepts either one of patch, minor or major.
It allows run gh bump without running promptui.

Support release asset upload

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

  • We use gh-bump to create the new Tag + Release
  • We use gh to upload the assets

But 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 ๐Ÿ™๐Ÿป

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.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
gomod
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

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.