I'm using AWS CodeBuild and want to trigger project when my PR has been closed (WITHOUT being merged to base branch).
Terraform code example for regular merge event listed below
resource "aws_codebuild_webhook" "pr_closed" {
project_name = "my_codebuild_project"
filter_group {
filter {
type = "EVENT"
pattern = "PULL_REQUEST_MERGED"
}
}
}
Seems like there is no such event here in documentation
Is there a way to make it happen?
I realize this question was asked some time ago, but for anyone finding this now - CodeBuild now supports for filtering on pull request closed events without a merge.
You can use a "PULL_REQUEST_CLOSED" for both your GitHub and BitBucket webhook.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With