René's URL Explorer Experiment


Title: Broken Octokit Types · Issue #6 · dsnsgithub/dsns.dev · GitHub

Open Graph Title: Broken Octokit Types · Issue #6 · dsnsgithub/dsns.dev

X Title: Broken Octokit Types · Issue #6 · dsnsgithub/dsns.dev

Description: The GitHub Feed types are not type safe, caused by broken Octokit types. dsns.dev/src/components/GithubFeed.astro Lines 94 to 102 in e18d09a if (type === "PullRequestEvent" && (payload as any).action === "closed" && pr.merged) { verb = "...

Open Graph Description: The GitHub Feed types are not type safe, caused by broken Octokit types. dsns.dev/src/components/GithubFeed.astro Lines 94 to 102 in e18d09a if (type === "PullRequestEvent" && (payload as any).acti...

X Description: The GitHub Feed types are not type safe, caused by broken Octokit types. dsns.dev/src/components/GithubFeed.astro Lines 94 to 102 in e18d09a if (type === "PullRequestEvent" && (pa...

Opengraph URL: https://github.com/dsnsgithub/dsns.dev/issues/6

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Broken Octokit Types","articleBody":"The GitHub Feed types are not type safe, caused by broken Octokit types.\n\nhttps://github.com/dsnsgithub/dsns.dev/blob/e18d09af6521cb842a8b400dbde1eaad241a8621/src/components/GithubFeed.astro#L94-L102\n\n\nI will have to fork it and update the types myself, since apparently there is no maintainer for the official Octokit JS repositories anymore.\nhttps://github.com/octokit/openapi-types.ts/issues/232#issuecomment-3829345747\nhttps://github.com/octokit/rest.js/issues/128\n\n# My Fix\n\n## Use my [fork](https://github.com/dsnsgithub/openapi-types.ts), add this to `package.json`[^1]:\n\n```json\n\"overrides\": {\n    \"@octokit/openapi-types\": \"github:dsnsgithub/openapi-types.ts#main\"\n},\n```\n\n[^1]: You may have to delete `node_modules`/`package-lock.json` and reset Vercel build cache for the override to take effect.\n\n\nUse this hack to typeguard:\n```ts\nexport type EventPayloadMap = {\n  CreateEvent: components[\"schemas\"][\"create-event\"];\n  DeleteEvent: components[\"schemas\"][\"delete-event\"];\n  DiscussionEvent: components[\"schemas\"][\"discussion-event\"];\n  IssuesEvent: components[\"schemas\"][\"issues-event\"];\n  IssueCommentEvent: components[\"schemas\"][\"issue-comment-event\"];\n  ForkEvent: components[\"schemas\"][\"fork-event\"];\n  GollumEvent: components[\"schemas\"][\"gollum-event\"];\n  MemberEvent: components[\"schemas\"][\"member-event\"];\n  PublicEvent: components[\"schemas\"][\"public-event\"];\n  PushEvent: components[\"schemas\"][\"push-event\"];\n  PullRequestEvent: components[\"schemas\"][\"pull-request-event\"];\n  PullRequestReviewCommentEvent: components[\"schemas\"][\"pull-request-review-comment-event\"];\n  PullRequestReviewEvent: components[\"schemas\"][\"pull-request-review-event\"];\n  CommitCommentEvent: components[\"schemas\"][\"commit-comment-event\"];\n  ReleaseEvent: components[\"schemas\"][\"release-event\"];\n  WatchEvent: components[\"schemas\"][\"watch-event\"];\n};\n\nfunction isEvent\u003cT extends keyof EventPayloadMap\u003e(\n  event: components[\"schemas\"][\"event\"],\n  type: T\n): event is components[\"schemas\"][\"event\"] \u0026 { type: T; payload: EventPayloadMap[T] } {\n  return event.type === type;\n}\n```\n\nExample Usage:\n\n```ts\nimport { Octokit } from \"@octokit/rest\";\nimport type { components } from \"@octokit/openapi-types\";\n\n...\n\nconst res = await octokit.rest.activity.listPublicEventsForUser({\n\tusername: \"dsnsgithub\"\n})\n\nfor (const event of res.data) {\n\tif (isEvent(event, \"PullRequestEvent\")) {\n\t\t// event is now PullRequestEvent and is typeguarded.\n\t}  else if (isEvent(event, \"IssuesEvent\")) {\n\t\t// event is now IssuesEvent and is typeguarded.\n\t}\n}\n```","author":{"url":"https://github.com/dsnsgithub","@type":"Person","name":"dsnsgithub"},"datePublished":"2026-02-04T09:10:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/6/dsns.dev/issues/6"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9da2e50a-cd5b-8647-d377-6edaa0d0c245
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBC24:8184:64FDE5:818C5B:69928DFF
html-safe-nonce76d0b4ac1e84ded0a49dc5046ed9ee6e03ba8bfd034d3183cc4b08cf2ba63bcf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzI0OjgxODQ6NjRGREU1OjgxOEM1Qjo2OTkyOERGRiIsInZpc2l0b3JfaWQiOiI3NjExNTEyODk4ODIxNzIxNTk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac804bd0a61b28499f501fc7133a502940b44291b8e6e0cfe67f83d25abac7c863
hovercard-subject-tagissue:3895479514
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dsnsgithub/dsns.dev/6/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a815351ed4b6a52fc90ec25ab2daed111d14e442cccc1669705c9e94ea5d518d/dsnsgithub/dsns.dev/issues/6
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a815351ed4b6a52fc90ec25ab2daed111d14e442cccc1669705c9e94ea5d518d/dsnsgithub/dsns.dev/issues/6
og:image:altThe GitHub Feed types are not type safe, caused by broken Octokit types. dsns.dev/src/components/GithubFeed.astro Lines 94 to 102 in e18d09a if (type === "PullRequestEvent" && (payload as any).acti...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedsnsgithub
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/dsnsgithub/dsns.dev git https://github.com/dsnsgithub/dsns.dev.git
octolytics-dimension-user_id48170013
octolytics-dimension-user_logindsnsgithub
octolytics-dimension-repository_id837030090
octolytics-dimension-repository_nwodsnsgithub/dsns.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id837030090
octolytics-dimension-repository_network_root_nwodsnsgithub/dsns.dev
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
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/issues/6#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdsnsgithub%2Fdsns.dev%2Fissues%2F6
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%2Fdsnsgithub%2Fdsns.dev%2Fissues%2F6
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=dsnsgithub%2Fdsns.dev
Reloadhttps://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/issues/6
Reloadhttps://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/issues/6
Reloadhttps://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/issues/6
dsnsgithub https://patch-diff.githubusercontent.com/dsnsgithub
dsns.devhttps://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fdsnsgithub%2Fdsns.dev
Fork 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fdsnsgithub%2Fdsns.dev
Star 0 https://patch-diff.githubusercontent.com/login?return_to=%2Fdsnsgithub%2Fdsns.dev
Code https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev
Issues 1 https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/issues
Pull requests 0 https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/pulls
Actions https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/actions
Projects 0 https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/projects
Security 0 https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/security
Insights https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/pulse
Code https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev
Issues https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/issues
Pull requests https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/pulls
Actions https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/actions
Projects https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/projects
Security https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/security
Insights https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/dsnsgithub/dsns.dev/issues/6
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/dsnsgithub/dsns.dev/issues/6
Broken Octokit Typeshttps://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/issues/6#top
https://github.com/dsnsgithub
https://github.com/dsnsgithub
dsnsgithubhttps://github.com/dsnsgithub
on Feb 4, 2026https://github.com/dsnsgithub/dsns.dev/issues/6#issue-3895479514
dsns.dev/src/components/GithubFeed.astrohttps://github.com/dsnsgithub/dsns.dev/blob/e18d09af6521cb842a8b400dbde1eaad241a8621/src/components/GithubFeed.astro#L94-L102
e18d09ahttps://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/commit/e18d09af6521cb842a8b400dbde1eaad241a8621
octokit/openapi-types.ts#232 (comment)https://github.com/octokit/openapi-types.ts/issues/232#issuecomment-3829345747
octokit/rest.js#128https://github.com/octokit/rest.js/issues/128
forkhttps://github.com/dsnsgithub/openapi-types.ts
1https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/issues/6#user-content-fn-1-d145d27ad54df5c25e3786637675fc31
https://patch-diff.githubusercontent.com/dsnsgithub/dsns.dev/issues/6#user-content-fnref-1-d145d27ad54df5c25e3786637675fc31
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.