Skip to content

Override Pull Request Approval Rules

codecommit_override_pull_request_approval_rules R Documentation

Sets aside (overrides) all approval rule requirements for a specified pull request

Description

Sets aside (overrides) all approval rule requirements for a specified pull request.

Usage

codecommit_override_pull_request_approval_rules(pullRequestId,
  revisionId, overrideStatus)

Arguments

pullRequestId

[required] The system-generated ID of the pull request for which you want to override all approval rule requirements. To get this information, use get_pull_request.

revisionId

[required] The system-generated ID of the most recent revision of the pull request. You cannot override approval rules for anything but the most recent revision of a pull request. To get the revision ID, use GetPullRequest.

overrideStatus

[required] Whether you want to set aside approval rule requirements for the pull request (OVERRIDE) or revoke a previous override and apply approval rule requirements (REVOKE). REVOKE status is not stored.

Value

An empty list.

Request syntax

svc$override_pull_request_approval_rules(
  pullRequestId = "string",
  revisionId = "string",
  overrideStatus = "OVERRIDE"|"REVOKE"
)