dcloud git pulls diff

Download 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>Required

    string

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

  • <prNumber>Required

    number

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

Flags

  • --formatOptional

    enum

    `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 prNumber

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