dcloud git webhooks create

Add a webhook

IAM git:CreateWebhookChanges state

Synopsis

dcloud git webhooks create repoId --url url --events events [flags]

Arguments

  • <repoId>Required

    string

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

Flags

  • --urlRequired

    string

    The public URL each delivery is POSTed to

    Constraints: url

  • --eventsRequired

    enum

    The events that trigger a delivery

    One of: push, tag, pull_request, pull_request_review, issues, issue_comment, release, merge_queue

  • --secretOptional

    string

    Signs each delivery with an HMAC-SHA256 of its body (`sha256=…` header); unsigned when absent

    Constraints: max 200 chars

  • --is-activeOptional

    boolean (--is-active / --no-is-active)

    false pauses deliveries without deleting the hook; true when created without it

Example

dcloud git webhooks create repoId --url example --events push

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