René's URL Explorer Experiment


Title: Add pagination to search endpoints by alaycock · Pull Request #583 · github-tools/github · GitHub

Open Graph Title: Add pagination to search endpoints by alaycock · Pull Request #583 · github-tools/github

X Title: Add pagination to search endpoints by alaycock · Pull Request #583 · github-tools/github

Description: Changes: Updated the jsdoc to correctly document the Github.search function. If a page option is passed into _requestAllPages, it will only fetch that single page, instead of attempting to fetch all of the pages. Removed the results parameter from _requestAllPages, since that is only meant to be used internally anyway. It's trivial to re-introduce, so let me know if this makes sense to do, since this could break some backwards compatibility if folks are using an unsupported argument. Added a test for pagination, and a new fixture for that test. Fixed a number of other fixtures that didn't seem to have the correct page number. Changed the fixtures to use rawHeader instead of header, since the tests were not paginating. This was introduced when the spec for fixture files changed from nock@7 to nock@8. Let me know if this is the right approach. I've only run tests for the search endpoints (due to lack of access to the testing repo), so I'm not sure if this is going to introduce errors elsewhere. Closes #406 This could be a potential solution for #460, although introducing a limit could be an alternate solution.

Open Graph Description: Changes: Updated the jsdoc to correctly document the Github.search function. If a page option is passed into _requestAllPages, it will only fetch that single page, instead of attempting to fetch a...

X Description: Changes: Updated the jsdoc to correctly document the Github.search function. If a page option is passed into _requestAllPages, it will only fetch that single page, instead of attempting to fetch a...

