dcloud git pulls diffDownload the changes of a pull request as a diff or a patch
IAM git:PullRepositoryRead
Needs git:GetPullRequest as well: the pull request has to be readable, and its changes are source code. An open pull request is compared at the current tips of its branches, a merged or closed one at the commits recorded when it ended.
Synopsis
dcloud git pulls diff 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
--formatOptionalenum
`diff` (the default) is one unified diff; `patch` is the commits as an mbox, as `git format-patch` writes them, for `git am`
One of:
diff,patch
Example
dcloud git pulls diff repoId prNumberGenerated from the API description, the same one the API checks requests against and the CLI is built from.