A list of all methods in the PullRequestsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
GetPullRequestAsync | Gets information about a pull request, such as the source and destination details, who reviewed the pull request, the merge's current status, and whether the element is accessible. |
UpdatePullRequestAsync | Updates an open pull request. |
Gets information about a pull request, such as the source and destination details, who reviewed the pull request, the merge's current status, and whether the element is accessible.
- HTTP Method:
GET
- Endpoint:
/pull-requests/{pullRequestId}
Parameters
Name | Type | Required | Description |
---|---|---|---|
pullRequestId | string | ✅ | The pull request's ID. |
Return Type
PullRequestGet
Example Usage Code Snippet
using PostmanClient;
var client = new PostmanClientClient();
var response = await client.PullRequests.GetPullRequestAsync("4e1a6609-1a29-4037-a411-89ecc14c6cd8");
Console.WriteLine(response);
Updates an open pull request.
- HTTP Method:
PUT
- Endpoint:
/pull-requests/{pullRequestId}
Parameters
Name | Type | Required | Description |
---|---|---|---|
input | PullRequestUpdate | ❌ | The request body. |
pullRequestId | string | ✅ | The pull request's ID. |
Return Type
PullRequestUpdated
Example Usage Code Snippet
using PostmanClient;
using PostmanClient.Models;
var client = new PostmanClientClient();
var reviewers = new List<string>() { "12345678" };
var input = new PullRequestUpdate("Updated PR title", reviewers);
var response = await client.PullRequests.UpdatePullRequestAsync(input, "4e1a6609-1a29-4037-a411-89ecc14c6cd8");
Console.WriteLine(response);