()
| 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(); |
no test coverage detected