dcloud git labels set-pull-request-labels

Replace a pull request’s labels

IAM git:UpdateIssueChanges state

Workflows see them as github.event.pull_request.labels (contains(github.event.pull_request.labels.*.name, …)).

Synopsis

dcloud git labels set-pull-request-labels repoId prNumber --labels labels

Arguments

  • <repoId>Required

    string

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

  • <prNumber>Required

    number

    Also accepted as --pr-number. Constraints: integer, min 1

Flags

  • --labelsRequired

    array of string

    Label names replacing the current set (empty removes all); each must exist in the repository

    Constraints: 1-50 chars

Example

dcloud git labels set-pull-request-labels repoId prNumber --labels '["example"]'

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