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 |
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.
Synopsis
- data DeletePullRequestApprovalRule = DeletePullRequestApprovalRule' {}
- newDeletePullRequestApprovalRule :: Text -> Text -> DeletePullRequestApprovalRule
- deletePullRequestApprovalRule_pullRequestId :: Lens' DeletePullRequestApprovalRule Text
- deletePullRequestApprovalRule_approvalRuleName :: Lens' DeletePullRequestApprovalRule Text
- data DeletePullRequestApprovalRuleResponse = DeletePullRequestApprovalRuleResponse' {
- httpStatus :: Int
- approvalRuleId :: Text
- newDeletePullRequestApprovalRuleResponse :: Int -> Text -> DeletePullRequestApprovalRuleResponse
- deletePullRequestApprovalRuleResponse_httpStatus :: Lens' DeletePullRequestApprovalRuleResponse Int
- deletePullRequestApprovalRuleResponse_approvalRuleId :: Lens' DeletePullRequestApprovalRuleResponse Text
Creating a Request
data DeletePullRequestApprovalRule Source #
See: newDeletePullRequestApprovalRule
smart constructor.
DeletePullRequestApprovalRule' | |
|
Instances
newDeletePullRequestApprovalRule Source #
Create a value of DeletePullRequestApprovalRule
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:DeletePullRequestApprovalRule'
, deletePullRequestApprovalRule_pullRequestId
- The system-generated ID of the pull request that contains the approval
rule you want to delete.
$sel:approvalRuleName:DeletePullRequestApprovalRule'
, deletePullRequestApprovalRule_approvalRuleName
- The name of the approval rule you want to delete.
Request Lenses
deletePullRequestApprovalRule_pullRequestId :: Lens' DeletePullRequestApprovalRule Text Source #
The system-generated ID of the pull request that contains the approval rule you want to delete.
deletePullRequestApprovalRule_approvalRuleName :: Lens' DeletePullRequestApprovalRule Text Source #
The name of the approval rule you want to delete.
Destructuring the Response
data DeletePullRequestApprovalRuleResponse Source #
See: newDeletePullRequestApprovalRuleResponse
smart constructor.
DeletePullRequestApprovalRuleResponse' | |
|
Instances
newDeletePullRequestApprovalRuleResponse Source #
Create a value of DeletePullRequestApprovalRuleResponse
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:DeletePullRequestApprovalRuleResponse'
, deletePullRequestApprovalRuleResponse_httpStatus
- The response's http status code.
$sel:approvalRuleId:DeletePullRequestApprovalRuleResponse'
, deletePullRequestApprovalRuleResponse_approvalRuleId
- The ID of the deleted approval rule.
If the approval rule was deleted in an earlier API call, the response is 200 OK without content.
Response Lenses
deletePullRequestApprovalRuleResponse_httpStatus :: Lens' DeletePullRequestApprovalRuleResponse Int Source #
The response's http status code.
deletePullRequestApprovalRuleResponse_approvalRuleId :: Lens' DeletePullRequestApprovalRuleResponse Text Source #
The ID of the deleted approval rule.
If the approval rule was deleted in an earlier API call, the response is 200 OK without content.