dcloud git pulls merge

Merge, squash or rebase a pull request

IAM git:MergePullRequestChanges state

Synopsis

dcloud git pulls merge repoId prNumber [flags]

Arguments

  • <repoId>Required

    string

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

  • <prNumber>Required

    number

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

Flags

  • --messageOptional

    string

    The commit message; when absent `Merge pull request #n from <branch>` and the title, or for a squash `Title (#n)` and the description. A rebase keeps each commit message

    Constraints: max 500 chars

  • --methodOptional

    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

    Default: "merge"

  • --expected-head-shaOptional

    string

    Merge only if the source branch is still at this commit; otherwise 409

    Constraints: /^[0-9a-f]{40}$/

Example

dcloud git pulls merge repoId prNumber

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