(config: AzureApiConfig, token: string)
| 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( |
nothing calls this directly
no outgoing calls
no test coverage detected