Skip to content

timo-reymann/git-semver-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-semver-tag

GitHub Release Go Report Card GitHub Release status Continuous Build status Renovate Quality Gate Status Security Rating Bugs


Simple helper to release your git tag according to the semver spec.

Features

  • create git tags easily following semver guidelines
  • prefix-aware, will keep your prefix without any further doings
  • feels like a direct integration with git
  • ability to add custom suffix to your version tag without having to do it all manually
  • push the newly created tag to origin

Installation

using go ...

go install github.com/timo-reymann/git-semver-tag@latest

on Linux ...

curl -LO https://github.com/timo-reymann/git-semver-tag/releases/download/$(curl -Lso /dev/null -w %{url_effective} https://github.com/timo-reymann/git-semver-tag/releases/latest | grep -o '[^/]*$')/git-semver-tag_linux_amd64 && chmod +x git-semver-tag_linux_amd64
sudo mv git-semver-tag_linux_amd64 /usr/local/bin/git-semver-tag

on Mac with homebrew ...

brew install timo-reymann/homebrew-git-semver-tag/git-semver-tag 

Note: this creates a tap timo-reymann/git-semver-tag:

brew tap
homebrew/bundle
timo-reymann/git-semver-tag
[...]

on Mac ...

curl -LO https://github.com/timo-reymann/git-semver-tag/releases/download/$(curl -Lso /dev/null -w %{url_effective} https://github.com/timo-reymann/git-semver-tag/releases/latest | grep -o '[^/]*$')/git-semver-tag_darwin_amd64 && chmod +x git-semver-tag_darwin_amd64
sudo mv git-semver-tag_darwin_amd64 /usr/local/bin/git-semver-tag

Usage

To get usage info enter:

git semver-tag -h

As you may have recognized now semver-tag is registered as git subcommand.

Motivation

Sometimes semantic-release is just not the right thing to use and having to figure out the next semantic tag is sometimes to annoying. So here is a helper to plug in and avoid that

Contributing

I love your input! I want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug
  • Discussing the current state of the configuration
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

To get started please read the Contribution Guidelines.

Development

Requirements

Test

go test ./...

Build

go build -o git-semver-tag main.go

About

Simple helper to release your git tag according to the semver spec

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages