Skip to main content
Module

x/kd_clients/mod.ts>LabelClient

Various HTTP clients for miscellaneous use.
Go to Latest
class LabelClient
extends GitHubClient
import { LabelClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.9/mod.ts";

Provides a client for interacting with labels.

Constructors

new
LabelClient(
ownerName: string,
repoName: string,
token?: string,
)

Initializes a new instance of the LabelClient class.

Methods

getAllLabels(): Promise<LabelModel[]>

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

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

Gets the given page of labels where the size of each page is the given qtyPerPage, for a repository with a name that matches the repoName.

labelExists(label: string): Promise<boolean>

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