Skip to content

m git tag_release

Supplement to m github release.

This command needs the git cli and it is meant to be run after m github release to create a major and minor release tags.

example::

$ m git tag_release --version 1.2.3

It will create or update the following tags::

-v1
-v1.2

Note that the tags may be moved with each release to point to the latest release. This is done by deleting the tag and creating it again.

Source code in m/cli/commands/git/tag_release.py
class Arguments(BaseModel):
    """Supplement to `m github release`.

    This command needs the `git` cli and it is meant to be run after
    `m github release` to create a major and minor release tags.


    example::

        $ m git tag_release --version 1.2.3


    It will create or update the following tags::

        -v1
        -v1.2

    Note that the tags may be moved with each release to point to the latest
    release. This is done by deleting the tag and creating it again.
    """

    version: str = Arg(
        help='version to create tags from',
        required=True,
    )
    sha: str = Arg(
        default='',
        help='sha to tag',
    )
    major_only: bool = Arg(
        default=False,
        help='only create major tag',
    )

Required arguments

--version

version to create tags from

Options

--sha

  • default: ''

sha to tag

--major-only

  • default: false

only create major tag