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

Check for updates #15

Open
mottosso opened this issue May 21, 2017 · 1 comment
Open

Check for updates #15

mottosso opened this issue May 21, 2017 · 1 comment
Labels

Comments

@mottosso
Copy link
Contributor

mottosso commented May 21, 2017

Goal

Notify user on available update, potentially perform one in the background.

Implementation

At startup, check for commits made since the currently checked out version on disk, and show comments made per commit. Like what a GitHub pull-request does.

untitled

  1. Start Launcher
  2. Checking for updates in the background
  3. If found, pop up window
  4. Update
  5. Automatically restart Launcher
@mottosso
Copy link
Contributor Author

Here's how to list commit comments.

import requests

response = requests.get("https://api.github.com/repos/mindbender-studio/core/compare/9af05268f...f805b2dc1f")
for commit in response.json()["commits"][::-1]:
    print("[%s]: %s" % (commit["sha"][:6], repr(commit["commit"]["message"])))

# [f805b2]: u'Merge pull request #134 from mottosso/locations\n\nLocations'
# [9f5c82]: u'Gracefully handle transition to using locations'

tokejepsen pushed a commit to tokejepsen/launcher that referenced this issue May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant