Skip to main content
Module

x/kd_clients/mod.ts>LabelClient

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

Provides a client for interacting with labels.

Constructors

new
LabelClient(token?: string)

Initializes a new instance of the LabelClient class.

Methods

getAllLabels(repoName: string): Promise<LabelModel[]>

Gets a list of all the labels for a repository with a name that matches the repoName.

getLabels(
repoName: string,
page: number,
qtyPerPage: number,
): Promise<[LabelModel[], Response]>

Gets a page of labels with a set page size for a repository that matches the repoName.

labelExists(repoName: string, label: string): Promise<boolean>

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