Opengraph URL: https://github.com/github-tools/github/pull/583

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:0b91485a-5e93-68a6-b0db-e9b187f4faea
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8542:1F10E2:C4A98E:1162E95:697258F8
html-safe-nonce6a8ca6d8e381a0113894286708c052db980d924d9c0cb767fb3379f6b70c062a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTQyOjFGMTBFMjpDNEE5OEU6MTE2MkU5NTo2OTcyNThGOCIsInZpc2l0b3JfaWQiOiIyMjAxMzU2NDU5NjQ5OTQ3ODk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacce11a95e5fb47fe4316048d3801c41c96b7fba1331454ef8d054d8b5d1aa49f4
hovercard-subject-tagpull_request:315130167
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github-tools/github/pull/583/files
twitter:imagehttps://avatars.githubusercontent.com/u/894797?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/894797?s=400&v=4
og:image:altChanges: Updated the jsdoc to correctly document the Github.search function. If a page option is passed into _requestAllPages, it will only fetch that single page, instead of attempting to fetch a...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef5a890431069e39e7eb98c8c81da83629b10b51afe674db42bf829dbc0abba43
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github-tools/github git https://github.com/github-tools/github.git
octolytics-dimension-user_id16116810
octolytics-dimension-user_logingithub-tools
octolytics-dimension-repository_id3640925
octolytics-dimension-repository_nwogithub-tools/github
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3640925
octolytics-dimension-repository_network_root_nwogithub-tools/github
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26c781f26acd529068611189d77d95c57099561a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub-tools%2Fgithub%2Fpull%2F583%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub-tools%2Fgithub%2Fpull%2F583%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github-tools%2Fgithub
Reloadhttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
Reloadhttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
Reloadhttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
github-tools https://patch-diff.githubusercontent.com/github-tools
githubhttps://patch-diff.githubusercontent.com/github-tools/github
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fgithub-tools%2Fgithub
Fork 794 https://patch-diff.githubusercontent.com/login?return_to=%2Fgithub-tools%2Fgithub
Star 3.7k https://patch-diff.githubusercontent.com/login?return_to=%2Fgithub-tools%2Fgithub
Code https://patch-diff.githubusercontent.com/github-tools/github
Issues 148 https://patch-diff.githubusercontent.com/github-tools/github/issues
Pull requests 32 https://patch-diff.githubusercontent.com/github-tools/github/pulls
Actions https://patch-diff.githubusercontent.com/github-tools/github/actions
Projects 0 https://patch-diff.githubusercontent.com/github-tools/github/projects
Wiki https://patch-diff.githubusercontent.com/github-tools/github/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/github-tools/github/security
Please reload this pagehttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
Insights https://patch-diff.githubusercontent.com/github-tools/github/pulse
Code https://patch-diff.githubusercontent.com/github-tools/github
Issues https://patch-diff.githubusercontent.com/github-tools/github/issues
Pull requests https://patch-diff.githubusercontent.com/github-tools/github/pulls
Actions https://patch-diff.githubusercontent.com/github-tools/github/actions
Projects https://patch-diff.githubusercontent.com/github-tools/github/projects
Wiki https://patch-diff.githubusercontent.com/github-tools/github/wiki
Security https://patch-diff.githubusercontent.com/github-tools/github/security
Insights https://patch-diff.githubusercontent.com/github-tools/github/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fgithub-tools%2Fgithub%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fgithub-tools%2Fgithub%2Fissues%2Fnew%2Fchoose
alaycockhttps://patch-diff.githubusercontent.com/alaycock
github-tools:masterhttps://patch-diff.githubusercontent.com/github-tools/github/tree/master
alaycock:masterhttps://patch-diff.githubusercontent.com/alaycock/github/tree/master
Conversation 2 https://patch-diff.githubusercontent.com/github-tools/github/pull/583
Commits 1 https://patch-diff.githubusercontent.com/github-tools/github/pull/583/commits
Checks 0 https://patch-diff.githubusercontent.com/github-tools/github/pull/583/checks
Files changed https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
Please reload this pagehttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
Add pagination to search endpoints https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#top
Show all changes 1 commit https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
a033c35 Add pagination to search endpoints Sep 6, 2019 https://patch-diff.githubusercontent.com/github-tools/github/pull/583/commits/a033c35cf8b36602f850bfad9dc0ab974ce8c2f0
Clear filters https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
Please reload this pagehttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
Please reload this pagehttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
GitHub.js https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-919a43bc6a3641ed25dbd17e4b9a32636c792454f1dff50a343525079786942d
Requestable.js https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-6e9115b65cfe0d9f1d087556e6369972c3de3d824eb172a047a3a5dc01f8c1e1
Search.js https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-a8b29cc4a323e6db7dcfc34159cef7c4d642531f3ff07ae2198b39cd76c7ca46
search.json https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-afd27e847427b3796e9db5b9cbabfc90afeb02f1f05a4e262bcb4e1b6b7ea885
search.spec.js https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-9e2d990981a05f49e91b907bd4f06dedfee0251c5ffd750b0f1d7f65b6afe86d
lib/GitHub.jshttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-919a43bc6a3641ed25dbd17e4b9a32636c792454f1dff50a343525079786942d
View file https://patch-diff.githubusercontent.com/github-tools/github/blob/a033c35cf8b36602f850bfad9dc0ab974ce8c2f0/lib/GitHub.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/github-tools/github/pull/583/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-919a43bc6a3641ed25dbd17e4b9a32636c792454f1dff50a343525079786942d
alaycockhttps://patch-diff.githubusercontent.com/alaycock
Sep 6, 2019https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#r321928069
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-919a43bc6a3641ed25dbd17e4b9a32636c792454f1dff50a343525079786942d
lib/Requestable.jshttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-6e9115b65cfe0d9f1d087556e6369972c3de3d824eb172a047a3a5dc01f8c1e1
View file https://patch-diff.githubusercontent.com/github-tools/github/blob/a033c35cf8b36602f850bfad9dc0ab974ce8c2f0/lib/Requestable.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/github-tools/github/pull/583/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-6e9115b65cfe0d9f1d087556e6369972c3de3d824eb172a047a3a5dc01f8c1e1
https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-6e9115b65cfe0d9f1d087556e6369972c3de3d824eb172a047a3a5dc01f8c1e1
alaycockhttps://patch-diff.githubusercontent.com/alaycock
Sep 6, 2019https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#r321929754
Please reload this pagehttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-6e9115b65cfe0d9f1d087556e6369972c3de3d824eb172a047a3a5dc01f8c1e1
lib/Search.jshttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-a8b29cc4a323e6db7dcfc34159cef7c4d642531f3ff07ae2198b39cd76c7ca46
View file https://patch-diff.githubusercontent.com/github-tools/github/blob/a033c35cf8b36602f850bfad9dc0ab974ce8c2f0/lib/Search.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/github-tools/github/pull/583/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-a8b29cc4a323e6db7dcfc34159cef7c4d642531f3ff07ae2198b39cd76c7ca46
https://patch-diff.githubusercontent.com/github-tools/github/pull/583/files#diff-a8b29cc4a323e6db7dcfc34159cef7c4d642531f3ff07ae2198b39cd76c7ca46
Please reload this pagehttps://patch-diff.githubusercontent.com/github-tools/github/pull/583/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.