Skip to content

Evaluate Pull Request Approval Rules

codecommit_evaluate_pull_request_approval_rules R Documentation

Evaluates whether a pull request has met all the conditions specified in its associated approval rules

Description

Evaluates whether a pull request has met all the conditions specified in its associated approval rules.

Usage

codecommit_evaluate_pull_request_approval_rules(pullRequestId,
  revisionId)

Arguments

pullRequestId

[required] The system-generated ID of the pull request you want to evaluate.

revisionId

[required] The system-generated ID for the pull request revision. To retrieve the most recent revision ID for a pull request, use get_pull_request.

Value

A list with the following syntax:

list(
  evaluation = list(
    approved = TRUE|FALSE,
    overridden = TRUE|FALSE,
    approvalRulesSatisfied = list(
      "string"
    ),
    approvalRulesNotSatisfied = list(
      "string"
    )
  )
)

Request syntax

svc$evaluate_pull_request_approval_rules(
  pullRequestId = "string",
  revisionId = "string"
)