Skip to content

m ci assert_branch

Fail command when working on a non valid branch for a release/hotfix.

Used during a release setup or hotfix setup. We want to make sure that we are working on the correct branch depending on release type we want to make and the workflow that we are using.

Source code in m/cli/commands/ci/assert_branch.py
class Arguments(BaseModel):
    """Fail command when working on a non valid branch for a release/hotfix.

    Used during a release setup or hotfix setup. We want to make sure
    that we are working on the correct branch depending on release type
    we want to make and the workflow that we are using.
    """

    type: str = ArgProxy(
        '--type',
        required=True,
        choices=['release', 'hotfix'],
        help='verification type',
    )
    m_dir: str = Arg(
        help='m project directory',
        required=True,
        positional=True,
    )

Options

--type

  • choices: release, hotfix

verification type

Positional arguments

m_dir

m project directory