feat: added starred repositories option for releases widget #65
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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!