Skip to content

feat: link to GitHub Sponsors from profiles - #129

Merged
brendt merged 1 commit into
dev-null-sh:productionfrom
simonhamp:feat/sponsor-link
Oct 16, 2026
Merged

brendt merged 1 commit into
dev-null-sh:productionfrom
simonhamp:feat/sponsor-link

Conversation

@simonhamp

@simonhamp simonhamp commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

If someone has a public GitHub Sponsors page, their profile now shows a "Sponsor on GitHub" link next to their GitHub link.

GitHub's REST API doesn't say whether someone has a Sponsors page, so on sign-in SyncGitHubUser asks the GraphQL API for viewer.sponsorsListing.isPublic using the token from that sign-in. The field is public, so it shouldn't need any scope beyond the user:email the app already asks for. Only a public listing counts, because a draft or unapproved one has no page to link to. The answer is stored in a new users.has_sponsors_listing column.

This adds one request to GitHub during sign-in, with a 2 second connect timeout and 3 seconds in total. If it fails or times out, sign-in carries on and the last known value is kept. New users default to false.

Like bio and website, it only refreshes on sign-in, so someone who sets up Sponsors later gets the link the next time they sign in. Settings > Profile lists it with the other fields mirrored from GitHub, and the personal data export includes it.

When someone has a public GitHub Sponsors page, their profile shows a
"Sponsor on GitHub" link next to their GitHub link.

GitHub's REST API doesn't say whether a user has a sponsors page, so
sign-in asks GraphQL for viewer.sponsorsListing.isPublic with the token
from that sign-in. Only a public listing counts, since a draft one has
no page to link to. If GitHub errors or times out, the last known value
is kept and sign-in carries on.

Like the rest of the profile it only refreshes on sign-in. Settings >
Profile lists it with the other mirrored fields, and the personal data
export includes it.
@brendt
brendt merged commit 0afbc26 into dev-null-sh:production Oct 16, 2026
1 check passed
@simonhamp
simonhamp deleted the feat/sponsor-link branch October 16, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants