Skip to content

Commit

Permalink
feat(codepipeline): GitPullRequestFilter for pipeline trigger (#29128)
Browse files Browse the repository at this point in the history
### Issue # (if applicable)

Closes #29126.

Related PR: #29127
Perhaps if one merges, the other will cause a conflict.

### Reason for this change

We would be good to trigger pipelines by git pull request filters.

- CFn and API docs
  - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitconfiguration.html
  - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitpullrequestfilter.html
  - https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_GitPullRequestFilter.html

### Description of changes

Add `gitPullRequestFilter` parameter with new interface into `GitConfiguration` interface.

### Description of how you validated changes

Both unit and integ tests.

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
go-to-k authored May 13, 2024
1 parent 7ed3460 commit 5ce1b64
Show file tree
Hide file tree
Showing 11 changed files with 3,011 additions and 53 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5ce1b64

Please sign in to comment.