From fb85fc2c4f6912be3986295e4e8ad3ee33ff7411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20van=20Br=C3=BCgge?= Date: Sun, 28 Apr 2024 16:38:54 +0100 Subject: [PATCH] github: Use API to properly tag prereleases --- nix_update/version/github.py | 28 +- tests/conftest.py | 4 + tests/test_branch.py | 7 +- tests/test_branch_releases.atom | 199 ------ tests/test_branch_releases.json | 1191 +++++++++++++++++++++++++++++++ tests/test_github.py | 36 +- 6 files changed, 1255 insertions(+), 210 deletions(-) delete mode 100644 tests/test_branch_releases.atom create mode 100644 tests/test_branch_releases.json diff --git a/nix_update/version/github.py b/nix_update/version/github.py index ba865f6..b5b0c69 100644 --- a/nix_update/version/github.py +++ b/nix_update/version/github.py @@ -1,3 +1,5 @@ +import json +import os import re import urllib.request import xml.etree.ElementTree as ET @@ -8,7 +10,6 @@ from ..utils import info from .version import Version - def version_from_entry(entry: Element) -> Version: if entry is None: raise VersionError("No release found") @@ -19,7 +20,6 @@ def version_from_entry(entry: Element) -> Version: # TODO: set pre-release flag return Version(unquote(url.path.split("/")[-1])) - def fetch_github_versions(url: ParseResult) -> list[Version]: if url.netloc != "github.com": return [] @@ -27,13 +27,25 @@ def fetch_github_versions(url: ParseResult) -> list[Version]: owner, repo = parts[1], parts[2] repo = re.sub(r"\.git$", "", repo) # TODO fallback to tags? - feed_url = f"https://github.com/{owner}/{repo}/releases.atom" - info(f"fetch {feed_url}") - resp = urllib.request.urlopen(feed_url) - tree = ET.fromstring(resp.read()) - releases = tree.findall(".//{http://www.w3.org/2005/Atom}entry") - return [version_from_entry(x) for x in releases] + try: + github_url = f"https://api.github.com/repos/{owner}/{repo}/releases" + token = os.environ.get('GITHUB_TOKEN') + req = github_url if token == None else urllib.request.Request( + github_url, headers={ 'Authorization': f'Bearer {token}' } + ) + info(f"trying to fetch {github_url}") + resp = urllib.request.urlopen(req) + releases = json.loads(resp.read()) + return [Version(x["tag_name"], x["prerelease"]) for x in releases] + except urllib.error.URLError as e: + print("Error while querying GitHub API, falling back to public atom feed") + feed_url = f"https://github.com/{owner}/{repo}/releases.atom" + info(f"fetch {feed_url}") + resp = urllib.request.urlopen(feed_url) + tree = ET.fromstring(resp.read()) + releases = tree.findall(".//{http://www.w3.org/2005/Atom}entry") + return [version_from_entry(x) for x in releases] def fetch_github_snapshots(url: ParseResult, branch: str) -> list[Version]: if url.netloc != "github.com": diff --git a/tests/conftest.py b/tests/conftest.py index 0229bb0..00c2af7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -33,6 +33,10 @@ def testpkgs(init_git: bool = False) -> Iterator[Path]: subprocess.run(["git", "-C", tmpdirname, "init"], check=True) subprocess.run(["git", "-C", tmpdirname, "add", "--all"], check=True) + subprocess.run( + ["git", "-C", tmpdirname, "config", "commit.gpgsign", "false"], + check=True, + ) subprocess.run( ["git", "-C", tmpdirname, "commit", "-m", "first commit"], check=True, diff --git a/tests/test_branch.py b/tests/test_branch.py index 5bcb7e1..b43f9e7 100644 --- a/tests/test_branch.py +++ b/tests/test_branch.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 + +import os import unittest.mock from pathlib import Path from typing import BinaryIO @@ -13,8 +15,9 @@ def fake_urlopen(url: str) -> BinaryIO: - if url.endswith("releases.atom"): - return open(TEST_ROOT.joinpath("test_branch_releases.atom"), "rb") + url = url if isinstance(url, str) else url.full_url + if url.endswith("releases"): + return open(TEST_ROOT.joinpath("test_branch_releases.json"), "rb") else: return open(TEST_ROOT.joinpath("test_branch_commits_master.atom"), "rb") diff --git a/tests/test_branch_releases.atom b/tests/test_branch_releases.atom deleted file mode 100644 index 74d85fb..0000000 --- a/tests/test_branch_releases.atom +++ /dev/null @@ -1,199 +0,0 @@ - - - tag:github.com,2008:https://github.com/Mic92/nix-update/releases - - - Release notes from nix-update - 2024-02-19T14:47:50Z - - tag:github.com,2008:Repository/245145732/1.2.0 - 2024-02-19T14:48:23Z - - 1.2.0 - <h2>What's Changed</h2> -<ul> -<li>make gitlab updater work by tag when releases are disabled by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lilyinstarlight/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lilyinstarlight">@lilyinstarlight</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2085235481" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/219" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/219/hovercard" href="https://github.com/Mic92/nix-update/pull/219">#219</a></li> -<li>print maintainers list by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/GaetanLepage/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/GaetanLepage">@GaetanLepage</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2099698047" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/222" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/222/hovercard" href="https://github.com/Mic92/nix-update/pull/222">#222</a></li> -</ul> -<h2>New Contributors</h2> -<ul> -<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lilyinstarlight/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lilyinstarlight">@lilyinstarlight</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2085235481" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/219" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/219/hovercard" href="https://github.com/Mic92/nix-update/pull/219">#219</a></li> -<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/GaetanLepage/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/GaetanLepage">@GaetanLepage</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2099698047" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/222" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/222/hovercard" href="https://github.com/Mic92/nix-update/pull/222">#222</a></li> -</ul> -<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Mic92/nix-update/compare/1.1.0...1.1.1"><tt>1.1.0...1.1.1</tt></a></p> -<h2>What's Changed</h2> -<ul> -<li>make gitlab updater work by tag when releases are disabled by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lilyinstarlight/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lilyinstarlight">@lilyinstarlight</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2085235481" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/219" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/219/hovercard" href="https://github.com/Mic92/nix-update/pull/219">#219</a></li> -<li>print maintainers list by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/GaetanLepage/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/GaetanLepage">@GaetanLepage</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2099698047" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/222" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/222/hovercard" href="https://github.com/Mic92/nix-update/pull/222">#222</a></li> -</ul> -<h2>New Contributors</h2> -<ul> -<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lilyinstarlight/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lilyinstarlight">@lilyinstarlight</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2085235481" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/219" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/219/hovercard" href="https://github.com/Mic92/nix-update/pull/219">#219</a></li> -<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/GaetanLepage/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/GaetanLepage">@GaetanLepage</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2099698047" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/222" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/222/hovercard" href="https://github.com/Mic92/nix-update/pull/222">#222</a></li> -</ul> -<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Mic92/nix-update/compare/1.1.0...1.2.0"><tt>1.1.0...1.2.0</tt></a></p> - - Mic92 - - - - - tag:github.com,2008:Repository/245145732/1.1.0 - 2024-01-16T11:38:43Z - - 1.1.0 - <h2>What's Changed</h2> -<ul> -<li>Support bitbucket.org by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/EBADBEEF/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/EBADBEEF">@EBADBEEF</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2006328534" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/208" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/208/hovercard" href="https://github.com/Mic92/nix-update/pull/208">#208</a></li> -<li>Add support for updating buildComposerProject's vendorHash by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Mic92/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Mic92">@Mic92</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2083525539" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/217" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/217/hovercard" href="https://github.com/Mic92/nix-update/pull/217">#217</a></li> -</ul> -<h2>New Contributors</h2> -<ul> -<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/EBADBEEF/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/EBADBEEF">@EBADBEEF</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2006328534" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/208" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/208/hovercard" href="https://github.com/Mic92/nix-update/pull/208">#208</a></li> -<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Atemu/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Atemu">@Atemu</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2064906340" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/213" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/213/hovercard" href="https://github.com/Mic92/nix-update/pull/213">#213</a></li> -<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AkechiShiro/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AkechiShiro">@AkechiShiro</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2080900275" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/215" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/215/hovercard" href="https://github.com/Mic92/nix-update/pull/215">#215</a></li> -</ul> -<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Mic92/nix-update/compare/1.0.0...1.1.0"><tt>1.0.0...1.1.0</tt></a></p> - - Mic92 - - - - - tag:github.com,2008:Repository/245145732/1.0.0 - 2023-09-30T09:18:22Z - - 1.0.0 - <p>This has been stable for a long time. Time to bump the version to 1.0.0!</p> -<h2>What's Changed</h2> -<ul> -<li>quote <code>import_path</code> when importing in nix by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/figsoda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/figsoda">@figsoda</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1863534200" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/191" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/191/hovercard" href="https://github.com/Mic92/nix-update/pull/191">#191</a></li> -<li>ruff: enable upgrade checks by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Mic92/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Mic92">@Mic92</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1866442457" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/192" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/192/hovercard" href="https://github.com/Mic92/nix-update/pull/192">#192</a></li> -<li>unquote versions from github atom feeds by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/figsoda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/figsoda">@figsoda</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1884608615" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/193" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/193/hovercard" href="https://github.com/Mic92/nix-update/pull/193">#193</a></li> -<li>support for updating yarn FOD hash by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yu-re-ka/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yu-re-ka">@yu-re-ka</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1021395791" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/68" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/68/hovercard" href="https://github.com/Mic92/nix-update/pull/68">#68</a></li> -<li>Modernize buildsystem by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Mic92/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Mic92">@Mic92</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1920179986" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/199" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/199/hovercard" href="https://github.com/Mic92/nix-update/pull/199">#199</a></li> -</ul> -<h2>New Contributors</h2> -<ul> -<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yu-re-ka/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yu-re-ka">@yu-re-ka</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1021395791" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/68" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/68/hovercard" href="https://github.com/Mic92/nix-update/pull/68">#68</a></li> -</ul> -<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Mic92/nix-update/compare/0.19.3...1.0.0"><tt>0.19.3...1.0.0</tt></a></p> - - Mic92 - - - - - tag:github.com,2008:Repository/245145732/0.19.3 - 2023-08-06T19:28:44Z - - 0.19.3 - <h2>What's Changed</h2> -<ul> -<li>fix escaping for non-toplevel attributes by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/figsoda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/figsoda">@figsoda</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1838297699" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/182" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/182/hovercard" href="https://github.com/Mic92/nix-update/pull/182">#182</a></li> -</ul> -<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Mic92/nix-update/compare/0.19.2...0.19.3"><tt>0.19.2...0.19.3</tt></a></p> - - Mic92 - - - - - tag:github.com,2008:Repository/245145732/0.19.2 - 2023-08-02T21:03:43Z - - 0.19.2 - <h2>What's Changed</h2> -<ul> -<li>fix attribute name escaping by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/figsoda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/figsoda">@figsoda</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1833252113" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/180" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/180/hovercard" href="https://github.com/Mic92/nix-update/pull/180">#180</a></li> -</ul> -<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Mic92/nix-update/compare/0.19.1...0.19.2"><tt>0.19.1...0.19.2</tt></a></p> - - Mic92 - - - - - tag:github.com,2008:Repository/245145732/0.19.1 - 2023-08-02T05:44:10Z - - 0.19.1 - <h2>What's Changed</h2> -<ul> -<li>escape attribute names by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/figsoda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/figsoda">@figsoda</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1832143213" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/179" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/179/hovercard" href="https://github.com/Mic92/nix-update/pull/179">#179</a></li> -</ul> -<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Mic92/nix-update/compare/0.19.0...0.19.1"><tt>0.19.0...0.19.1</tt></a></p> - - Mic92 - - - - - tag:github.com,2008:Repository/245145732/0.19.0 - 2023-07-12T20:30:28Z - - 0.19.0 - <h2>What's Changed</h2> -<ul> -<li>also respect cargoRoot when updating checksum by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Mic92/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Mic92">@Mic92</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1760004756" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/172" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/172/hovercard" href="https://github.com/Mic92/nix-update/pull/172">#172</a></li> -<li>support new goModules attr by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Artturin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Artturin">@Artturin</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1799569871" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/176" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/176/hovercard" href="https://github.com/Mic92/nix-update/pull/176">#176</a></li> -</ul> -<h2>New Contributors</h2> -<ul> -<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Artturin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Artturin">@Artturin</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1799569871" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/176" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/176/hovercard" href="https://github.com/Mic92/nix-update/pull/176">#176</a></li> -</ul> -<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Mic92/nix-update/compare/0.18.0...0.19.0"><tt>0.18.0...0.19.0</tt></a></p> - - Mic92 - - - - - tag:github.com,2008:Repository/245145732/0.18.0 - 2023-06-02T14:09:22Z - - 0.18.0 - <h2>What's Changed</h2> -<ul> -<li>nix-update: use nom if in path by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Mic92/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Mic92">@Mic92</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1689088189" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/159" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/159/hovercard" href="https://github.com/Mic92/nix-update/pull/159">#159</a></li> -<li>add diff support for <code>fetchCrate</code> by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/figsoda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/figsoda">@figsoda</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1707934337" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/162" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/162/hovercard" href="https://github.com/Mic92/nix-update/pull/162">#162</a></li> -<li>git-commit files directly without using staging area by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Mic92/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Mic92">@Mic92</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1736869979" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/171" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/171/hovercard" href="https://github.com/Mic92/nix-update/pull/171">#171</a></li> -</ul> -<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Mic92/nix-update/compare/0.17.2...0.18.0"><tt>0.17.2...0.18.0</tt></a></p> - - Mic92 - - - - - tag:github.com,2008:Repository/245145732/0.17.2 - 2023-04-28T08:19:05Z - - 0.17.2 - <h2>What's Changed</h2> -<ul> -<li>improve version assertions in tests by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/figsoda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/figsoda">@figsoda</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1686027633" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/158" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/158/hovercard" href="https://github.com/Mic92/nix-update/pull/158">#158</a></li> -<li>fix updating cargoLock with flakes by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/figsoda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/figsoda">@figsoda</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1685992879" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/157" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/157/hovercard" href="https://github.com/Mic92/nix-update/pull/157">#157</a></li> -</ul> -<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Mic92/nix-update/compare/0.17.1...0.17.2"><tt>0.17.1...0.17.2</tt></a></p> - - Mic92 - - - - - tag:github.com,2008:Repository/245145732/0.17.1 - 2023-04-22T18:12:07Z - - 0.17.1 - <h2>What's Changed</h2> -<ul> -<li>improve assertion message by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/figsoda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/figsoda">@figsoda</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1677136781" data-permission-text="Title is private" data-url="https://github.com/Mic92/nix-update/issues/155" data-hovercard-type="pull_request" data-hovercard-url="/Mic92/nix-update/pull/155/hovercard" href="https://github.com/Mic92/nix-update/pull/155">#155</a></li> -</ul> -<p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/Mic92/nix-update/compare/0.17.0...0.17.1"><tt>0.17.0...0.17.1</tt></a></p> - - Mic92 - - - - diff --git a/tests/test_branch_releases.json b/tests/test_branch_releases.json new file mode 100644 index 0000000..6e36a7d --- /dev/null +++ b/tests/test_branch_releases.json @@ -0,0 +1,1191 @@ +[ + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/142607814", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/142607814/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/142607814/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/1.2.0", + "id": 142607814, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4IgAXG", + "tag_name": "1.2.0", + "target_commitish": "master", + "name": "1.2.0", + "draft": false, + "prerelease": false, + "created_at": "2024-02-19T14:47:50Z", + "published_at": "2024-02-19T14:48:23Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/1.2.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/1.2.0", + "body": "## What's Changed\r\n* make gitlab updater work by tag when releases are disabled by @lilyinstarlight in https://github.com/Mic92/nix-update/pull/219\r\n* print maintainers list by @GaetanLepage in https://github.com/Mic92/nix-update/pull/222\r\n\r\n## New Contributors\r\n* @lilyinstarlight made their first contribution in https://github.com/Mic92/nix-update/pull/219\r\n* @GaetanLepage made their first contribution in https://github.com/Mic92/nix-update/pull/222\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/1.1.0...1.1.1\r\n\r\n## What's Changed\r\n* make gitlab updater work by tag when releases are disabled by @lilyinstarlight in https://github.com/Mic92/nix-update/pull/219\r\n* print maintainers list by @GaetanLepage in https://github.com/Mic92/nix-update/pull/222\r\n\r\n## New Contributors\r\n* @lilyinstarlight made their first contribution in https://github.com/Mic92/nix-update/pull/219\r\n* @GaetanLepage made their first contribution in https://github.com/Mic92/nix-update/pull/222\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/1.1.0...1.2.0", + "mentions_count": 2 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/137203894", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/137203894/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/137203894/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/1.1.0", + "id": 137203894, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4ILZC2", + "tag_name": "1.1.0", + "target_commitish": "master", + "name": "1.1.0", + "draft": false, + "prerelease": false, + "created_at": "2024-01-16T11:35:20Z", + "published_at": "2024-01-16T11:38:43Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/1.1.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/1.1.0", + "body": "## What's Changed\r\n\r\n* Support bitbucket.org by @EBADBEEF in https://github.com/Mic92/nix-update/pull/208\r\n* Add support for updating buildComposerProject's vendorHash by @Mic92 in https://github.com/Mic92/nix-update/pull/217\r\n\r\n## New Contributors\r\n* @EBADBEEF made their first contribution in https://github.com/Mic92/nix-update/pull/208\r\n* @Atemu made their first contribution in https://github.com/Mic92/nix-update/pull/213\r\n* @AkechiShiro made their first contribution in https://github.com/Mic92/nix-update/pull/215\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/1.0.0...1.1.0", + "mentions_count": 4 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/123205830", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/123205830/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/123205830/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/1.0.0", + "id": 123205830, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4HV_jG", + "tag_name": "1.0.0", + "target_commitish": "master", + "name": "1.0.0", + "draft": false, + "prerelease": false, + "created_at": "2023-09-30T09:16:35Z", + "published_at": "2023-09-30T09:18:07Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/1.0.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/1.0.0", + "body": "This has been stable for a long time. Time to bump the version to 1.0.0!\r\n\r\n## What's Changed\r\n* quote `import_path` when importing in nix by @figsoda in https://github.com/Mic92/nix-update/pull/191\r\n* ruff: enable upgrade checks by @Mic92 in https://github.com/Mic92/nix-update/pull/192\r\n* unquote versions from github atom feeds by @figsoda in https://github.com/Mic92/nix-update/pull/193\r\n* support for updating yarn FOD hash by @yu-re-ka in https://github.com/Mic92/nix-update/pull/68\r\n* Modernize buildsystem by @Mic92 in https://github.com/Mic92/nix-update/pull/199\r\n\r\n## New Contributors\r\n* @yu-re-ka made their first contribution in https://github.com/Mic92/nix-update/pull/68\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.19.3...1.0.0", + "reactions": { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/123205830/reactions", + "total_count": 2, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 2, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "mentions_count": 3 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/115387320", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/115387320/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/115387320/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.19.3", + "id": 115387320, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4G4Ku4", + "tag_name": "0.19.3", + "target_commitish": "master", + "name": "0.19.3", + "draft": false, + "prerelease": false, + "created_at": "2023-08-06T19:27:56Z", + "published_at": "2023-08-06T19:28:44Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.19.3", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.19.3", + "body": "## What's Changed\r\n* fix escaping for non-toplevel attributes by @figsoda in https://github.com/Mic92/nix-update/pull/182\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.19.2...0.19.3", + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/114882287", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/114882287/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/114882287/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.19.2", + "id": 114882287, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4G2Pbv", + "tag_name": "0.19.2", + "target_commitish": "master", + "name": "0.19.2", + "draft": false, + "prerelease": false, + "created_at": "2023-08-02T21:03:23Z", + "published_at": "2023-08-02T21:03:43Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.19.2", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.19.2", + "body": "## What's Changed\r\n* fix attribute name escaping by @figsoda in https://github.com/Mic92/nix-update/pull/180\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.19.1...0.19.2", + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/114758153", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/114758153/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/114758153/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.19.1", + "id": 114758153, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4G1xIJ", + "tag_name": "0.19.1", + "target_commitish": "master", + "name": "0.19.1", + "draft": false, + "prerelease": false, + "created_at": "2023-08-02T05:43:04Z", + "published_at": "2023-08-02T05:44:10Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.19.1", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.19.1", + "body": "## What's Changed\r\n* escape attribute names by @figsoda in https://github.com/Mic92/nix-update/pull/179\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.19.0...0.19.1", + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/112016594", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/112016594/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/112016594/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.19.0", + "id": 112016594, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4GrTzS", + "tag_name": "0.19.0", + "target_commitish": "master", + "name": "0.19.0", + "draft": false, + "prerelease": false, + "created_at": "2023-07-12T19:03:22Z", + "published_at": "2023-07-12T20:30:28Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.19.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.19.0", + "body": "## What's Changed\r\n* also respect cargoRoot when updating checksum by @Mic92 in https://github.com/Mic92/nix-update/pull/172\r\n* support new goModules attr by @Artturin in https://github.com/Mic92/nix-update/pull/176\r\n\r\n## New Contributors\r\n* @Artturin made their first contribution in https://github.com/Mic92/nix-update/pull/176\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.18.0...0.19.0", + "mentions_count": 2 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/105843340", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/105843340/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/105843340/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.18.0", + "id": 105843340, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4GTwqM", + "tag_name": "0.18.0", + "target_commitish": "master", + "name": "0.18.0", + "draft": false, + "prerelease": false, + "created_at": "2023-06-02T01:19:18Z", + "published_at": "2023-06-02T14:09:22Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.18.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.18.0", + "body": "## What's Changed\r\n* nix-update: use nom if in path by @Mic92 in https://github.com/Mic92/nix-update/pull/159\r\n* add diff support for `fetchCrate` by @figsoda in https://github.com/Mic92/nix-update/pull/162\r\n* git-commit files directly without using staging area by @Mic92 in https://github.com/Mic92/nix-update/pull/171\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.17.2...0.18.0", + "mentions_count": 2 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/101232451", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/101232451/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/101232451/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.17.2", + "id": 101232451, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4GCK9D", + "tag_name": "0.17.2", + "target_commitish": "master", + "name": "0.17.2", + "draft": false, + "prerelease": false, + "created_at": "2023-04-28T00:06:13Z", + "published_at": "2023-04-28T08:19:05Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.17.2", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.17.2", + "body": "## What's Changed\r\n* improve version assertions in tests by @figsoda in https://github.com/Mic92/nix-update/pull/158\r\n* fix updating cargoLock with flakes by @figsoda in https://github.com/Mic92/nix-update/pull/157\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.17.1...0.17.2", + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/100529213", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/100529213/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/100529213/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.17.1", + "id": 100529213, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4F_fQ9", + "tag_name": "0.17.1", + "target_commitish": "master", + "name": "0.17.1", + "draft": false, + "prerelease": false, + "created_at": "2023-04-22T15:44:36Z", + "published_at": "2023-04-22T18:12:07Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.17.1", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.17.1", + "body": "## What's Changed\r\n\r\n* improve assertion message by @figsoda in https://github.com/Mic92/nix-update/pull/155\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.17.0...0.17.1", + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/100009492", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/100009492/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/100009492/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.17.0", + "id": 100009492, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4F9gYU", + "tag_name": "0.17.0", + "target_commitish": "master", + "name": "0.17.0", + "draft": false, + "prerelease": false, + "created_at": "2023-04-19T01:09:44Z", + "published_at": "2023-04-19T07:26:23Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.17.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.17.0", + "body": "## What's Changed\r\n* improve error message when no hash is found by @figsoda in https://github.com/Mic92/nix-update/pull/145\r\n* fix updating `importCargoLock` when `lockFile` is in the nix store by @figsoda in https://github.com/Mic92/nix-update/pull/148\r\n* switch to go-modules.outputHash by @zowoq in https://github.com/Mic92/nix-update/pull/150\r\n* consider revision when checking whether there was an update by @figsoda in https://github.com/Mic92/nix-update/pull/152\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.16.0...0.17.0", + "mentions_count": 2 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/96447055", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/96447055/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/96447055/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.16.0", + "id": 96447055, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4Fv6pP", + "tag_name": "0.16.0", + "target_commitish": "master", + "name": "0.16.0", + "draft": false, + "prerelease": false, + "created_at": "2023-03-22T08:05:35Z", + "published_at": "2023-03-22T08:06:21Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.16.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.16.0", + "body": "## What's Changed\r\n* add support for updating packages using importCargoLock by @figsoda in https://github.com/Mic92/nix-update/pull/143\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.15.1...0.16.0", + "reactions": { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/96447055/reactions", + "total_count": 1, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 1, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/94508574", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/94508574/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/94508574/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.15.1", + "id": 94508574, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4FohYe", + "tag_name": "0.15.1", + "target_commitish": "master", + "name": "0.15.1", + "draft": false, + "prerelease": false, + "created_at": "2023-02-19T12:09:22Z", + "published_at": "2023-03-04T11:11:09Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.15.1", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.15.1", + "body": "## What's Changed\r\n* reject empty hashes by @figsoda in https://github.com/Mic92/nix-update/pull/139\r\n\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.15.0...0.15.1", + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/90533976", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/90533976/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/90533976/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.15.0", + "id": 90533976, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4FZXBY", + "tag_name": "0.15.0", + "target_commitish": "master", + "name": "0.15.0", + "draft": false, + "prerelease": false, + "created_at": "2023-01-27T23:41:24Z", + "published_at": "2023-01-28T18:48:36Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.15.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.15.0", + "body": "## What's Changed\r\n* nix-update: add url parameter to override the repository discovery by @Mic92 in https://github.com/Mic92/nix-update/pull/137\r\n* remove trailing `.git` for github diff urls by @figsoda in https://github.com/Mic92/nix-update/pull/138\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.14.0...0.15.0", + "mentions_count": 2 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/90103695", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/90103695/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/90103695/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.14.0", + "id": 90103695, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4FXt-P", + "tag_name": "0.14.0", + "target_commitish": "master", + "name": "0.14.0", + "draft": false, + "prerelease": false, + "created_at": "2023-01-24T19:53:46Z", + "published_at": "2023-01-24T21:15:15Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.14.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.14.0", + "body": "## What's Changed\r\n* gitea support by @figsoda in https://github.com/Mic92/nix-update/pull/134\r\n* fix build with updated nixpkgs by @figsoda in https://github.com/Mic92/nix-update/pull/136\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.13.0...0.14.0", + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/88249900", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/88249900/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/88249900/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.13.0", + "id": 88249900, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4FQpYs", + "tag_name": "0.13.0", + "target_commitish": "master", + "name": "0.13.0", + "draft": false, + "prerelease": false, + "created_at": "2023-01-08T18:03:37Z", + "published_at": "2023-01-08T19:07:50Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.13.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.13.0", + "body": "## What's Changed\r\n* Added the ability to update PHP extensions using this tool, thanks to @drupol (https://github.com/Mic92/nix-update/pull/123)\r\n* Added the --system flag, thanks to @figsoda (https://github.com/Mic92/nix-update/pull/130)\r\n\r\n## New Contributors\r\n* @drupol made their first contribution in https://github.com/Mic92/nix-update/pull/124\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.12.0...0.13.0", + "mentions_count": 2 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/87204773", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/87204773/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/87204773/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.12.0", + "id": 87204773, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4FMqOl", + "tag_name": "0.12.0", + "target_commitish": "master", + "name": "0.12.0", + "draft": false, + "prerelease": false, + "created_at": "2022-12-25T03:38:42Z", + "published_at": "2022-12-25T13:01:20Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.12.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.12.0", + "body": "## What's Changed\r\n* default attribute to $UPDATE_NIX_ATTR_PATH by @figsoda in https://github.com/Mic92/nix-update/pull/120\r\n This is set by the nixpkgs updater and will make it possible to omit the attrPath in nix-update-script.\r\n\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.11.0...0.11.1", + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/86222384", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/86222384/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/86222384/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.11.0", + "id": 86222384, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4FI6Yw", + "tag_name": "0.11.0", + "target_commitish": "master", + "name": "0.11.0", + "draft": false, + "prerelease": false, + "created_at": "2022-12-15T17:53:56Z", + "published_at": "2022-12-15T20:44:13Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.11.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.11.0", + "body": "## What's Changed\r\n* add flag to run passthru.updateScript if possible by @figsoda in https://github.com/Mic92/nix-update/pull/115\r\n* prefer versions with the same prefix by @figsoda in https://github.com/Mic92/nix-update/pull/116\r\n* Flakes support by @figsoda in https://github.com/Mic92/nix-update/pull/118\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.10.0...0.11.0", + "reactions": { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/86222384/reactions", + "total_count": 1, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 1, + "eyes": 0 + }, + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/84270725", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/84270725/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/84270725/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.10.0", + "id": 84270725, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4FBd6F", + "tag_name": "0.10.0", + "target_commitish": "master", + "name": "0.10.0", + "draft": false, + "prerelease": false, + "created_at": "2022-11-27T19:46:11Z", + "published_at": "2022-11-27T19:48:01Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.10.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.10.0", + "body": "## What's Changed\r\n* update unstable packages from git to latest branch by @schnusch in https://github.com/Mic92/nix-update/pull/76\r\n* nix_update: use -L to get more logs when building by @Mic92 in https://github.com/Mic92/nix-update/pull/114\r\n* Add diff feature by @figsoda in https://github.com/Mic92/nix-update/pull/113\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.9.0...0.10.0", + "mentions_count": 3 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/83688544", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/83688544/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/83688544/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.9.0", + "id": 83688544, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4E_Pxg", + "tag_name": "0.9.0", + "target_commitish": "master", + "name": "0.9.0", + "draft": false, + "prerelease": false, + "created_at": "2022-11-20T18:27:05Z", + "published_at": "2022-11-20T19:38:46Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.9.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.9.0", + "body": "## What's Changed\r\n* add fetchCrate support by @figsoda in https://github.com/Mic92/nix-update/pull/102\r\n* add support for cargoDeps by @figsoda in https://github.com/Mic92/nix-update/pull/107\r\n* add support for npmDeps by @winterqt in https://github.com/Mic92/nix-update/pull/109\r\n* add changelog feature by @Mic92 in https://github.com/Mic92/nix-update/pull/101\r\n\r\n## New Contributors\r\n* @figsoda made their first contribution in https://github.com/Mic92/nix-update/pull/102\r\n* @winterqt made their first contribution in https://github.com/Mic92/nix-update/pull/109\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.8.0...0.9.0", + "reactions": { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/83688544/reactions", + "total_count": 2, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 2, + "confused": 0, + "heart": 0, + "rocket": 0, + "eyes": 0 + }, + "mentions_count": 3 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/82952431", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/82952431/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/82952431/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.8.0", + "id": 82952431, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4E8cDv", + "tag_name": "0.8.0", + "target_commitish": "master", + "name": "0.8.0", + "draft": false, + "prerelease": false, + "created_at": "2022-11-10T16:59:03Z", + "published_at": "2022-11-14T08:45:11Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.8.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.8.0", + "body": "## What's Changed\r\n* Build npm package by @winterqt in https://github.com/Mic92/nix-update/pull/100\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.7.0...0.8.0", + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/77949943", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/77949943/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/77949943/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.7.0", + "id": 77949943, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4EpWv3", + "tag_name": "0.7.0", + "target_commitish": "master", + "name": "Support new style buildRustPackage und buildGoModule hashes", + "draft": false, + "prerelease": false, + "created_at": "2022-09-21T12:47:55Z", + "published_at": "2022-09-23T06:48:34Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.7.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.7.0", + "body": "## What's Changed\r\n* fix python tests by @zowoq in https://github.com/Mic92/nix-update/pull/97\r\n* add vendorHash by @zowoq in https://github.com/Mic92/nix-update/pull/95 and https://github.com/Mic92/nix-update/pull/96\r\n\r\n## New Contributors\r\n* @zowoq made their first contribution in https://github.com/Mic92/nix-update/pull/96\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.6.0...0.7.0", + "reactions": { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/77949943/reactions", + "total_count": 3, + "+1": 2, + "-1": 0, + "laugh": 0, + "hooray": 0, + "confused": 0, + "heart": 0, + "rocket": 1, + "eyes": 0 + }, + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/70944328", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/70944328/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/70944328/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.6.0", + "id": 70944328, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4EOoZI", + "tag_name": "0.6.0", + "target_commitish": "master", + "name": "0.6.0", + "draft": false, + "prerelease": false, + "created_at": "2022-06-14T09:22:17Z", + "published_at": "2022-06-30T07:45:45Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.6.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.6.0", + "body": "## What's Changed\r\n* fix finding git directories for non-default import paths by @Mic92 in https://github.com/Mic92/nix-update/pull/92\r\n* allow to manually override filename that is patched by @Mic92 in https://github.com/Mic92/nix-update/pull/93\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.5.1...0.6.0", + "mentions_count": 1 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/67250369", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/67250369/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/67250369/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.5.1", + "id": 67250369, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDODpyghM4EAijB", + "tag_name": "0.5.1", + "target_commitish": "master", + "name": "0.5.1", + "draft": false, + "prerelease": false, + "created_at": "2022-05-19T07:54:47Z", + "published_at": "2022-05-19T07:56:58Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.5.1", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.5.1", + "body": "## What's Changed\r\n\r\n* Add --write-commit-message for use in scripting by @schnusch in https://github.com/Mic92/nix-update/pull/77\r\n* Do not stage files when updating by @SuperSandro2000 in https://github.com/Mic92/nix-update/pull/79\r\n* Don't override existing experimental features by @Mic92 in https://github.com/Mic92/nix-update/pull/91\r\n\r\n\r\n**Full Changelog**: https://github.com/Mic92/nix-update/compare/0.5.0...0.5.1", + "mentions_count": 3 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/48656277", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/48656277/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/48656277/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.5.0", + "id": 48656277, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "MDc6UmVsZWFzZTQ4NjU2Mjc3", + "tag_name": "0.5.0", + "target_commitish": "master", + "name": "New sources and better rust support", + "draft": false, + "prerelease": false, + "created_at": "2021-08-26T13:48:04Z", + "published_at": "2021-08-30T07:58:46Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.5.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.5.0", + "body": "- add support for savannah hosted projects. thanks to @schnusch \r\n- add support for sourcehut hosted projects, thanks to @SuperSandro2000 \r\n- add support for updating cargoHash, thanks to @SuperSandro2000 \r\n- In nixpkgs, nix-update now ignores local overlays, thanks to @SuperSandro2000 \r\n- cargo hashes and go vendor hashes cannot be updated even if the version has not changed", + "reactions": { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/48656277/reactions", + "total_count": 4, + "+1": 0, + "-1": 0, + "laugh": 0, + "hooray": 2, + "confused": 0, + "heart": 0, + "rocket": 2, + "eyes": 0 + }, + "mentions_count": 2 + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/41215841", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/41215841/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/41215841/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.4.0", + "id": 41215841, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "MDc6UmVsZWFzZTQxMjE1ODQx", + "tag_name": "0.4.0", + "target_commitish": "master", + "name": "More features.", + "draft": false, + "prerelease": false, + "created_at": "2021-04-10T05:16:39Z", + "published_at": "2021-04-10T05:18:41Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.4.0", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.4.0", + "body": "New features:\r\n- `--version=unstable` will include all versions\r\ncontaining '-' and '+' from being considered valid.\r\nAs per SemVer, these are the separators for unstable\r\nversions (i.e. \"-RC2\", \"+abcdef\" suffixes).\r\n- `--review` flag can be used to initiate a run of\r\n[nixpkgs-review](https://github.com/Mic92/nixpkgs-review), which will ensure all\r\ndependent packages can be built.\r\n- In order to ensure consistent formatting, the `--format` flag will invoke\r\n[nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt).\r\n\r\nBugfixes:\r\n- nix-update now works if checkMeta is enabled in `~/.nixpkgs/config`" + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/36174681", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/36174681/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/36174681/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.3.2", + "id": 36174681, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "MDc6UmVsZWFzZTM2MTc0Njgx", + "tag_name": "0.3.2", + "target_commitish": "master", + "name": "Support new nix cli syntax", + "draft": false, + "prerelease": false, + "created_at": "2021-01-09T10:22:12Z", + "published_at": "2021-01-09T10:23:29Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.3.2", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.3.2", + "body": "nixUnstable now moved hash conversion functions to the `hash` subcommand." + }, + { + "url": "https://api.github.com/repos/Mic92/nix-update/releases/36002011", + "assets_url": "https://api.github.com/repos/Mic92/nix-update/releases/36002011/assets", + "upload_url": "https://uploads.github.com/repos/Mic92/nix-update/releases/36002011/assets{?name,label}", + "html_url": "https://github.com/Mic92/nix-update/releases/tag/0.3.1", + "id": 36002011, + "author": { + "login": "Mic92", + "id": 96200, + "node_id": "MDQ6VXNlcjk2MjAw", + "avatar_url": "https://avatars.githubusercontent.com/u/96200?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Mic92", + "html_url": "https://github.com/Mic92", + "followers_url": "https://api.github.com/users/Mic92/followers", + "following_url": "https://api.github.com/users/Mic92/following{/other_user}", + "gists_url": "https://api.github.com/users/Mic92/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Mic92/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Mic92/subscriptions", + "organizations_url": "https://api.github.com/users/Mic92/orgs", + "repos_url": "https://api.github.com/users/Mic92/repos", + "events_url": "https://api.github.com/users/Mic92/events{/privacy}", + "received_events_url": "https://api.github.com/users/Mic92/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "MDc6UmVsZWFzZTM2MDAyMDEx", + "tag_name": "0.3.1", + "target_commitish": "master", + "name": "Fix unbound variable", + "draft": false, + "prerelease": false, + "created_at": "2021-01-02T22:38:50Z", + "published_at": "2021-01-05T15:29:14Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/Mic92/nix-update/tarball/0.3.1", + "zipball_url": "https://api.github.com/repos/Mic92/nix-update/zipball/0.3.1", + "body": "Thanks to @petabyteboy " + } +] diff --git a/tests/test_github.py b/tests/test_github.py index 7911fab..7a3978e 100644 --- a/tests/test_github.py +++ b/tests/test_github.py @@ -1,6 +1,7 @@ import subprocess - +import os import conftest +import pytest from nix_update import main @@ -34,3 +35,36 @@ def test_main(helpers: conftest.Helpers) -> None: assert version in commit assert "github" in commit assert "https://github.com/sharkdp/fd/compare/v8.0.0...v" in commit + +def test_fallback(helpers: conftest.Helpers) -> None: + with helpers.testpkgs(init_git=True) as path: + monkeypatch = pytest.MonkeyPatch() + monkeypatch.setenv("GITHUB_TOKEN", "invalid_token") + main(["--file", str(path), "--commit", "github"]) + version = subprocess.run( + [ + "nix", + "eval", + "--raw", + "--extra-experimental-features", + "nix-command", + "-f", + path, + "github.version", + ], + check=True, + text=True, + stdout=subprocess.PIPE, + ).stdout.strip() + assert tuple(map(int, version.split("."))) >= (8, 5, 2) + commit = subprocess.run( + ["git", "-C", path, "log", "-1"], + text=True, + stdout=subprocess.PIPE, + check=True, + ).stdout.strip() + print(commit) + assert version in commit + assert "github" in commit + assert "https://github.com/sharkdp/fd/compare/v8.0.0...v" in commit +