TeamCity On-Premises
 
Get TeamCity On-Premises

Pull Requests

Edit page Last modified: 16 November 2023

The Pull Requests build feature lets you automatically load pull request* information and run builds on pull request branches in GitHub, Bitbucket Server, Bitbucket Cloud, GitLab, Azure DevOps, and JetBrains Space.

* Or merge requests in case of GitLab and JetBrains Space.

When adding this build feature, you need to specify a VCS root and select a VCS hosting type.
Other settings depend on the selected VCS hosting type.

This feature extends the original branch specification of VCS roots, attached to the current build configuration, to include pull requests that match the specified filtering criteria.

You can find the pull request's details displayed on the Overview tab of the Build Results:

Pull request details

In the case of a draft pull request, the icon is grayed-out and the Draft status appears before the pull request number:

Pull request details

If you configure a VCS trigger for your build configuration, TeamCity will automatically run builds on changes detected in the monitored branches. For example, to auto-start building pull requests for GitHub repositories, add a new trigger (or modify the existing one) with the +:pull/* branch filter rule.

See the example on how to set up TeamCity to run builds on GitHub pull requests, or watch our video tutorial.