Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kd_clients/GitHubClients/LabelClient.ts>LabelClient

Various HTTP clients for miscellaneous use.
Latest
class LabelClient
extends GitHubClient
import { LabelClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.14/GitHubClients/LabelClient.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

exists(label: string): Promise<boolean>

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

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.