Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification banner in cli that informs of later versions when released #60

Open
ghost opened this issue Sep 29, 2020 · 2 comments
Open
Labels
good first issue Good for newcomers

Comments

@ghost
Copy link

ghost commented Sep 29, 2020

Branchout should include a notification if there are more recent versions

> branchout init
There is an update to branchout, version 5.1 is available. 

etc/etc/...

@stickycode
Copy link
Member

need to call this

curl --silent "https://api.github.com/repos/Branchout/branchout/releases/latest"

and grab the tag name, probably want to do it once an hour and store the result in BRANCHOUT_STATE/version-check

@stickycode stickycode added the good first issue Good for newcomers label Sep 29, 2020
@fredcooke
Copy link
Collaborator

Agreed on caching it if doing it at all. Daily, though - This tends to only get released multiple times in a day when something gets screwed up so you'll get it tomorrow either way if daily. Could even be backgrounded and store the cached result not necessarily showing it on the first run of the day.

This should 100% be accompanied by a way to turn it off so ET doesn't phone home for sensitive environments and sensitive people and people who don't want a sporadic performance hit once an hour or once a day (more appropriate) and for people who are capable of managing their own update timings without software nagging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants