René's URL Explorer Experiment


Title: Improve type inference of `Result` by henrymercer · Pull Request #3506 · github/codeql-action · GitHub

Open Graph Title: Improve type inference of `Result` by henrymercer · Pull Request #3506 · github/codeql-action

X Title: Improve type inference of `Result` by henrymercer · Pull Request #3506 · github/codeql-action

Description: Actions for running CodeQL analysis. Contribute to github/codeql-action development by creating an account on GitHub.

Open Graph Description: Thanks @mbg for pointing out this drawback. By defining Result<T, E> as a sum type Success<T> | Failure<E>, we can now infer that a Result is a failure if it is not a success. Fo...

X Description: Thanks @mbg for pointing out this drawback. By defining Result&lt;T, E&gt; as a sum type Success&lt;T&gt; | Failure&lt;E&gt;, we can now infer that a Result is a failure if ...

Opengraph URL: https://github.com/github/codeql-action/pull/3506

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:b58f0205-81be-d559-68f5-82be9e6d8354
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC38E:24C6EB:C9F115:119A9BD:6A4CA82F
html-safe-noncef361b723453adbe71d74376e6a2ddcdec5847079fbd17845411c8bcdd55d27d8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzhFOjI0QzZFQjpDOUYxMTU6MTE5QTlCRDo2QTRDQTgyRiIsInZpc2l0b3JfaWQiOiIzNzg0MjEzMjE4NjIxOTU4MTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac912861657a258a116d177d2432b31c03176c1aafab3b60f1586ce71a29f737d3
hovercard-subject-tagpull_request:3321889559
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/github/codeql-action/3506/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d6e0adf3061fcccd944251e79fbba458f80cc19ca8586b035ff96bbcb52338b5/github/codeql-action/pull/3506
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d6e0adf3061fcccd944251e79fbba458f80cc19ca8586b035ff96bbcb52338b5/github/codeql-action/pull/3506
og:image:altThanks @mbg for pointing out this drawback. By defining Result<T, E> as a sum type Success<T> | Failure<E>, we can now infer that a Result is a failure if it is not a success. Fo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehenrymercer
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-cache
go-importgithub.com/github/codeql-action git https://github.com/github/codeql-action.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id259445878
octolytics-dimension-repository_nwogithub/codeql-action
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id259445878
octolytics-dimension-repository_network_root_nwogithub/codeql-action
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseae90d426644ca15e89bacceb72e51f4e9dbf85f7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/pull/3506#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F3506
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2Fgithub%2Fcodeql-action%2Fpull%2F3506
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=github%2Fcodeql-action
Reloadhttps://github.com/github/codeql-action/pull/3506
Reloadhttps://github.com/github/codeql-action/pull/3506
Reloadhttps://github.com/github/codeql-action/pull/3506
Please reload this pagehttps://github.com/github/codeql-action/pull/3506
github https://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Fork 470 https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Star 1.6k https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Code https://github.com/github/codeql-action
Issues 156 https://github.com/github/codeql-action/issues
Pull requests 27 https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality 2 https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
Code https://github.com/github/codeql-action
Issues https://github.com/github/codeql-action/issues
Pull requests https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
henrymercerhttps://github.com/henrymercer
mainhttps://github.com/github/codeql-action/tree/main
henrymercer/result-better-inferencehttps://github.com/github/codeql-action/tree/henrymercer/result-better-inference
Conversationhttps://github.com/github/codeql-action/pull/3506
Commits3 (3)https://github.com/github/codeql-action/pull/3506/commits
Checkshttps://github.com/github/codeql-action/pull/3506/checks
Files changedhttps://github.com/github/codeql-action/pull/3506/files
Improve type inference of Resulthttps://github.com/github/codeql-action/pull/3506#top
henrymercerhttps://github.com/henrymercer
mainhttps://github.com/github/codeql-action/tree/main
henrymercer/result-better-inferencehttps://github.com/github/codeql-action/tree/henrymercer/result-better-inference
https://github.com/henrymercer
henrymercerhttps://github.com/henrymercer
Feb 24, 2026https://github.com/github/codeql-action/pull/3506#issue-3985003192
@mbghttps://github.com/mbg
Please reload this pagehttps://github.com/github/codeql-action/pull/3506
https://github.com/henrymercer
Improve type inference of Resulthttps://github.com/github/codeql-action/pull/3506/commits/160d27baf00e1b1f48bd189d637609258cad98c8
160d27bhttps://github.com/github/codeql-action/pull/3506/commits/160d27baf00e1b1f48bd189d637609258cad98c8
https://github.com/henrymercer
henrymercerhttps://github.com/henrymercer
code ownerhttps://github.com/github/codeql-action/blob/28737ec792fa19d1d04dc0dc299f1de0559a9635/CODEOWNERS#L1
February 24, 2026 17:43https://github.com/github/codeql-action/pull/3506#event-23043046037
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
February 24, 2026 17:43https://github.com/github/codeql-action/pull/3506#event-23043046100
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
size/S https://github.com/github/codeql-action/issues?q=state%3Aopen%20label%3Asize%2FS
Feb 24, 2026https://github.com/github/codeql-action/pull/3506#event-23043055052
started reviewinghttps://github.com/github/codeql-action/sessions/7bd7fc41-0387-4a52-aeb6-19aded718c9c
henrymercerhttps://github.com/henrymercer
February 24, 2026 17:44https://github.com/github/codeql-action/pull/3506#event-23043061793
View session https://github.com/github/codeql-action/sessions/7bd7fc41-0387-4a52-aeb6-19aded718c9c
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Feb 24, 2026 https://github.com/github/codeql-action/pull/3506#pullrequestreview-3849594997
View reviewed changes https://github.com/github/codeql-action/pull/3506/files/160d27baf00e1b1f48bd189d637609258cad98c8
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/github/codeql-action/pull/3506#pullrequestreview-3849594997
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/codeql-action/pull/3506
src/util.test.tshttps://github.com/github/codeql-action/pull/3506/files/160d27baf00e1b1f48bd189d637609258cad98c8#diff-5b8db3845646ec2fda6f1a8fb2b5b8c67460b5070568f4be6320f344704969cd
Please reload this pagehttps://github.com/github/codeql-action/pull/3506
https://github.com/henrymercer
Update names in testshttps://github.com/github/codeql-action/pull/3506/commits/e51b6a9a520cc75c12cc3a2eaef8363f6845b5be
e51b6a9https://github.com/github/codeql-action/pull/3506/commits/e51b6a9a520cc75c12cc3a2eaef8363f6845b5be
https://github.com/mbg
mbghttps://github.com/mbg
Feb 24, 2026 https://github.com/github/codeql-action/pull/3506#pullrequestreview-3850036461
View reviewed changes https://github.com/github/codeql-action/pull/3506/files/e51b6a9a520cc75c12cc3a2eaef8363f6845b5be
mbghttps://github.com/mbg
https://github.com/github/codeql-action/pull/3506#pullrequestreview-3850036461
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/codeql-action/pull/3506
src/util.tshttps://github.com/github/codeql-action/pull/3506/files/e51b6a9a520cc75c12cc3a2eaef8363f6845b5be#diff-3294a832ea2276e554177e0b3007cc2d401c082912c7fbde49fa09141bf1aed1
Please reload this pagehttps://github.com/github/codeql-action/pull/3506
https://github.com/henrymercer
https://github.com/mbg
Update JSDochttps://github.com/github/codeql-action/pull/3506/commits/2a607fea25af475c1da15fbb12d33701cdf05d16
2a607fehttps://github.com/github/codeql-action/pull/3506/commits/2a607fea25af475c1da15fbb12d33701cdf05d16
https://github.com/henrymercer
henrymercerhttps://github.com/henrymercer
mbghttps://github.com/mbg
stale reviewhttps://github.com/github/codeql-action/pull/3506#pullrequestreview-3850036461
2a607fehttps://github.com/github/codeql-action/commit/2a607fea25af475c1da15fbb12d33701cdf05d16
February 24, 2026 19:28https://github.com/github/codeql-action/pull/3506#event-23045656676
https://github.com/mbg
mbghttps://github.com/mbg
Feb 24, 2026 https://github.com/github/codeql-action/pull/3506#pullrequestreview-3850188882
View reviewed changes https://github.com/github/codeql-action/pull/3506/files/2a607fea25af475c1da15fbb12d33701cdf05d16
https://github.com/henrymercer
henrymercerhttps://github.com/henrymercer
16adc4ehttps://github.com/github/codeql-action/commit/16adc4e6724ac45e5514b2814142af61054bcd2a
Feb 24, 2026https://github.com/github/codeql-action/pull/3506#event-23046485350
Please reload this pagehttps://github.com/github/codeql-action/pull/3506
https://github.com/henrymercer
henrymercerhttps://github.com/henrymercer
February 24, 2026 20:05https://github.com/github/codeql-action/pull/3506#event-23046486315
https://github.com/henrymercer
henrymercerhttps://github.com/henrymercer
Feb 24, 2026https://github.com/github/codeql-action/pull/3506#issuecomment-3954441539
Please reload this pagehttps://github.com/github/codeql-action/pull/3506
Merge main into releases/v4 #3523 https://github.com/github/codeql-action/pull/3523
Merge releases/v4 into releases/v3 #3533 https://github.com/github/codeql-action/pull/3533
https://github.co/hiddenchars
https://github.com/github/codeql-action/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fpull%2F3506
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
https://github.com/github/codeql-action/pull/3506/files/160d27baf00e1b1f48bd189d637609258cad98c8
https://github.com/mbg
mbg https://github.com/mbg
https://github.com/github/codeql-action/pull/3506/files/2a607fea25af475c1da15fbb12d33701cdf05d16
size/S https://github.com/github/codeql-action/issues?q=state%3Aopen%20label%3Asize%2FS
Please reload this pagehttps://github.com/github/codeql-action/pull/3506
https://github.com/henrymercer
https://github.com/mbg
https://github.com/apps/copilot-pull-request-reviewer
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.