dcloud git pulls apply-suggestion

Commit a review comment's suggested change to the pull request's branch

IAM git:PushRepositoryChanges stateAsks before it deletes (-y skips)

The comment must be on a line of the new side and carry a ```suggestion block; it replaces that line (empty deletes it). Refused once the branch has moved since the comment (409), and subject to branch protection like a push. Resolves the thread.

Synopsis

dcloud git pulls apply-suggestion repoId prNumber commentId

Arguments

  • <repoId>Required

    string

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

  • <prNumber>Required

    number

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

  • <commentId>Required

    string

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

Example

dcloud git pulls apply-suggestion repoId prNumber commentId

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