dcloud git tag-protection create

Protect a tag pattern

IAM git:ManageBranchProtectionChanges stateAsks before it deletes (-y skips)

Synopsis

dcloud git tag-protection create repoId --pattern pattern

Arguments

  • <repoId>Required

    string

    Also accepted as --repo-id. Constraints: uuid

Flags

  • --patternRequired

    string

    Tag name or glob, e.g. v* or release-*; matching tags need git:PushProtectedTag

    Constraints: 1-200 chars, /^[A-Za-z0-9._/*+-]+$/

Example

dcloud git tag-protection create repoId --pattern example

Generated from the API description, the same one the API checks requests against and the CLI is built from.