dcloud git pulls enable-auto-merge

Merge automatically once approvals and required checks pass

IAM git:MergePullRequestChanges state

Merges as the caller, with this method; merges at once if it already can (`result: merged`). Refused for a draft and on a branch that requires the merge queue. `autoMergeBlockedReason` on the pull request says what it waits for. Turned off if the caller later loses git:MergePullRequest.

Synopsis

dcloud git pulls enable-auto-merge repoId prNumber --method method

Arguments

  • <repoId>Required

    string

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

  • <prNumber>Required

    number

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

Flags

  • --methodRequired

    enum

    merge records a merge commit, squash lands the branch as one commit, rebase replays each commit onto the target; the repository must allow it

    One of: merge, squash, rebase

Example

dcloud git pulls enable-auto-merge repoId prNumber --method merge

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