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 version 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.

For the most up-to-date options, run tag --help,

$ tag --help
Calculate the next semantic version tag

Usage:
  tag [flags]
  tag [command]

Available Commands:
  completion  Generate completion script
  help        Help about any command

Flags:
      --check             validate that the tag at HEAD has its previous version as an ancestor
      --debug             enable debug logging
  -h, --help              help for tag
      --major             increment the major version
      --metadata string   set the build metadata
      --minor             increment the minor version
      --patch             increment the patch version
      --prefix string     set a prefix for the tag
      --print-only        print the next tag and exit
      --push              create and push the tag to remote
      --remote string     remote repository to push tag to (default "origin")
      --suffix string     set the pre-release suffix (e.g., rc, alpha, beta)
  -v, --version           version for tag

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

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

release_tag-0.4.2-py3-none-win_arm64.whl (1.1 MB view details)

Uploaded Python 3Windows ARM64

release_tag-0.4.2-py3-none-win_amd64.whl (1.3 MB view details)

Uploaded Python 3Windows x86-64

release_tag-0.4.2-py3-none-manylinux_2_17_x86_64.whl (1.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

release_tag-0.4.2-py3-none-manylinux_2_17_aarch64.whl (1.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

release_tag-0.4.2-py3-none-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

release_tag-0.4.2-py3-none-macosx_10_12_x86_64.whl (1.2 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

release_tag-0.4.2-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file release_tag-0.4.2-py3-none-win_arm64.whl.

File metadata

  • Download URL: release_tag-0.4.2-py3-none-win_arm64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.4.2-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 372b0ecbcbee7a205386d57f44b0c9e0f88057fe961dcbb186c276bd563b23de
MD5 b350e868482d461166c2c83aeefe4066
BLAKE2b-256 a97214efbfb26d249f4b7da11a4e41d46d768b4307a3f2648af8559fee75f105

See more details on using hashes here.

File details

Details for the file release_tag-0.4.2-py3-none-win_amd64.whl.

File metadata

  • Download URL: release_tag-0.4.2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.4.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 100a0ba262cd8043b7baae0991ef6cc2203248f62d9ef61a75e410847d08a1bb
MD5 81deac2670fac20a2b627e80b7e5185b
BLAKE2b-256 fcfb7204c343dc75b9b022ea72a45e10465582a0abbd45352e3f0b4466d16a12

See more details on using hashes here.

File details

Details for the file release_tag-0.4.2-py3-none-manylinux_2_17_x86_64.whl.

File metadata

  • Download URL: release_tag-0.4.2-py3-none-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.4.2-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ff1b76d6b17444efe87612d6fc1e7230edbac85013550dba4ec5e53be3b8a060
MD5 723654dd8ad5a8a3de343731b3e86212
BLAKE2b-256 a2396c4b05db1d7c869906b6d3dcd4f1ca17cf73c0204353627811d62da41b07

See more details on using hashes here.

File details

Details for the file release_tag-0.4.2-py3-none-manylinux_2_17_aarch64.whl.

File metadata

  • Download URL: release_tag-0.4.2-py3-none-manylinux_2_17_aarch64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3, manylinux: glibc 2.17+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.4.2-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 8945a27680f63b4394878e1f6d3335e041cde022eb8e32942e50481140aac906
MD5 d3c5c37f8293ae8f0662763049a5a2ca
BLAKE2b-256 8f1d05769459c83460695dfa8f644bf7ea17a95887a5b1fc3c19628f755bb36a

See more details on using hashes here.

File details

Details for the file release_tag-0.4.2-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: release_tag-0.4.2-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.4.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13824c7bbf6ab41eddce8894d24cb8df8b8b9de15ed63624d10663e8108b0b26
MD5 d27c384277536972bb9c2193a12fe536
BLAKE2b-256 de0dc136a7fe70f621e8e226499ad9dcc07b7b1803648b3d6339d40e5aac8005

See more details on using hashes here.

File details

Details for the file release_tag-0.4.2-py3-none-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: release_tag-0.4.2-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.4.2-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 eb74dfae9b1cb8afe334ba683222cd1f81a7bf4c92b7b9c633a54216bfe02fb7
MD5 e177c72f9c32868af80bc4c61fe73049
BLAKE2b-256 d2884a476cd3d1410f51f11de6fc9627d03682394019681166b9bca09642a11a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for release_tag-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 98d9ba88392d51efea189b558121b96d584413cddfbeac52dc39904c8b0cf4f4
MD5 b7373126059afd6bdc41f88e4fd92dec
BLAKE2b-256 79e92679623f790314d65fce7864cd97f245ab4c3e846f3354f7e23f3004fca2

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