-
Notifications
You must be signed in to change notification settings - Fork 4k
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
codepipeline: GitHubSourceAction should allow setup without polling or webhook #1652
Comments
@skinny85 that's a good point. Is this possible to set up in Pipelines at all? I think the use case makes sense. |
Yes this is possible to set up in CP. It works. I have a setup where Cloudwatch scheduled events parameterized by pipeline name trigger a Lambda that triggers the pipeline. |
@jesterhazy that's cool. good to know |
@eladb we can easily add another optional parameter to My only worry is that it's such an edge case, I'm almost not sure if it's worth to have a separate property for it, and perhaps @jesterhazy's workaround is 'good enough' in those rare situations when you do need it... Thoughts? |
Sounds like this should be an enum |
What should be an |
Instead of enum Trigger {
None,
Poll,
WebHook,
} |
That's giving even more visibility to that edge case, which is the exact opposite of my intention here... |
What's wrong with making this option visible? I think it's a perfectly viable option for people. We should obvsiouly default to the preferred option, but I don't see any reason to be opinionated about which options are more "visible" as long as the API is clear |
What is the status of this? |
no idea. we are still using the workaround I mentioned in the issue description above. |
I'm also interested in this. We have some pipelines that only trigger on a schedule. |
codepipeline.GitHubSourceAction takes a 'pollForSourceChanges' setting. If it is true, codepipeline will poll github for changes. If it is false, then cdk will automatically create a webhook and configure the pipeline use it as a trigger.
This is almost always the right thing to do.
But if you want to trigger a pipeline on a schedule, it would be great to be able to create a pipeline with both of these triggers disable.
There is a workaround to achieve this:
The text was updated successfully, but these errors were encountered: