GitHub event for Buildkite completion

I’ve been trying to build automation on top of GitHub Actions. While Buildkite is great for running builds, the Actions ecosystem (theoretically) let’s me automate a bunch of manual tasks around PRs.

I’ve been trying to write a GitHub action that merges a PR opened by Dependabot once all checks pass (as well as several other things, but that’s the easy example right now), but I can’t figure out what event to listen for. check_suite.completed seems like the right event, and though it fires multiple times in a PR, it doesn’t seem to fire when the Buildkite build completes. I also tried the status event, but that one didn’t seem to fire at.

Can anyone suggest how I might do this?

Hi @ianwremmel :waving_hand: Buildkite uses GitHub’s Status API, not the Checks API, so check_suite.completed won’t fire for Buildkite builds. The status event is actually the better option for your use case and should fire when Buildkite reports commit status updates. If it’s not firing, double check that you don’t have any types filter on your status event (it should just be on: status with nothing else). You can also check if Buildkite is actually sending status updates by looking at the commit status checks in a PR.

that worked, thanks! I had a subtype on status which, even though it’s in the docs, I guess prevented event from being emitted :person_shrugging: