Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kd_clients/mod.ts>PullRequestClient#openOrClosedPullRequestExists

Various HTTP clients for miscellaneous use.
Go to Latest
method PullRequestClient.prototype.openOrClosedPullRequestExists
import { PullRequestClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.12/mod.ts";

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.

Parameters

prNumber: number

The number of the issue.

state: IssueOrPRState

Returns

Promise<boolean>

True if the pull request exists, otherwise false.