What’s new and updated in Buildkite
New environment variable: Pull request draft
Posted July 07, 2022 by Samuel
For customers triggering builds via GitHub, we've added a new environment variable to track the draft status of a pull request:
If a pull request triggers a build while in a draft state, this variable will be present in all the build's command jobs. The variable will be absent otherwise.
This variable allows customizing your uploaded pipelines or running jobs at the agent level based on a pull request's draft status. For example, you might run a faster subset of your tests while a pull request is still in a draft state.
Check out our docs on environment variables for more information.