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

Method constructor

source/platforms/github/GitHubAPI.ts:77–82  ·  view source on GitHub ↗
(public readonly repoMetadata: RepoMetaData, public readonly token?: APIToken)

Source from the content-addressed store, hash-verified

75 private pr: GitHubPRDSL | undefined
76
77 constructor(public readonly repoMetadata: RepoMetaData, public readonly token?: APIToken) {
78 // This allows Peril to DI in a new Fetch function
79 // which can handle unique API edge-cases around integrations
80 this.fetch = fetch
81 this.additionalHeaders = {}
82 }
83
84 /**
85 * Bit weird, yes, but we want something that can be exposed to an end-user.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected