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

Method getNamespaces

src/scm/github.js:323–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321 }
322
323 getNamespaces() {
324 return getAllItems(
325 Promise.resolve({
326 accessToken: this.accessToken,
327 items: [],
328 url: `${this.baseUrl}/user/orgs`
329 }),
330 this.followPaginate,
331 'github'
332 )
333 .then(orgs => {
334 this.namespaces = [this.user].concat(orgs.map(org => org.login));
335 return this.namespaces;
336 })
337 .catch((err) => {
338 showLog(`Failed to get user info: ${err}`, LEVEL_ERROR);
339 });
340 }
341
342 createRepo() {
343 const owner = $('#selected-repo-owner').text();

Callers

nothing calls this directly

Calls 2

getAllItemsFunction · 0.85
showLogFunction · 0.85

Tested by

no test coverage detected