MCPcopy
hub / github.com/iterative/cml / getDriver

Method getDriver

src/cml.js:157–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155 }
156
157 getDriver() {
158 const { driver, repo, token } = this;
159 if (!driver) throw new Error('driver not set');
160
161 if (driver === GITHUB) return new Github({ repo, token });
162 if (driver === GITLAB) return new Gitlab({ repo, token });
163 if (driver === BB) return new BitbucketCloud({ repo, token });
164
165 throw new Error(`driver ${driver} unknown!`);
166 }
167
168 async commentCreate(opts = {}) {
169 const {

Callers 15

triggerShaMethod · 0.95
branchMethod · 0.95
commentCreateMethod · 0.95
checkCreateMethod · 0.95
publishMethod · 0.95
runnerTokenMethod · 0.95
parseRunnerLogMethod · 0.95
startRunnerMethod · 0.95
registerRunnerMethod · 0.95
unregisterRunnerMethod · 0.95
runnersMethod · 0.95
runnerByIdMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected