1. Resources
  2. /
  3. Changelog
  4. /
  5. GitHub merge queue integration

GitHub merge queue integration

Buildkite now has built-in support for GitHub merge queues. You can now opt into creating and canceling builds based on merge_group webhook events from GitHub. These builds are identified as merge queue builds in the Buildkite UI, and build behavior can be customized based on merge queue-specific attributes.

🆕 What’s new

Listing merge queue builds

  • Create builds when a merge group is added to the merge queue: Rather than rely on triggering a build based on unique gh-readonly-queue/* branches, builds can now be triggered in response to a merge_group webhook event.
  • Optionally cancel in-progress builds when a merge group becomes invalid: Cancel any running builds belonging to a destroyed merge group (e.g. when the merge queue entry is replaced due to a pull request being removed from the queue).
  • Identify merge queue builds in the Buildkite UI: Merge queue builds are listed separately at the top of the pipeline page, and builds can be filtered by the merge queue they belong to.
  • Vary pipeline behavior for merge queue builds: Utilize new build conditionals (build.merge_queue.base_commit, build.merge_queue.base_branch) and environment variables (BUILDKITE_MERGE_QUEUE_BASE_COMMIT, BUILDKITE_MERGE_QUEUE_BASE_BRANCH) to modify the behavior of your pipeline.
  • Avoid redundant work using if_changed during step uploads: For appropriate merge queue configurations, the agent if_changed attribute can use BUILDKITE_MERGE_QUEUE_BASE_COMMIT to determine which steps to run based on the contents of the pull request – particularly useful for monorepos.

Mapping of a merge group to a build

For full details about these features and the interaction between GitHub merge queues and Buildkite see our tutorial or watch the video below:

Mark

Atom feed

Start turning complexity into an advantage

Create an account to get started with a 30-day free trial. No credit card required.

Buildkite Pipelines

Platform

  1. Pipelines
  2. Public pipelines
  3. Test Engine
  4. Package Registries
  5. Mobile Delivery Cloud
  6. Pricing

Hosting options

  1. Self-hosted agents
  2. Mac hosted agents
  3. Linux hosted agents

Resources

  1. Docs
  2. Blog
  3. Changelog
  4. Example pipelines
  5. Plugins
  6. Webinars
  7. Case studies
  8. Events
  9. Migration Services
  10. Comparisons

Company

  1. About
  2. Careers
  3. Press
  4. Security
  5. Brand assets
  6. Contact

Solutions

  1. Replace Jenkins
  2. Workflows for AI/ML
  3. Testing at scale
  4. Monorepo mojo
  5. Bazel orchestration

Legal

  1. Terms of Service
  2. Acceptable Use Policy
  3. Privacy Policy
  4. Subprocessors
  5. Service Level Agreement

Support

  1. System status
  2. Forum
© Buildkite Pty Ltd 2025