MCPcopy Index your code
hub / github.com/github-tools/github / getNextPage

Function getNextPage

test/helpers/helperFunctions.js:1–10  ·  view source on GitHub ↗
(linksHeader = '')

Source from the content-addressed store, hash-verified

1export 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
12export function deleteRepo(repo, github) {
13 return github

Callers

nothing calls this directly

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…