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 support to pull from GitHub Sponsors metadata #202

Open
patcon opened this issue Aug 29, 2019 · 2 comments
Open

Add support to pull from GitHub Sponsors metadata #202

patcon opened this issue Aug 29, 2019 · 2 comments

Comments

@patcon
Copy link

patcon commented Aug 29, 2019

❤️

@DuaneOBrien
Copy link
Contributor

What would implementing this look like for Back Your Stack?

@DuaneOBrien
Copy link
Contributor

Considerations when developing this feature:

FUNDING.yml can be located in a .github/ directory within a repository, or in the root of a repository named .github owned by an individual or an organization, and sometimes you can find both.

Currently, as far as I know, there's no information in the API to indicate if a repo or individual is sponsored or not, so you end up having to test every repo. I've found it easiest to just ask the API for the file, but it's inefficient (my hit rate is ~ 4%).

It might be worth having a conversation with GitHub about surfacing Sponsorship information in the API, returning has_funding and funding_url along with the rest of the repo information.

https://api.github.com/repos/chalk/chalk

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

No branches or pull requests

2 participants