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

Method getRepos

src/scm/gitlab.js:176–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

174 }
175
176 getRepos() { // Named Projects in gitlab
177 return getAllItems(Promise.resolve({
178 tokenParam: this.tokenParam,
179 items: [],
180 url: `${this.baseUrl}/projects?per_page=25&membership=true`
181 }),
182 this.followPaginate,
183 'gitlab'
184 )
185 .then(response => {
186 this.namesToIds.repos = response.reduce((obj, item) => (obj[item.path_with_namespace] = item.id, obj), {});
187 return Object.keys(this.namesToIds.repos);
188 });
189 }
190
191 createRepo() {
192 const owner = $('#selected-repo-owner').text();

Callers 2

initContextFunction · 0.45
handleRepoCreatedFunction · 0.45

Calls 1

getAllItemsFunction · 0.85

Tested by

no test coverage detected