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

Method constructor

packages/decap-cms-backend-azure/src/API.ts:237–247  ·  view source on GitHub ↗
(config: AzureApiConfig, token: string)

Source from the content-addressed store, hash-verified

235 cmsLabelPrefix: string;
236
237 constructor(config: AzureApiConfig, token: string) {
238 const { repo } = config;
239 const apiRoot = trim(config.apiRoot, '/');
240 this.endpointUrl = `${apiRoot}/${repo.org}/${repo.project}/_apis/git/repositories/${repo.repoName}`;
241 this.token = token;
242 this.branch = config.branch;
243 this.mergeStrategy = config.squashMerges ? 'squash' : 'noFastForward';
244 this.initialWorkflowStatus = config.initialWorkflowStatus;
245 this.apiVersion = config.apiVersion;
246 this.cmsLabelPrefix = config.cmsLabelPrefix;
247 }
248
249 withHeaders = (req: ApiRequest) => {
250 const withHeaders = unsentRequest.withHeaders(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected