lukevella / rallly

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
https://rallly.co
GNU Affero General Public License v3.0
3.21k stars 303 forks source link

Use Github API to detect new releases #621

Open lukevella opened 1 year ago

lukevella commented 1 year ago

We should be able to use the github releases api to get the latest version and by comparing it to NEXT_PUBLIC_APP_VERSION in the app we can detect whether there are any updates. This will help self-hosters keep there instances up to date.

Starting point in the codebase would be here.

If someone picks this up, don't worry about styling. Once we detect that there is a new version we can show an "*" next to the version number to indicate there is a new version.

zeeshanbhati commented 1 year ago

Hey @lukevella i would like to take this up , I would like to discuss the approach with you , do you want the github API directly at the frontend we could create a hook and can use it in the AppVersion Component or else we can create our own API which ping's github api