Repository navigation
Conversation
…ases tools/release lists the plugins whose image changed since their last tag, with their next version from the Conventional Commits that reach the image, and writes those versions to their CHANGELOG.md. The release-pr workflow keeps one pull request of that, from release/plugins, as the release App; once merged, it tags each version at the top of a changelog that has no tag yet, and each tag publishes the plugin's image through the release workflow. What changes an image is narrower than what CI tests, so affected gets Release and Scope: a change to tests, to plugin.yaml, or to the harness but .dockerignore and .tool-versions changes no image. Compute is unchanged; its code-change analysis moves into build.code, which both use. Before 1.0.0, a breaking change moves the minor version, as a feature does; after a pre-release, the next version is its release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TcfE6PB6wKbbToXs5fq58g
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.
Summary
Like release-please, but it decides what to release from the import graph, as CI does, not from file paths. A change to
internal/releases the plugins that build it.tools/release(new):release plan | prepare | tagsplugins/<name>/v*.affected.Release). If it did, it takes the next version from the Conventional Commits that reach the image (affected.Scope).preparewrites that version, with those commits, toplugins/<name>/CHANGELOG.md, and writes the title and body of the pull request.0.1.0and "First release."CHANGELOG.mdthat has no tag yet. A version that comes before the plugin's last release is an error..github/workflows/release-pr.yml(new): runs on each push to main, as the release App (thereleaseenvironment, main only).release tagslists, on the pushed commit, through the API. Each tag startsrelease.yml(ci: release each plugin as its container image, from a tag #20), which publishes the image.release prepare, commits the changelogs as the App, force-pushes them torelease/plugins, and opens or updates the pull request. With nothing to release, it closes the pull request.The App pushes the branch, so CI runs on the pull request. The pull request changes only Markdown, so
gatepasses without building anything.affected:ReleaseandScope. What changes an image is narrower than what CI tests: a change to tests,testdata/,plugin.yaml, or the harness changes no image..dockerignoreand.tool-versionsare the exceptions: they change every image.Computebehaves as before. Its analysis of which code changed moves intobuild.code, which both use.Versions
!,BREAKING CHANGE:)featfix,chore(deps), …)0.2.0-rc.10.2.0To release another version (a pre-release, or 1.0.0), edit the first heading of the plugin's
CHANGELOG.mdin the release pull request before merging it. To leave a plugin out, revert itsCHANGELOG.mdthere. The README covers this in its Releases section.Verified
Go 1.27.4 could not be downloaded in this session, so the tests below ran with Go 1.24, in a copy of
tools/with its go.mod lowered and no dependencies. The code uses nothing newer.go vetandgo test -racepass foraffectedandrelease:Compute;Release(tests, testdata, plugin.yaml, CI and Markdown change no image; code, a Dockerfile, a dependency and.dockerignoredo) andScope;release plan,prepareandtags, run end to end on a sample repository, write the changelog, the body and the title, and list the tag.gofmtandactionlint(with shellcheck) pass.Not verified
release.yml. GitHub sends a push event for refs created that way, but this has not been tried in this repository.After merging
The first run opens a release pull request for all three plugins at 0.1.0. None has a tag yet. If you want to release only ffmpeg first, revert the other two
CHANGELOG.mdfiles in that pull request just before merging it.create-github-app-tokendeprecatesapp-idin favour ofclient-id. This PR usesapp-id(vars.RELEASE_APP_ID), which works as it is. To move toclient-id, add the App's Client ID as a variable and change one line.Generated by Claude Code