dcloud git commit-statuses create

Report a status on a commit (one per context; a later one replaces it)

IAM git:CreateCommitStatusChanges state

GitHub’s POST /repos/{owner}/{repo}/statuses/{sha}. A branch protection rule whose required checks name this context waits for it: pending waits, success passes, failure and error block.

Synopsis

dcloud git commit-statuses create repoId sha --state state [flags]

Arguments

  • <repoId>Required

    string

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

  • <sha>Required

    string

    Also accepted as --sha. Constraints: /^[0-9a-f]{40}$/

Flags

  • --stateRequired

    enum

    The result: pending waits, success passes, failure and error block a required check

    One of: pending, success, failure, error

  • --contextOptional

    string

    Names the check; a required check of this name gates merges

    Constraints: 1-255 chars

    Default: "default"

  • --descriptionOptional

    string

    A short summary shown beside the status

    Constraints: max 1000 chars

  • --target-urlOptional

    string

    An https:// link to the details

    Constraints: max 2000 chars

Example

dcloud git commit-statuses create repoId sha --state pending

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