We’re very happy to announce that as of today you can choose to only trigger builds when opening, updating, or closing Pull Requests! This works for both GitHub, GitLab, as well as Bitbucket.
Triggering builds only on Pull Requests look similar to regular builds. The difference is the pull request number is on the build element.
The pull request number and the URL of the pull request are now available as environment variables only for builds triggered by pull request events:
* PR_NUMBER is populated with the pull request number. * CI_PULL_REQUEST is populated with the URL of the pull request.
To enable builds only on Pull Requests, change the project settings under Build Triggers to “Build only on PR events".
See Configuring Build Triggers for more information.
Thoughts? Comments? Please send any feedback you have to firstname.lastname@example.org