Options
All
  • Public
  • Public/Protected
  • All
Menu

Repository reference implementation for Gitlab

Hierarchy

Implements

Index

Constructors

Private constructor

  • new GitlabRepoRef(owner: string, repo: string, sha: string, apiBase?: string, gitlabRemoteUrl?: string, path?: string, branch?: string): GitlabRepoRef

Properties

Readonly apiBase

apiBase: string

API URL without the scheme or trailing '/'.

Optional branch

branch: string

Readonly kind

kind: string = "gitlab"

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

addApproversToMergeRequest

cloneUrl

createRemote

deleteRemote

getGitlabVersion

getGroupId

Private getNamespaceForOwner

getUserId

raisePullRequest

Private resolveApprovers

setUserConfig

Static from

  • from(params: { branch?: string; gitlabRemoteUrl?: string; owner: string; path?: string; rawApiBase?: string; repo: string; sha?: string }): GitlabRepoRef
  • Parameters

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

    Returns GitlabRepoRef

Generated using TypeDoc