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 |
Creates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the destination reference (if specified) matches the destination reference (branch) for the pull request, an approval rule that matches the template conditions is automatically created for that pull request. If no destination references are specified in the template, an approval rule that matches the template contents is created for all pull requests in that repository.
Synopsis
- data AssociateApprovalRuleTemplateWithRepository = AssociateApprovalRuleTemplateWithRepository' {}
- newAssociateApprovalRuleTemplateWithRepository :: Text -> Text -> AssociateApprovalRuleTemplateWithRepository
- associateApprovalRuleTemplateWithRepository_approvalRuleTemplateName :: Lens' AssociateApprovalRuleTemplateWithRepository Text
- associateApprovalRuleTemplateWithRepository_repositoryName :: Lens' AssociateApprovalRuleTemplateWithRepository Text
- data AssociateApprovalRuleTemplateWithRepositoryResponse = AssociateApprovalRuleTemplateWithRepositoryResponse' {
- newAssociateApprovalRuleTemplateWithRepositoryResponse :: AssociateApprovalRuleTemplateWithRepositoryResponse
Creating a Request
data AssociateApprovalRuleTemplateWithRepository Source #
See: newAssociateApprovalRuleTemplateWithRepository
smart constructor.
AssociateApprovalRuleTemplateWithRepository' | |
|
Instances
newAssociateApprovalRuleTemplateWithRepository Source #
:: Text |
|
-> Text |
|
-> AssociateApprovalRuleTemplateWithRepository |
Create a value of AssociateApprovalRuleTemplateWithRepository
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:approvalRuleTemplateName:AssociateApprovalRuleTemplateWithRepository'
, associateApprovalRuleTemplateWithRepository_approvalRuleTemplateName
- The name for the approval rule template.
$sel:repositoryName:AssociateApprovalRuleTemplateWithRepository'
, associateApprovalRuleTemplateWithRepository_repositoryName
- The name of the repository that you want to associate with the template.
Request Lenses
associateApprovalRuleTemplateWithRepository_approvalRuleTemplateName :: Lens' AssociateApprovalRuleTemplateWithRepository Text Source #
The name for the approval rule template.
associateApprovalRuleTemplateWithRepository_repositoryName :: Lens' AssociateApprovalRuleTemplateWithRepository Text Source #
The name of the repository that you want to associate with the template.
Destructuring the Response
data AssociateApprovalRuleTemplateWithRepositoryResponse Source #
See: newAssociateApprovalRuleTemplateWithRepositoryResponse
smart constructor.
Instances
newAssociateApprovalRuleTemplateWithRepositoryResponse :: AssociateApprovalRuleTemplateWithRepositoryResponse Source #
Create a value of AssociateApprovalRuleTemplateWithRepositoryResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.