View a markdown version of this page

UpdatePullRequestStatus - AWS CodeCommit

UpdatePullRequestStatus

Updates the status of a pull request.

Request Syntax

{ "pullRequestId": "string", "pullRequestStatus": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

pullRequestId

The system-generated ID of the pull request. To get this ID, use ListPullRequests.

Type: String

Required: Yes

pullRequestStatus

The status of the pull request. The only valid operations are to update the status from OPEN to OPEN, OPEN to CLOSED or from CLOSED to CLOSED.

Type: String

Valid Values: OPEN | CLOSED

Required: Yes

Response Syntax

{ "pullRequest": { "approvalRules": [ { "approvalRuleContent": "string", "approvalRuleId": "string", "approvalRuleName": "string", "creationDate": number, "lastModifiedDate": number, "lastModifiedUser": "string", "originApprovalRuleTemplate": { "approvalRuleTemplateId": "string", "approvalRuleTemplateName": "string" }, "ruleContentSha256": "string" } ], "authorArn": "string", "clientRequestToken": "string", "creationDate": number, "description": "string", "lastActivityDate": number, "pullRequestId": "string", "pullRequestStatus": "string", "pullRequestTargets": [ { "destinationCommit": "string", "destinationReference": "string", "mergeBase": "string", "mergeMetadata": { "isMerged": boolean, "mergeCommitId": "string", "mergedBy": "string", "mergeOption": "string" }, "repositoryName": "string", "sourceCommit": "string", "sourceReference": "string" } ], "revisionId": "string", "title": "string" } }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

pullRequest

Information about the pull request.

Type: PullRequest object

Errors

For information about the errors that are common to all actions, see Common Error Types.

EncryptionIntegrityChecksFailedException