import { PullRequestClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.14/GitHubClients/PullRequestClient.ts";
Provides a client for interacting with pull requests.
Constructors
Initializes a new instance of the PullRequestClient class.
Properties
Methods
Gets a page of pull requests where the quantity for each page matches the given qtyPerPage, where the pull request has the given state and labels, for a repository with a name that matches the given PullRequestClient.repoName.
Checks if a pull request with the given prNumber exists with the given state in a repository with a name that matches the given PullRequestClient.repoName.
Processes any possible errors from the given response.
Adds the given label to a pull request with a number that matches the given prNumber, in a repository with a name that matches the given PullRequestClient.repoName.
Returns a value indicating whether or not a closed pull request with the given prNumber exists in a repository that matches the given PullRequestClient.repoName.
Creates a new pull request in a repository with a name that matches the given PullRequestClient.repoName, using the given title, headBranch, baseBranch, and description.
Checks if a pull request with the given prNumber exists in a repository with a name that matches the given PullRequestClient.repoName.
Gets all of the closed pull requests for a repository with a name that matches the given PullRequestClient.repoName.
Gets all of the open pull requests for a repository with a name that matches the givenPullRequestClient.repoName.
Gets all of the labels for a pull request with a number that matches the given prNumber, in a repository with a name that matches the given PullRequestClient.repoName.
Gets a pull request with a number that matches the given prNumber in a repository with a name that matches the given PullRequestClient.repoName.
Gets a page of pull requests where the quantity for each page matches the given qtyPerPage, where the pull request has the given state and labels, for a repository with a name that matches the given PullRequestClient.repoName.
Returns a value indicating whether or not an open pull request with the given prNumber exists in a repository that matches the given PullRequestClient.repoName.
Requests a review from a reviewer with a GitHub login name that matches the given reviewers, for a pull request that matches the given prNumber in a repository where the name matches the given PullRequestClient.repoName.
Updates a pull request with a number that matches the given prNumber, using the given prRequestData, in a repository with a name that matches the given PullRequestClient.repoName.