Skip to content
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

add more flexible triggering configuration #1222

Open
jstrachan opened this issue Jan 27, 2021 · 0 comments
Open

add more flexible triggering configuration #1222

jstrachan opened this issue Jan 27, 2021 · 0 comments

Comments

@jstrachan
Copy link
Member

jstrachan commented Jan 27, 2021

how that go-scm can handle deployments and a bunch of other webhooks (e.g. when a label is added to a PR, a deployment has been recorded, when a PR becomes unmergeable etc) it might be nice to add a GitHub Actions style configuration to trigger a pipeline using a number of filters. So in addition to the presubmits and postsubmits we could add something like...

presubmits: []
postsubmits: []

# new section for handling events using a more flexible syntax
on:
# list the events and predicates
- # all the events that trigger the pipeline
  # only needs to be 1 event but added multiple event types to show how we could trigger on multiple events 
  release: {}
  label: 
     types: [created]
     name: ok-to-test 
   deployment: {}
   issueComment: {}
   pullRequestComment:
      matches: "/mything"
   # now the usual presubmit/postsubmit job spec...
   name: cheese
   source: "cheese.yaml"

then folks can trigger a pipeline using any of the supported go-scm webhooks with per-webhook-kind filters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant