Skip to content

Commit f9aabaf

Browse files
Fix tagged commits listing for non-master branches (#123)
1 parent ee27b24 commit f9aabaf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/kup/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
GithubPackage('runtimeverification', 'kup', PackageName('kup')),
6060
GithubPackage('runtimeverification', 'k', PackageName('k')),
6161
GithubPackage('runtimeverification', 'avm-semantics', PackageName('kavm')),
62-
GithubPackage('runtimeverification', 'evm-semantics', PackageName('kevm')),
62+
GithubPackage('runtimeverification', 'evm-semantics', PackageName('kevm'), branch='release'),
6363
GithubPackage('runtimeverification', 'plutus-core-semantics', PackageName('kplutus')),
6464
GithubPackage('runtimeverification', 'mir-semantics', PackageName('kmir')),
6565
GithubPackage('runtimeverification', 'kontrol', PackageName('kontrol')),
@@ -339,8 +339,9 @@ def list_package(
339339
if not tags.ok:
340340
rich.print('❗ Listing versions is unsupported for private packages accessed over SSH.')
341341
return
342+
branch = f'?sha={listed_package.branch}' if listed_package.branch else ''
342343
commits = requests.get(
343-
f'https://api.github.com/repos/{listed_package.org}/{listed_package.repo}/commits', headers=auth
344+
f'https://api.github.com/repos/{listed_package.org}/{listed_package.repo}/commits{branch}', headers=auth
344345
)
345346
tagged_releases = {t['commit']['sha']: t for t in tags.json()}
346347
all_releases = [

0 commit comments

Comments
 (0)