()
| 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(); |
nothing calls this directly
no test coverage detected