MCPcopy Create free account
hub / github.com/danger/danger-js / constructor

Method constructor

source/platforms/gitlab/GitLabAPI.ts:81–86  ·  view source on GitHub ↗
(public readonly repoMetadata: RepoMetaData, public readonly repoCredentials: GitLabAPICredentials)

Source from the content-addressed store, hash-verified

79 private readonly prId: number
80
81 constructor(public readonly repoMetadata: RepoMetaData, public readonly repoCredentials: GitLabAPICredentials) {
82 this.api = new Gitlab({ ...repoCredentials })
83 this.hostURL = repoCredentials.host
84 this.repoSlug = repoMetadata.repoSlug
85 this.prId = Number(repoMetadata.pullRequestID)
86 }
87
88 get projectURL(): string {
89 return `${this.hostURL}/${this.repoSlug}`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected