git-release

Crates.iogit-release
lib.rsgit-release
version0.1.1
sourcesrc
created_at2023-01-04 08:19:20.164465
updated_at2023-01-04 21:41:10.329188
descriptionSet the release information based on all commits of a tag
homepage
repositoryhttps://github.com/arsham/git-release
max_upload_size
id750729
size106,660
Arsham Shirvani (arsham)

documentation

https://docs.rs/crate/git-release

README

Git Release

GitHub Workflow Status Crates.io License

This program can set the release information based on all commits of a tag. To see the example visit Releases page.

This is a clone of the gitrelease project written in Rust.

  1. Requirements
  2. Installation
  3. Usage
  4. License

Requirements

Uses your github token with permission scope: repo

Installation

To install:

cargo install git-release

Export your github token: export GITHUB_TOKEN="ghp_yourgithubtoken"

Assuming the binary path is in the your PATH, git automatically picks this up as a subcommand.

Usage

After you've made a tag, you can print the current release documents by just running:

git release

To release you should provide -p flag:

git release -p

If you want to release an old tag:

git release -p -t v0.1.2

You can also provide a range:

git release -t v0.1.2..v0.2.0

Note that in this case the release will be v0.2.0.

If you want to use a different remote other than the origin:

git release -r upstream

License

Licensed under the MIT License. Check the LICENSE file for details.

References

Commit count: 29

cargo fmt