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