Hi, buildkite supports running pipelines on PR’s, but is there support for having a pipeline run on a PR being closed?
Hi @donal thats a good question. We don’t currently have support for a PR closed trigger.
As a workaround, we recommend you use our GitHub action to trigger a build in Buildkite when the GitHub PR is closed.
I am wondering if this feature is now available?
I have a feeling that GitHub is trying to unfairly compete by hiding useful events such as PR closing event so that its GitHub Action has better integration
Hi @tle_compono ,
Welcome to the Buildkite Support Community! ![]()
Unfortunately, we still do not support triggering builds on a pull_request closed event from Github. Are you able to provide a use case on why you would want to have builds triggered on this event?
Cheers!
Hi @lizette,
Use case for us is cleaning up preview environments after the PR is merged or closed. This feature would be great to have.
Thanks!
Hey @jeremyjacob
,
First of all welcome to Buildkite community and thank you for reaching out to us with your question.
While we do not support triggering builds on PR Closed event from github, we do have options on how you can achieve this workflow which is explained in Triggering pipelines using GitHub Actions | Buildkite Documentation
Please can you look into this and let me know if that works for you.
Thanks,
Suma