PackwizJS/docs/provider/classes/GitHubProvider.md
2025-02-09 10:00:02 -06:00

2.5 KiB

packwizjs


packwizjs / provider / GitHubProvider

Class: GitHubProvider

Defined in: provider.ts:49

URL provider for handling GitHub-related URLs. Extends the UrlProvider with GitHub-specific properties.

Extends

Constructors

new GitHubProvider()

new GitHubProvider(hash, hashFormat, url, branch, regex, slug, tag): GitHubProvider

Defined in: provider.ts:60

Creates a new GitHubProvider instance.

Parameters

hash

string

A hash string used for identification or verification.

hashFormat

HashFormat

The format of the hash.

url

Resource

A Resource instance representing the URL.

branch

string

The branch name within the GitHub repository.

regex

string

A regular expression for matching specific patterns in the GitHub URL.

slug

string

A URL slug used for identifying the repository.

tag

string

The tag associated with the GitHub resource.

Returns

GitHubProvider

Overrides

UrlProvider.constructor

Properties

branch

branch: string

Defined in: provider.ts:64

The branch name within the GitHub repository.


hash

hash: string

Defined in: provider.ts:15

A hash string used for identifying or verifying the resource.

Inherited from

UrlProvider.hash


hashFormat

hashFormat: HashFormat

Defined in: provider.ts:16

The format of the provided hash.

Inherited from

UrlProvider.hashFormat


regex

regex: string

Defined in: provider.ts:65

A regular expression for matching specific patterns in the GitHub URL.


slug

slug: string

Defined in: provider.ts:66

A URL slug used for identifying the repository.


tag

tag: string

Defined in: provider.ts:67

The tag associated with the GitHub resource.


url

url: Resource

Defined in: provider.ts:17

A Resource instance representing the URL.

Inherited from

UrlProvider.url