René's URL Explorer Experiment


Title: Testing webhooks and node core labels by phillipj · Pull Request #60 · nodejs/github-bot · GitHub

Open Graph Title: Testing webhooks and node core labels by phillipj · Pull Request #60 · nodejs/github-bot

X Title: Testing webhooks and node core labels by phillipj · Pull Request #60 · nodejs/github-bot

Description: This is a first shot at testing the code related to webhooks, and node core labelling specifically. The gist of this is to POST a recorded payload against the bot's /hooks/github endpoint, mock responses from github.com, and verify that the bot tried to GET/POST a set of expected github.com API URLs. While working on this I noticed a couple of unexpected URLs being requested. Found a bug in the old github npm dependency we used, so decided to update that dependency as well. Also moved all tests into tests/{integration,unit} directories. Refs #55

Open Graph Description: This is a first shot at testing the code related to webhooks, and node core labelling specifically. The gist of this is to POST a recorded payload against the bot's /hooks/github endpoint, mock...

X Description: This is a first shot at testing the code related to webhooks, and node core labelling specifically. The gist of this is to POST a recorded payload against the bot's /hooks/github endpoint, ...

Opengraph URL: https://github.com/nodejs/github-bot/pull/60

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5d406282-78b9-84f4-9056-e10307167620
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC860:1E68A5:1B6F7D6:255F8FB:6A536F77
html-safe-noncefd5b544caa448e491ddf8174a9a7c7adedc807c917bf25a536058c92834fcd9a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODYwOjFFNjhBNToxQjZGN0Q2OjI1NUY4RkI6NkE1MzZGNzciLCJ2aXNpdG9yX2lkIjoiNjMzODc5NDk3MjQwNjU3NDk2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac31cecf80af202fecf0b1f1d653a28b653bf8d58484cd8b893b63332ab4dbfa5e
hovercard-subject-tagpull_request:80308431
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/nodejs/github-bot/pull/60/files
twitter:imagehttps://avatars.githubusercontent.com/u/1231635?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1231635?s=400&v=4
og:image:altThis is a first shot at testing the code related to webhooks, and node core labelling specifically. The gist of this is to POST a recorded payload against the bot's /hooks/github endpoint, mock...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/nodejs/github-bot git https://github.com/nodejs/github-bot.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id55435270
octolytics-dimension-repository_nwonodejs/github-bot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id55435270
octolytics-dimension-repository_network_root_nwonodejs/github-bot
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/github-bot/pull/60/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fgithub-bot%2Fpull%2F60%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fgithub-bot%2Fpull%2F60%2Ffiles
Sign up https://github.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=nodejs%2Fgithub-bot
Reloadhttps://github.com/nodejs/github-bot/pull/60/files
Reloadhttps://github.com/nodejs/github-bot/pull/60/files
Reloadhttps://github.com/nodejs/github-bot/pull/60/files
Please reload this pagehttps://github.com/nodejs/github-bot/pull/60/files
nodejs https://github.com/nodejs
github-bothttps://github.com/nodejs/github-bot
Please reload this pagehttps://github.com/nodejs/github-bot/pull/60/files
Notifications https://github.com/login?return_to=%2Fnodejs%2Fgithub-bot
Fork 138 https://github.com/login?return_to=%2Fnodejs%2Fgithub-bot
Star 300 https://github.com/login?return_to=%2Fnodejs%2Fgithub-bot
Code https://github.com/nodejs/github-bot
Issues 18 https://github.com/nodejs/github-bot/issues
Pull requests 2 https://github.com/nodejs/github-bot/pulls
Actions https://github.com/nodejs/github-bot/actions
Projects https://github.com/nodejs/github-bot/projects
Security and quality 0 https://github.com/nodejs/github-bot/security
Insights https://github.com/nodejs/github-bot/pulse
Code https://github.com/nodejs/github-bot
Issues https://github.com/nodejs/github-bot/issues
Pull requests https://github.com/nodejs/github-bot/pulls
Actions https://github.com/nodejs/github-bot/actions
Projects https://github.com/nodejs/github-bot/projects
Security and quality https://github.com/nodejs/github-bot/security
Insights https://github.com/nodejs/github-bot/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fgithub-bot%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fgithub-bot%2Fissues%2Fnew%2Fchoose
phillipjhttps://github.com/phillipj
nodejs:masterhttps://github.com/nodejs/github-bot/tree/master
phillipj:webhooks-testinghttps://github.com/phillipj/github-bot/tree/webhooks-testing
Conversation 13 https://github.com/nodejs/github-bot/pull/60
Commits 6 https://github.com/nodejs/github-bot/pull/60/commits
Checks 0 https://github.com/nodejs/github-bot/pull/60/checks
Files changed https://github.com/nodejs/github-bot/pull/60/files
Please reload this pagehttps://github.com/nodejs/github-bot/pull/60/files
Testing webhooks and node core labels https://github.com/nodejs/github-bot/pull/60/files#top
Show all changes 6 commits https://github.com/nodejs/github-bot/pull/60/files
812b296 tests: testing webhooks and node core labels phillipj Aug 5, 2016 https://github.com/nodejs/github-bot/pull/60/commits/812b29639cc91bd1c771830bd537ab83e026b383
71dacdd chore: updated github npm dependency v0.x -> v2.x. phillipj Aug 26, 2016 https://github.com/nodejs/github-bot/pull/60/commits/71dacdd1a529798c349d7d709553a01bc3f70d33
4b6f2b3 labels: simplified labelling of PRs. phillipj Aug 26, 2016 https://github.com/nodejs/github-bot/pull/60/commits/4b6f2b3de8c7f290e01917a8e1e283af827a6d89
73c6a99 tests: moved into {integration,unit} dirs phillipj Aug 26, 2016 https://github.com/nodejs/github-bot/pull/60/commits/73c6a992104763b09d4ebf43ba214526116a20bd
7042745 chore: extracted GitHub secret logic. phillipj Aug 26, 2016 https://github.com/nodejs/github-bot/pull/60/commits/704274539ae759b5286241ed7238764d1d5aee59
e2bf71b test: break tests when unexpected reqs are made phillipj Aug 26, 2016 https://github.com/nodejs/github-bot/pull/60/commits/e2bf71b58d0d89cf7b57bba1d87f9ab09ecee427
Clear filters https://github.com/nodejs/github-bot/pull/60/files
Please reload this pagehttps://github.com/nodejs/github-bot/pull/60/files
Please reload this pagehttps://github.com/nodejs/github-bot/pull/60/files
github-events.js https://github.com/nodejs/github-bot/pull/60/files#diff-6551d4674fc5e162e28fd0e709ac0ccfb7954d22893a85f87f3f7cc375896988
github-secret.js https://github.com/nodejs/github-bot/pull/60/files#diff-f5158cf6b67ff4368b788005d0f0a9a7047b04903595736fb3da0543dc56d389
node-repo.js https://github.com/nodejs/github-bot/pull/60/files#diff-34cc967d4efd1db9679ce2af367b4ddd311b20381e80e4c5443d27a446fe5646
pollTravis.js https://github.com/nodejs/github-bot/pull/60/files#diff-76db5063b7cf8acb5a1a09fcc37936df3053c5eec3e20166cf16bb20bc44e38a
push-jenkins-update.js https://github.com/nodejs/github-bot/pull/60/files#diff-89a8938ab0f675dd233a0b10b972330fabe5201dd7954328e64fa9b73851efb4
package.json https://github.com/nodejs/github-bot/pull/60/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
pull-request-files.json https://github.com/nodejs/github-bot/pull/60/files#diff-dcb6fd26d73089da4468836ede64d31a5c5a780f8cdc31b8756dc1cdba458ca5
pull-request-labels.json https://github.com/nodejs/github-bot/pull/60/files#diff-e5f532175bd23dc35c5c4605fa696c0853f49689224ca709ed3fa7930b19f975
pull-request-opened.json https://github.com/nodejs/github-bot/pull/60/files#diff-0bb7024d10ff1d5d881eae13ef1ae57c8867c2e349c49e498f3585f1fd8e8eff
node-labels-webhook.test.js https://github.com/nodejs/github-bot/pull/60/files#diff-ae0ef3b15365ff6ca46c4352e9314822d6e38b6312bc506d356f5109d1949dd5
ping.test.js https://github.com/nodejs/github-bot/pull/60/files#diff-460f7b21350e4fd5b02d3f4b235e658a1d9c1fc7b79a7b2c4996e786b07666a1
push-jenkins-update.test.js https://github.com/nodejs/github-bot/pull/60/files#diff-6e27ee546c8dba3234dae1f82ee42bfb61bd363f47eb2de071f387d3644311e5
node-build-label.test.js https://github.com/nodejs/github-bot/pull/60/files#diff-99dea54de4459c3cb2f122d64022a56eb301c20e9da6e7d34e1d3a348b65c161
node-js-subsystem-labels.test.js https://github.com/nodejs/github-bot/pull/60/files#diff-c16c0b1eaf7ee59f47e1282254f99621aeeba4ffcdbee8d14752e091fe9006c1
node-labels.test.js https://github.com/nodejs/github-bot/pull/60/files#diff-4922027da7a18216e425973789ab64d0c8b346dadccefee26e0aab1df7a8ae24
lib/github-events.jshttps://github.com/nodejs/github-bot/pull/60/files#diff-6551d4674fc5e162e28fd0e709ac0ccfb7954d22893a85f87f3f7cc375896988
View file https://github.com/phillipj/github-bot/blob/e2bf71b58d0d89cf7b57bba1d87f9ab09ecee427/lib/github-events.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/github-bot/pull/60/{{ revealButtonHref }}
https://github.com/nodejs/github-bot/pull/60/files#diff-6551d4674fc5e162e28fd0e709ac0ccfb7954d22893a85f87f3f7cc375896988
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fgithub-bot%2Fpull%2F60%2Ffiles
Please reload this pagehttps://github.com/nodejs/github-bot/pull/60/files
https://github.com/nodejs/github-bot/pull/60/files#diff-6551d4674fc5e162e28fd0e709ac0ccfb7954d22893a85f87f3f7cc375896988
lib/github-secret.jshttps://github.com/nodejs/github-bot/pull/60/files#diff-f5158cf6b67ff4368b788005d0f0a9a7047b04903595736fb3da0543dc56d389
View file https://github.com/phillipj/github-bot/blob/e2bf71b58d0d89cf7b57bba1d87f9ab09ecee427/lib/github-secret.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/github-bot/pull/60/{{ revealButtonHref }}
lib/node-repo.jshttps://github.com/nodejs/github-bot/pull/60/files#diff-34cc967d4efd1db9679ce2af367b4ddd311b20381e80e4c5443d27a446fe5646
View file https://github.com/phillipj/github-bot/blob/e2bf71b58d0d89cf7b57bba1d87f9ab09ecee427/lib/node-repo.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/github-bot/pull/60/{{ revealButtonHref }}
https://github.com/nodejs/github-bot/pull/60/files#diff-34cc967d4efd1db9679ce2af367b4ddd311b20381e80e4c5443d27a446fe5646
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fgithub-bot%2Fpull%2F60%2Ffiles
Please reload this pagehttps://github.com/nodejs/github-bot/pull/60/files
https://github.com/nodejs/github-bot/pull/60/files#diff-34cc967d4efd1db9679ce2af367b4ddd311b20381e80e4c5443d27a446fe5646
lib/pollTravis.jshttps://github.com/nodejs/github-bot/pull/60/files#diff-76db5063b7cf8acb5a1a09fcc37936df3053c5eec3e20166cf16bb20bc44e38a
View file https://github.com/phillipj/github-bot/blob/e2bf71b58d0d89cf7b57bba1d87f9ab09ecee427/lib/pollTravis.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/github-bot/pull/60/{{ revealButtonHref }}
https://github.com/nodejs/github-bot/pull/60/files#diff-76db5063b7cf8acb5a1a09fcc37936df3053c5eec3e20166cf16bb20bc44e38a
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fgithub-bot%2Fpull%2F60%2Ffiles
Please reload this pagehttps://github.com/nodejs/github-bot/pull/60/files
https://github.com/nodejs/github-bot/pull/60/files#diff-76db5063b7cf8acb5a1a09fcc37936df3053c5eec3e20166cf16bb20bc44e38a
lib/push-jenkins-update.jshttps://github.com/nodejs/github-bot/pull/60/files#diff-89a8938ab0f675dd233a0b10b972330fabe5201dd7954328e64fa9b73851efb4
View file https://github.com/phillipj/github-bot/blob/e2bf71b58d0d89cf7b57bba1d87f9ab09ecee427/lib/push-jenkins-update.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/github-bot/pull/60/{{ revealButtonHref }}
https://github.com/nodejs/github-bot/pull/60/files#diff-89a8938ab0f675dd233a0b10b972330fabe5201dd7954328e64fa9b73851efb4
https://github.com/nodejs/github-bot/pull/60/files#diff-89a8938ab0f675dd233a0b10b972330fabe5201dd7954328e64fa9b73851efb4
package.jsonhttps://github.com/nodejs/github-bot/pull/60/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
View file https://github.com/phillipj/github-bot/blob/e2bf71b58d0d89cf7b57bba1d87f9ab09ecee427/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/github-bot/pull/60/{{ revealButtonHref }}
https://github.com/nodejs/github-bot/pull/60/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
https://github.com/nodejs/github-bot/pull/60/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
https://github.com/nodejs/github-bot/pull/60/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
test/_fixtures/pull-request-files.jsonhttps://github.com/nodejs/github-bot/pull/60/files#diff-dcb6fd26d73089da4468836ede64d31a5c5a780f8cdc31b8756dc1cdba458ca5
View file https://github.com/phillipj/github-bot/blob/e2bf71b58d0d89cf7b57bba1d87f9ab09ecee427/test/_fixtures/pull-request-files.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/github-bot/pull/60/{{ revealButtonHref }}
test/_fixtures/pull-request-labels.jsonhttps://github.com/nodejs/github-bot/pull/60/files#diff-e5f532175bd23dc35c5c4605fa696c0853f49689224ca709ed3fa7930b19f975
View file https://github.com/phillipj/github-bot/blob/e2bf71b58d0d89cf7b57bba1d87f9ab09ecee427/test/_fixtures/pull-request-labels.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/github-bot/pull/60/{{ revealButtonHref }}
Please reload this pagehttps://github.com/nodejs/github-bot/pull/60/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.