(config: Config)
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected