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

Method constructor

packages/decap-cms-backend-bitbucket/src/API.ts:197–208  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

195 cmsLabelPrefix: string;
196
197 constructor(config: Config) {
198 this.apiRoot = config.apiRoot || DEFAULT_API_ROOT;
199 this.branch = config.branch || 'master';
200 this.repo = config.repo || '';
201 this.requestFunction = config.requestFunction || unsentRequest.performRequest;
202 // Allow overriding this.hasWriteAccess
203 this.hasWriteAccess = config.hasWriteAccess || this.hasWriteAccess;
204 this.repoURL = this.repo ? `/repositories/${this.repo}` : '';
205 this.mergeStrategy = config.squashMerges ? 'squash' : 'merge_commit';
206 this.initialWorkflowStatus = config.initialWorkflowStatus;
207 this.cmsLabelPrefix = config.cmsLabelPrefix;
208 }
209
210 buildRequest = (req: ApiRequest) => {
211 const withRoot = unsentRequest.withRoot(this.apiRoot)(req);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected