thanks icon indicating copy to clipboard operation
thanks copied to clipboard

Github sponsors support

Open finwo opened this issue 6 years ago • 3 comments

GitHub is rolling out their sponsors program.

Adding a check with github's api to see if found developers have sponsorships enabled would save them having to know about this project.

If the idea appeals, I might look into implementing it in the near future.

finwo avatar Nov 01 '19 21:11 finwo

After checking, I've found no way yet within the github api to receive the sponsor list for a repository or user.

finwo avatar Sep 02 '20 08:09 finwo

This is a cool idea. PR welcome!

feross avatar Nov 03 '20 19:11 feross

Another note to self

There's a multiple routes this can take:

  • Without repository in package.json
    • See if there's a .github/FUNDING.yml in the package (for when they don't .npmignore it)
  • Requires repository url in package.json
    • Fetch the funding.yml from the repository on github & parse that to generate funding urls
    • Fetch contributors through graphql api & see if they have anything listed using the sponsorable interface.

finwo avatar Nov 04 '20 11:11 finwo