-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fixed: Codebuild Webhook Filters are to be a list of list of WebhookFilter #1372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed: Codebuild Webhook Filters are to be a list of list of WebhookFilter #1372
Conversation
…ilter According to documentation, Web Hooks should be written in the form of List of List of WebHooks https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html Fixed: Max line length Fixed: Blank Line
Force-pushed to squash 2 commits which were to fix pep-8 issues. |
Oh interesting. list of lists...likely what you want to do to implement is not to override __init__() but create a
|
Force-pushed to squash 2 commits which were to fix pep-8 issues. |
Thanks! I did see an issue with counti not getting incremented so I switched to using enumeration and added some tests. Please take a look at 8259f0a to verify. |
@JohnPreston @markpeek - sorry to revive this, but we just ran into an issue with this. Effectively that makes has it required as False, as the documentation dictates. Was this intended? We can work around it by setting |
Agreed. Looks like ProjectTriggers is not required and Webhook/FilterGroups are not required. Likely that raise line gets changed to a return. Feel free to PR and adding a test is always encouraged. :-) |
Cool, I'll get to a PR probably tonight. 8000 td> |
Yeah, we'll need a PR - my workaround (an empty list of lists) fails:
|
Fixes a bug introduced here #1372 Basically while FilterGroups aren't required, the validate() function was effectively making them required. This makes it so validate only validates FilterGroups if they're actually set.
…ilter (cloudtools#1372) * Fixed: Codebuild Webhook Filters are to be a list of list of WebhookFilter According to documentation, Web Hooks should be written in the form of List of List of WebHooks https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html
…ot (cloudtools#1424) Fixes a bug introduced here cloudtools#1372 Basically while FilterGroups aren't required, the validate() function was effectively making them required. This makes it so validate only validates FilterGroups if they're actually set.
According to documentation, Web Hooks should be written in the form of List of List of WebHooks
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projecttriggers.html
API call confirms the structure:
Hope I used the class appropriately.