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.4.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.4-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: release_tag-0.2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 85a83902a910f0f6657faa72ad7037e06672444b02843be7a88ea39eacf03862
MD5 58406d5b317f3088fce4e6bd2deb6f95
BLAKE2b-256 ed963b9e1495d357fc862aecd8bef875a35e4a5ddddd5d174e549bc81ac39cf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for release_tag-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 95a230f5efe46b6080350d122531ac263d629f3bc6d751723c9a377ff4968aa7
MD5 a5c7c354a3f39fef6d79c44deaa8ee8e
BLAKE2b-256 687dd809b5f633900c59ef6fb4af2243caec6efc7572436bbab337d0997836a4

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