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

Method getRepos

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

Source from the content-addressed store, hash-verified

298 }
299
300 getRepos() {
301 return getAllItems(
302 Promise.resolve({
303 accessToken: this.accessToken,
304 items: [],
305 url: `${this.baseUrl}/user/repos`
306 }),
307 this.followPaginate,
308 'github'
309 )
310 .then(response => {
311 const repos = response.map(repo => repo.full_name);
312 const repo = getRepo();
313 if (repo && !repo.gist && !($.inArray(repo.fullName, repos) >= 0)) {
314 delete context.bindRepo[getId()];
315 chrome.storage.sync.set({
316 bindRepo: context.bindRepo
317 });
318 }
319 return repos;
320 });
321 }
322
323 getNamespaces() {
324 return getAllItems(

Callers

nothing calls this directly

Calls 3

getAllItemsFunction · 0.85
getRepoFunction · 0.85
getIdFunction · 0.85

Tested by

no test coverage detected