Skip to content

Delete Pull Request Approval Rule

codecommit_delete_pull_request_approval_rule R Documentation

Deletes an approval rule from a specified pull request

Description

Deletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the pull request was created. You cannot delete an approval rule from a merged or closed pull request.

Usage

codecommit_delete_pull_request_approval_rule(pullRequestId,
  approvalRuleName)

Arguments

pullRequestId

[required] The system-generated ID of the pull request that contains the approval rule you want to delete.

approvalRuleName

[required] The name of the approval rule you want to delete.

Value

A list with the following syntax:

list(
  approvalRuleId = "string"
)

Request syntax

svc$delete_pull_request_approval_rule(
  pullRequestId = "string",
  approvalRuleName = "string"
)