Skip to main content
Module

x/kd_clients/mod.ts>ReleaseClient

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

Provides a client for interacting with GitHub releases.

Constructors

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

Initializes a new instance of the ReleaseClient class.

Methods

getReleaseByName(releaseName: string): Promise<ReleaseModel>

Gets a release for a repository with a name that matches the given ReleaseClient.this.repoName, where the name that the name of the release matches the given releaseName.

getReleaseByTag(tagName: string): Promise<ReleaseModel>

Gets a release for a repository with a name that matches the given ReleaseClient.this.repoName, where the tag name matches the given tagName.

getReleases(page: number, qtyPerPage: number): Promise<[ReleaseModel[], Response]>

Gets the given page where each page quantity is the given qtyPerPage, for a repository with a name that matches the given ReleaseClient.this.repoName,

releaseExists(tagName: string): Promise<boolean>

Returns a value indicating whether or not a release is tied to a tag that matches the given tagName, for a repository with a name that matches the given ReleaseClient.this.repoName.