(linksHeader = '')
| 1 | export function getNextPage(linksHeader = '') { |
| 2 | const links = linksHeader.split(/\s*,\s*/); // splits and strips the urls |
| 3 | return links.reduce(function(nextUrl, link) { |
| 4 | if (link.search(/rel="next"/) !== -1) { |
| 5 | return (link.match(/<(.*)>/) || [])[1]; |
| 6 | } |
| 7 | |
| 8 | return nextUrl; |
| 9 | }, undefined); |
| 10 | } |
| 11 | |
| 12 | export function deleteRepo(repo, github) { |
| 13 | return github |
nothing calls this directly
no test coverage detected
searching dependent graphs…