Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a sponsor button to profiles having Sponsorships enabled #143

Open
Gummibeer opened this issue Aug 31, 2021 · 0 comments
Open

Add a sponsor button to profiles having Sponsorships enabled #143

Gummibeer opened this issue Aug 31, 2021 · 0 comments

Comments

@Gummibeer
Copy link
Member

Gummibeer commented Aug 31, 2021

We should add a "sponsor" button on all profiles having sponsorships (via GitHub) enabled.
To do so we will have to sync if they have sponsoring enabled in the \App\Jobs\UpdateUserDetails job which will also have to switch to GraphQL API as the sponsor information isn't available elsewhere.

This should also result in a PR to https://github.com/Astrotomic/laravel-github-sponsors with a method like hasSponsorsListing() or hasSponsoringEnabled().
https://docs.github.com/en/graphql/reference/objects

With the new attribute on user and organization we can show a conditional button on all profiles linking to the GitHub sponsor page.
Bildschirmfoto 2021-09-01 um 14 59 33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant