Skip to main content
Module

x/kd_clients/mod.ts>LabelClient#labelExists

Various types of HTTP clients for misc uses. This is used in the organization's infrastructure.
Go to Latest
method LabelClient.prototype.labelExists
import { LabelClient } from "https://deno.land/x/kd_clients@v0.0.5/mod.ts";

Returns a value indicating whether or not given label exists in a repo that matches the repoName.

Parameters

repoName: string

The name of the repo where the labels exist.

label: string

The name of the label to check for.

Returns

Promise<boolean>

True if the label exists, false otherwise.