Partager via


Git Pull Request API

TFS 2017 | TFS 2015 | TFS 2013

Note

Looking for REST APIS that support TFS 2018 or later versions? See the Azure DevOps REST API Reference.

api-version = 3.0-preview

Use these APIs to work with a Pull Request in a Team Foundation managed Git repository.

  • General Operations describes how to find, examine, edit and complete pull requests.

  • Comments threads can be added to the pull request in general or to a specific location in a file. These comments are grouped into threads which can be used on the pull request in general or about a particular section of a file in the pull request.

  • Iterations contain the history of the pull request. Every time commits are pushed to the source branch and when the pull request is created, an iteration is created. Each iteration can contain more than one commit.

  • Reviewers vote to approve or reject the pull request.

  • Work Items can be linked to pull requests.

Note

Repositories have both a name and an identifier. Identifiers are globally unique, but several projects may contain a repository of the same name. You don't need to include the project if you specify a repository by ID. However, if you specify a repository by name, you must also specify the project (by name or ID).

There are code samples available for this area.