MCPcopy Create free account
hub / github.com/decaporg/decap-cms / constructor

Method constructor

packages/decap-cms-backend-git-gateway/src/GitHubAPI.ts:20–31  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

18 isLargeMedia: (filename: string) => Promise<boolean>;
19
20 constructor(config: Config) {
21 super({
22 getUser: () => Promise.reject('Never used'),
23 ...config,
24 });
25 this.apiRoot = config.apiRoot;
26 this.tokenPromise = config.tokenPromise;
27 this.commitAuthor = config.commitAuthor;
28 this.isLargeMedia = config.isLargeMedia;
29 this.repoURL = '';
30 this.originRepoURL = '';
31 }
32
33 hasWriteAccess() {
34 return this.getDefaultBranch()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected