Options
All
  • Public
  • Public/Protected
  • All
Menu

GitHub repo ref

Hierarchy

Implements

Index

Constructors

constructor

  • new GitHubRepoRef(owner: string, repo: string, sha?: string, rawApiBase?: string, path?: string, branch?: string, rawRemoteBase?: string): GitHubRepoRef
  • Create a GitHubRepoRef instance. It may be easier to use GitHubRepoRef.from.

    Parameters

    • owner: string

      Repo owner

    • repo: string

      Repo name

    • Optional sha: string

      Commit SHA to checkout

    • Default value rawApiBase: string = GitHubDotComBase

      Full GitHub API base URL

    • Optional path: string

      Path within the Git repository to use as project root

    • Optional branch: string

      Branch to checkout

    • Optional rawRemoteBase: string

      Full GitHub remote base URL

    Returns GitHubRepoRef

Properties

Readonly apiBase

apiBase: string

Optional branch

branch: string

Readonly kind

kind: string = "github"

Readonly owner

owner: string

Optional Readonly path

path: string

Readonly providerType

providerType: ProviderType

Readonly remoteBase

remoteBase: string

Git remote URL not including scheme or trailing '/'

Readonly repo

repo: string

Readonly scheme

scheme: "http://" | "https://"

URL scheme from applied to both API and remote bases.

Readonly sha

sha: string

Accessors

pathComponent

  • get pathComponent(): string

url

  • get url(): string

Methods

addReviewersToPullRequest

cloneUrl

createRemote

deleteRemote

getPr

raisePullRequest

setUserConfig

Static from

  • from(params: { branch?: string; owner: string; path?: string; rawApiBase?: string; repo: string; sha?: string }): GitHubRepoRef
  • Create a GitHubRepoRef instance.

    Parameters

    • params: { branch?: string; owner: string; path?: string; rawApiBase?: string; repo: string; sha?: string }

      Object with the following properties: owner: Repo owner repo: Repo name sha: Commit SHA to checkout rawApiBase: Full GitHub API base URL path: Path within the Git repository to use as project root branch: Branch to checkout rawRemoteBase: Full GitHub remote base URL

      • Optional branch?: string
      • owner: string
      • Optional path?: string
      • Optional rawApiBase?: string
      • repo: string
      • Optional sha?: string

    Returns GitHubRepoRef

Generated using TypeDoc