-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
codepipeline: Add Branches and File Paths to CodePipeline pipeline GitPushFilter configuration #31009
Comments
I submitted this feature request initially in #29124 and I would love it see it added. Thanks! |
There also appears to be a draft PR #30516 which goes some way to implementing this issue? |
The workaround mentioned here is to use escape hatch. The filters The PR #30516 appears to |
Any update on #31009? The escape hatch is also not working |
@shandc007 This escape hatch worked for me: const branch = 'my-branch-name'
;(pipeline.node.defaultChild as CfnPipeline).addPropertyOverride(
'Triggers.0.GitConfiguration.Push',
[
{
Branches: {
Includes: [branch],
},
},
],
) |
Describe the feature
Currently, as it seems, only tag-based filters are available (or exposed) in CodePipeline pipeline GitPushFilter configuration via
tagsExcludes
andtagsIncludes
parameters. However, bothBranches
andFilePaths
options exist in CloudFormation spec https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitpushfilter.html Can you please add the two missing configuration parameters? Thanks!Use Case
Branch-based pipeline trigger.
Proposed Solution
Add
branchesExclude
,branchesInclude
,filePathsExclude
andfilePathsInclude
parameters to match CloudFormation spec.Other Information
Previously raised as #29124 but the fix was reverted so opening this to track progress on actually getting it implemented.
Acknowledgements
CDK version used
v2.128.0 (TypeScript)
Environment details (OS name and version, etc.)
MacOS Sonoma 14.3.1
The text was updated successfully, but these errors were encountered: