Skip to main content

Automatically create semantic version git tags

Project description

Tag Release

Test status Deploy Status Go Reference Arch User Repsoitory PyPI Go Report Card

Automatically create semantic version git tags.

$ tag
Push tag 'v1.0.1' to origin? (y/N): y
Tag 'v1.0.1' created and pushed to origin.

Usage

By default, tag will increment the smallest digit following SemVer precedence. Incrementing a specific is achieved by passing the respective flag: --major, --minor, --patch.

Tags can be automatically pushed to a remote repository by passing --push.

tag supports pre-release versions. Creating a pre-release tag is achieved by the using the --suffix flag. For example, --suffix="alpha" will create a tag like v1.0.0-alpha. If the previous tag was for a pre-release, that suffix is preferred. This behavior can be overridden by passing --patch or --suffix="". Only incrementing the trailing pre-release identifier is currently supported.

tag authoritatively discourages duplicate tags for a single commit.

Autocomplete

tag provides autocomplete for bash, fish, powershell and zsh shells. For example, to enable autocomplete for the bash shell,

tag completion bash | sudo tee /etc/bash_completion.d/tag > /dev/null

Note: bash completion requires the bash-completion package be installed.

For more information, see tag completion <shell> --help for your respective <shell>.

Install

AUR:

tag is available from the Arch User Repository.

yay -S release-tag

pip:

tag is available as a pypi package.

pip install release-tag

go:

go install github.com/jmelahman/tag@latest

github:

Prebuilt packages are available from Github Releases.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

release_tag-0.2.3.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

release_tag-0.2.3-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file release_tag-0.2.3.tar.gz.

File metadata

  • Download URL: release_tag-0.2.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.5.13

File hashes

Hashes for release_tag-0.2.3.tar.gz
Algorithm Hash digest
SHA256 733df79e0e373f3b3030d65d8c3458fe45166da374a843b4791400a95e540da7
MD5 0be8496f44956528605f0494e3a18b9a
BLAKE2b-256 282141b4d9271510ce983ae44f300bee819cafd61b4292641b4561b297a2ebab

See more details on using hashes here.

File details

Details for the file release_tag-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for release_tag-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 45655d3201b06d24424dda48d8287c1b4b9661c4c766572d55984f713e5f830f
MD5 ccef710f6c5f46339539f7807076f56c
BLAKE2b-256 be1a25e0354c2dd04087ac4c462998e5e6a115b468cc79e280b2e51a2d159929

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page