versem

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2019 License: MIT Imports: 1 Imported by: 0

README

Versem CircleCI codecov Go Report Card GolangCI GoDoc GitHub tag

Versem creates a semver git tag and a github release when merging a pull request according to the version label set on the repository.



Usage

Semver manager

Usage:
  versem [command]

Available Commands:
  help        Help about any command
  label       Manage pull request labels
  release     Manage release

Flags:
  -h, --help   help for versem

Use "versem [command] --help" for more information about a command.

You must define several environment variables : GITHUB_OWNER, GITHUB_REPOSITORY and GITHUB_TOKEN

label check [commitSha|pullRequestId]

Ensure a semver label is defined on a pull request or a commit that belong to a pull request, if not it exit with an error, if the commit is not tied to a pull request, it aborts without any errors.

label create

Create semver labels (patch, minor, major) on a repository.

release create [commitSha]

Create the semver tag using label version defined in pull request tied to the commit given as argument, if the commit is not tied to a pull request, it aborts without any errors.

Setup

Download the binary from the release page according to your architecture : https://github.com/antham/versem/releases

Contribute

If you want to add a new feature to chyle project, the best way is to open a ticket first to know exactly how to implement your changes in code.

Setup

After cloning the repository you need to install vendors with go mod vendor To test your changes locally you can run all tests with : make test-all.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL