We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dc0c0e commit 2036186Copy full SHA for 2036186
app/cli.py
@@ -26,8 +26,13 @@ def cli(ctx, verbose) -> None:
26
ctx.ensure_object(dict)
27
ctx.obj["VERBOSE"] = verbose
28
current_version = Version.parse_version_string(__version__)
29
- tags = requests.get("https://api.github.com/repos/git-mastery/app/tags").json()
30
- latest_version = Version.parse_version_string(tags[0]["name"])
+ latest_version = (
+ requests.get(
31
+ "https://github.com/git-mastery/app/releases/latest", allow_redirects=False
32
+ )
33
+ .headers["Location"]
34
+ .rsplit("/", 1)[-1]
35
36
if current_version.is_behind(latest_version):
37
warn(
38
click.style(
0 commit comments