glanceapp / glance

A self-hosted dashboard that puts all your feeds in one place
GNU Affero General Public License v3.0
8.48k stars 295 forks source link

feat: added starred repositories option for releases widget #65

Open benjasper opened 6 months ago

benjasper commented 6 months ago

Hi there,

love the app! I thought it would be cool to have the releases of the starred repositories of ones GitHub Account shown like GitHub does on their home page.

I did this with the GraphQL API to avoid having to fetch all releases for each starred repo (as this could probably be a lot in some cases).

I made the new setting optional by adding a starred configuration option that can be set to true. (Don't know if there is a better way to do this, a new widget felt overkill). It will use the existing token parameter for authentication.

I also felt like it might be nice to have the maximum number of releases that should be fetched be configurable, so I added a configuration option releases-search-limit. This works for both mechanisms, the specific one and the starred one.

Let me know if you want me to change anything!