MCPcopy
hub / github.com/leonhartX/gas-github / createSCM

Function createSCM

src/util.js:43–54  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

41}
42
43function createSCM(item) {
44 switch (item.scm) {
45 case 'github':
46 return new Github(item.baseUrl, item.user, item.token);
47 case 'bitbucket':
48 return new Bitbucket(item.baseUrl, item.user, item.token);
49 case 'gitlab':
50 return new Gitlab(item.baseUrl, item.user, item.token);
51 default:
52 return new Github(item.baseUrl, item.user, item.token);
53 }
54}
55
56function getGitHubJSON(url, accessToken, data) {
57 return $.ajax({

Callers 1

initContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected