dcloud git pulls mergeMerge, squash or rebase a pull request
IAM git:MergePullRequestChanges state
Synopsis
dcloud git pulls merge repoId prNumber [flags]Arguments
<repoId>Requiredstring
Also accepted as
--repo-id. Constraints: uuid<prNumber>Requirednumber
Also accepted as
--pr-number. Constraints: integer, min 1
Flags
--messageOptionalstring
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
--methodOptionalenum
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,rebaseDefault:
"merge"--expected-head-shaOptionalstring
Merge only if the source branch is still at this commit; otherwise 409
Constraints: /^[0-9a-f]{40}$/
Example
dcloud git pulls merge repoId prNumberGenerated from the API description, the same one the API checks requests against and the CLI is built from.