MCPcopy
hub / github.com/danger/danger-js / getFileContents

Method getFileContents

source/dsl/BitBucketCloudDSL.ts:20–20  ·  view source on GitHub ↗

Gets the contents of a file from a repo (defaults to yours)

(filePath: string, repoSlug?: string, refspec?: string)

Source from the content-addressed store, hash-verified

18export interface BitBucketCloudAPIDSL {
19 /** Gets the contents of a file from a repo (defaults to yours) */
20 getFileContents(filePath: string, repoSlug?: string, refspec?: string): Promise<string>
21
22 /** Make a get call against the bitbucket server API */
23 get(path: string, headers: any, suppressErrors?: boolean): Promise<any>

Callers 6

JSONPatchForFileFunction · 0.65
diffForFileFunction · 0.65
GitHubAPIClass · 0.65

Implementers 1

BitBucketCloudAPIsource/platforms/bitbucket_cloud/BitBu

Calls

no outgoing calls

Tested by

no test coverage detected