Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Evaluates whether a pull request has met all the conditions specified in its associated approval rules.
Synopsis
- data EvaluatePullRequestApprovalRules = EvaluatePullRequestApprovalRules' {
- pullRequestId :: Text
- revisionId :: Text
- newEvaluatePullRequestApprovalRules :: Text -> Text -> EvaluatePullRequestApprovalRules
- evaluatePullRequestApprovalRules_pullRequestId :: Lens' EvaluatePullRequestApprovalRules Text
- evaluatePullRequestApprovalRules_revisionId :: Lens' EvaluatePullRequestApprovalRules Text
- data EvaluatePullRequestApprovalRulesResponse = EvaluatePullRequestApprovalRulesResponse' {}
- newEvaluatePullRequestApprovalRulesResponse :: Int -> Evaluation -> EvaluatePullRequestApprovalRulesResponse
- evaluatePullRequestApprovalRulesResponse_httpStatus :: Lens' EvaluatePullRequestApprovalRulesResponse Int
- evaluatePullRequestApprovalRulesResponse_evaluation :: Lens' EvaluatePullRequestApprovalRulesResponse Evaluation
Creating a Request
data EvaluatePullRequestApprovalRules Source #
See: newEvaluatePullRequestApprovalRules
smart constructor.
EvaluatePullRequestApprovalRules' | |
|
Instances
newEvaluatePullRequestApprovalRules Source #
Create a value of EvaluatePullRequestApprovalRules
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:pullRequestId:EvaluatePullRequestApprovalRules'
, evaluatePullRequestApprovalRules_pullRequestId
- The system-generated ID of the pull request you want to evaluate.
$sel:revisionId:EvaluatePullRequestApprovalRules'
, evaluatePullRequestApprovalRules_revisionId
- The system-generated ID for the pull request revision. To retrieve the
most recent revision ID for a pull request, use GetPullRequest.
Request Lenses
evaluatePullRequestApprovalRules_pullRequestId :: Lens' EvaluatePullRequestApprovalRules Text Source #
The system-generated ID of the pull request you want to evaluate.
evaluatePullRequestApprovalRules_revisionId :: Lens' EvaluatePullRequestApprovalRules Text Source #
The system-generated ID for the pull request revision. To retrieve the most recent revision ID for a pull request, use GetPullRequest.
Destructuring the Response
data EvaluatePullRequestApprovalRulesResponse Source #
See: newEvaluatePullRequestApprovalRulesResponse
smart constructor.
EvaluatePullRequestApprovalRulesResponse' | |
|
Instances
newEvaluatePullRequestApprovalRulesResponse Source #
Create a value of EvaluatePullRequestApprovalRulesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:EvaluatePullRequestApprovalRulesResponse'
, evaluatePullRequestApprovalRulesResponse_httpStatus
- The response's http status code.
$sel:evaluation:EvaluatePullRequestApprovalRulesResponse'
, evaluatePullRequestApprovalRulesResponse_evaluation
- The result of the evaluation, including the names of the rules whose
conditions have been met (if any), the names of the rules whose
conditions have not been met (if any), whether the pull request is in
the approved state, and whether the pull request approval rule has been
set aside by an override.
Response Lenses
evaluatePullRequestApprovalRulesResponse_httpStatus :: Lens' EvaluatePullRequestApprovalRulesResponse Int Source #
The response's http status code.
evaluatePullRequestApprovalRulesResponse_evaluation :: Lens' EvaluatePullRequestApprovalRulesResponse Evaluation Source #
The result of the evaluation, including the names of the rules whose conditions have been met (if any), the names of the rules whose conditions have not been met (if any), whether the pull request is in the approved state, and whether the pull request approval rule has been set aside by an override.