@@ -567,6 +567,10 @@ describe('default properties', () => {
567
567
webhookFilters : [
568
568
codebuild . FilterGroup . inEventOf ( codebuild . EventAction . PUSH ) . andTagIsNot ( 'stable' ) ,
569
569
codebuild . FilterGroup . inEventOf ( codebuild . EventAction . PULL_REQUEST_REOPENED ) . andBaseBranchIs ( 'main' ) ,
570
+ codebuild . FilterGroup . inEventOf ( codebuild . EventAction . RELEASED ) . andBaseBranchIs ( 'main' ) ,
571
+ codebuild . FilterGroup . inEventOf ( codebuild . EventAction . PRERELEASED ) . andBaseBranchIs ( 'main' ) ,
572
+ codebuild . FilterGroup . inEventOf ( codebuild . EventAction . WORKFLOW_JOB_QUEUED ) . andBaseBranchIs ( 'main' ) ,
573
+ codebuild . FilterGroup . inEventOf ( codebuild . EventAction . PULL_REQUEST_CLOSED ) . andBaseBranchIs ( 'main' ) ,
570
574
] ,
571
575
} ) ,
572
576
} ) ;
@@ -595,6 +599,22 @@ describe('default properties', () => {
595
599
{ Type : 'EVENT' , Pattern : 'PULL_REQUEST_REOPENED' } ,
596
600
{ Type : 'BASE_REF' , Pattern : 'refs/heads/main' } ,
597
601
] ,
602
+ [
603
+ { Type : 'EVENT' , Pattern : 'RELEASED' } ,
604
+ { Type : 'BASE_REF' , Pattern : 'refs/heads/main' } ,
605
+ ] ,
606
+ [
607
+ { Type : 'EVENT' , Pattern : 'PRERELEASED' } ,
608
+ { Type : 'BASE_REF' , Pattern : 'refs/heads/main' } ,
609
+ ] ,
610
+ [
611
+ { Type : 'EVENT' , Pattern : 'WORKFLOW_JOB_QUEUED' } ,
612
+ { Type : 'BASE_REF' , Pattern : 'refs/heads/main' } ,
613
+ ] ,
614
+ [
615
+ { Type : 'EVENT' , Pattern : 'PULL_REQUEST_CLOSED' } ,
616
+ { Type : 'BASE_REF' , Pattern : 'refs/heads/main' } ,
617
+ ] ,
598
618
] ,
599
619
} ,
600
620
} ) ;
@@ -664,6 +684,7 @@ describe('default properties', () => {
664
684
codebuild . EventAction . PULL_REQUEST_CREATED ,
665
685
codebuild . EventAction . PULL_REQUEST_UPDATED ,
666
686
codebuild . EventAction . PULL_REQUEST_MERGED ,
687
+ codebuild . EventAction . PULL_REQUEST_CLOSED ,
667
688
) . andTagIs ( 'v.*' ) ,
668
689
// duplicate event actions are fine
669
690
codebuild . FilterGroup . inEventOf ( codebuild . EventAction . PUSH , codebuild . EventAction . PUSH ) . andActorAccountIsNot ( 'aws-cdk-dev' ) ,
@@ -685,7 +706,7 @@ describe('default properties', () => {
685
706
Webhook : true ,
686
707
FilterGroups : [
687
708
[
688
- { Type : 'EVENT' , Pattern : 'PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED, PULL_REQUEST_MERGED' } ,
709
+ { Type : 'EVENT' , Pattern : 'PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED, PULL_REQUEST_MERGED, PULL_REQUEST_CLOSED ' } ,
689
710
{ Type : 'HEAD_REF' , Pattern : 'refs/tags/v.*' } ,
690
711
] ,
691
712
[
0 commit comments