Repository navigation
Conversation
tools/catalog.py updates lists each entry whose own repo has a newer final release (the zip named as the listed one, or <id>-<version>.zip; withdrawn versions skipped); --apply writes the entry from that zip, as add does. The Catalogue updates workflow runs it hourly and opens one pull request per version with the catalogue app's token, so the Catalogue check runs and the existing auto-merge merges a pure bump. Authors no longer open a PR per release, and head units see it on their next catalogue check (they read main), with no HMG-API release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AwsomeFox
added a commit
that referenced
this pull request
Nov 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 30, 2026
VysseCodes
reviewed
Nov 30, 2026
VysseCodes
left a comment
Collaborator
There was a problem hiding this comment.
Three workflow fixes:
- Branch match: the regex that closes older bump PRs,
^catalog-update/$id-[0-9], also matches a mod named<id>-2. Please match the exact id and a version (e.g. anchor the version part fully). - Leftover files: files left untracked after a failed
--applyget committed into the next PR's branch. Please addgit clean -fdq catalog maps(or similar) before each mod. - Token:
gh pr listruns onGITHUB_TOKEN, which has no pull-requests permission here. Use the app token, or addpull-requests: read.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…token for listing PRs Review: - Older version PRs are closed only when the branch is catalog-update/<this id>-<x.y.z> exactly, so a mod named <id>-2 is never touched (checked in shell, not a regex). - Each mod starts from a clean main (checkout -f, git clean catalog maps): nothing a failed --apply left behind gets into the next mod's PR. - gh pr list uses the app token (GITHUB_TOKEN has no pull-requests permission here). - The list is read on fd 3, so no command in the loop can consume it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AwsomeFox
added a commit
that referenced
this pull request
Nov 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
All three done in 6571e50:
The list is also read on its own fd, so nothing in the loop can consume it. |
6 of 67 tasks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ase) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the one hand step left in releasing a catalogued mod: opening the catalogue PR for each new version.
What it does
tools/catalog.py updateslists each catalogue entry whose own repo has a newer final release. It takes the zip named as the listed one (or<id>-<version>.zip/<id>-v<version>.zip), and skips versions incatalog/withdrawn.jsonand pre-releases.--apply <id>downloads that zip and writes the entry from it, exactly asadddoes: signature checked, and the author key must stay the same..github/workflows/catalog-update.ymlruns it hourly (and on demand). It opens one PR per version (catalog-update/<id>-<version>) with the catalogue app's token, so the Catalogue check runs on it, and the existing Catalogue auto-merge merges it if it only bumps the version. Anything else waits for a maintainer, as now.main, so a merged bump reaches owners on their next catalogue check: no HMG-API release needed.Tested
tools/catalog-test.sh: all ok, with 13 new checks. They cover the newer final over a pre-release, withdrawn skipped, no matching zip,--applygiving an entry thatbumpaccepts, a zip by another key refused, nothing newer, and version ranges as the engine reads them.adb1.0.0 → 1.0.1,hmgapi-comfort1.1.8 → 1.1.11 andwireless-carplay-aa2.1.0 → 2.2.0.--apply adbon a scratch copy changed only version, download and sha256: a pure bump.main. After merging, run it once from the Actions tab (workflow_dispatch). It should open those three PRs.Needs the catalogue app (
vars.CATALOG_APP_CLIENT_ID,secrets.CATALOG_APP_PRIVATE_KEY, already used by the auto-merge) to have contents and pull-requests write, which it has for the auto-merge.On #423 (
catalog/engine), forwithdrawn.json.🤖 Generated with Claude Code