Repository navigation
go-tools: refresh:kernel is versions refresh; go-tools without the cooldown - #267
Merged
Merged
Conversation
go-tools is ours, and a release of it is made to be taken: waiting a week for it to settle guards against nothing. Its releases are tagged v0.<date>.<n> now, so Dependabot can see them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
go-tools' versions refresh does what the task's shell did - bump, commit, push a branch, open the pull request, close the one it supersedes - and is the same command in every repository that proposes a refresh. The branch is named for versions.yaml's sum (refresh/kernel-<sum>) rather than the version, so a set proposed once, closed or not, is still not asked again. The pull request's body is built from the entries' notes, so what the task said to do before merging - boot it, task kernel:build boot:ssh-first - is in the kernel's note now. refresh.yml hands the app's token as GITHUB_TOKEN too: refresh takes it before GH_TOKEN, and the workflow sets it to the run's own, which can neither open the pull request nor start its checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Rolls out go-tools v0.20261118.5's
versions refreshhere.v0.<date>.<n>, so Dependabot's gomod update can move it the week a release is made. go.mod's go-tools is left as it is: Dependabot moving it is the check that this works.gh pr create, close superseded) becomesversions refresh -propose -label kernel kernel. The pull request's body is now built from the entries' notes, so what the task's body said - kernel.yml builds it; before merging, boot it withtask kernel:build boot:ssh-first- is in versions.yaml's kernel note. refresh.yml's step now passes the app's token asGITHUB_TOKENas well asGH_TOKEN:versions refreshtakesGITHUB_TOKENfirst, and the workflow sets it to the run's own token at the top, which hascontents: readand would start no checks on the pull request.GH_TOKENstays for the push, which goes throughgh auth setup-git.refresh:apkis unchanged.The branch name changes from
refresh/kernel-<version>torefresh/kernel-<first 12 hex of versions.yaml's sha256>. "Proposed already" is now decided by the file's sum, and still covers closed pull requests. An open pull request with the old naming is closed as superseded by the next refresh that proposes something, because the match is on therefresh/kernel-prefix. A version proposed and closed under the old naming could be proposed once more under the new one.Checked:
go tool task lintandgo tool task testpass. In a throwaway clone of this branch,go run github.com/spin-stack/go-tools/cmd/versions@v0.20261118.5 refresh kernel(without -propose) printed "Every entry is at its newest.", because the kernel is at 7.3.5, and changed nothing.versions refresh kernelrun throughgo tool taskgave the same result, so the command is on the task's PATH. The first real-proposerun is refresh.yml's next scheduled one.🤖 Generated with Claude Code