flora-pm / flora-server

A package index for the Haskell ecosystem
https://flora.pm/about
Other
124 stars 38 forks source link

Integrating funding informations from a GitHub source repo #412

Open tchoutri opened 1 year ago

tchoutri commented 1 year ago

Some GitHub repositories have a .github/FUNDING.yml file that lists places where one can financially contribute to the development of the project. It could be interesting to process this data and think on how to display it.

The github library can be retrieved to read the content of the file and process it. The information should be stored in the Package record, as a Map Text Text

The retrieval can be triggered as a back-office action, in fetchMetadataHandler.

See https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#get-repository-content

https://hackage.haskell.org/package/github-0.29/docs/GitHub.html#v:contentsForR