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.1-py3-none-win_arm64.whl (1.1 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

release_tag-0.4.1-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.1-py3-none-manylinux_2_17_aarch64.whl (1.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

Uploaded Python 3macOS 10.12+ x86-64

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: release_tag-0.4.1-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.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 02dda7b1c21320fc049d9184ec25893e5019b47435745da7530e3c224772fea9
MD5 3db9194a25650abdedd04fabd1a4a642
BLAKE2b-256 622c56c2da91c2abf586261bf24123ab55123f1d8b6669f68f9acc1abfa164ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.1-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.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e3caf97f4a79967dfa38ad523d71101712de6470947faafd6c4773a10cd891fd
MD5 015604ff85efaa282e152d0ecde1190e
BLAKE2b-256 d20947b6567525c55209b2c422fb15a6b5fc386838322719ad4c716ffc931c85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.1-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.1-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 d0f5beacfb350346fa09f6aa0d5a6185df460ace2294701036c39384165e81f2
MD5 ca1dc1fe3778254ca3bc3b3d31fd1313
BLAKE2b-256 8bcaae9b506736ee1674fae158d02ea328bf779649bc00e2cfcf0c77fbabc5aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.1-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.1-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 1015007e3cf7c5badc0b8c8d2b3dc8f0231455be9bc20d9619ced37d7980dac3
MD5 0181bd617d81b8d2e00443aaa5db0364
BLAKE2b-256 c4514127d223b0c149ad671989a125d2b20b122f4c36018accebfce015a63d37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.1-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.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e95cb3f8b156d556e3733df58c95d4b7220bcd5ebd51a85d1883a8b079b6a367
MD5 349cc20973f162dac5480a97fbe21781
BLAKE2b-256 74708cb162582f459b2c000fb4ebff25719f0f8299720bb36a183a65a88827d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.1-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.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 396ed383e148b7d622b9f69ebcffcc537949f86c0e032f49fa8bea868179e1a0
MD5 2339746c024d08f759a0083fea3aa5bb
BLAKE2b-256 bb858fb644c085b7162e7c7567e6f427423ad27d18fe07a8d43f3629b5048318

See more details on using hashes here.

File details

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

File metadata

  • Download URL: release_tag-0.4.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a061b1e7141a1460d622d10dd875d6685333ce297182fc89693fe77da719a393
MD5 96a300cf4f82f1a1b1dd608d18e82cbe
BLAKE2b-256 fb025413c762acd8598f77f323583c1002ad05b98da14c18aabb8e28a0921ed3

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