Skip to content
Oeiuwq Faith Blog OpenSource Porfolio

choubacha/git-release-name

Generate a release names based on a git sha

choubacha/git-release-name.json
{
"createdAt": "2018-01-08T22:59:10Z",
"defaultBranch": "master",
"description": "Generate a release names based on a git sha",
"fullName": "choubacha/git-release-name",
"homepage": "",
"language": "Rust",
"name": "git-release-name",
"pushedAt": "2018-12-21T14:06:46Z",
"stargazersCount": 30,
"topics": [
"crates",
"git",
"release-automation",
"rust",
"rust-lang"
],
"updatedAt": "2024-10-14T17:58:21Z",
"url": "https://github.com/choubacha/git-release-name"
}

A simple tool that takes a sha and returns a random name for the release. The name will be deterministic based on the version of the tool. This project is broken into three crates. Each crate provides a different interface to the dictionary. The main library with functionality is the libray (found in rn-dictionary). The other two are rn-cli and rn-web.

Clone this repo and setup the rust compiler and cargo using rustup: https://rustup.rs/

Once that works (test: cargo -v) you can install the cli:

Terminal window
$ cargo install --force --path=cli

If you want to use the web app, there’s a docker container for it:

Terminal window
docker run -it -p 6767:6767 kbacha/git-release-name

Then you can use curl:

Terminal window
$ curl "0.0.0.0:6767/api/release-name/$(git rev-parse HEAD)"

Repo is licensed under MIT.