renovate: its pull requests merge themselves and note themselves, hold what is no update #88
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate-tidy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Renovate's pull requests in this repository now merge themselves on green checks, and none cuts a release. Built on what mikluko/kuberex already does with this Renovate (platform forgejo,
allowedCommands^go tool changelog (append|release), roomcity in the filter): nothing changes in saraksh/kube.Automerge.
automerge: truewithplatformAutomerge: false: Renovate merges on a run that finds every check green; Forgejo's own automerge is not used, since with no required checks on the branch it may merge before they finish, and Renovate promises only of its own. Squash. The bot's rights are the ones it has (it opens the pull requests); there is no branch protection to arrange. Held back from it: majors as a class stay enabled and open as pull requests, with their note andautomerge: false, so that someone reads them. Disabled are only the updates with a written reason, each beside its rule in thedescriptionfield of renovate.json: connect v2 and goldmark v2 (a new module path that is work of its own: a bare require nothing imports is no update),github.com/afrase/acp-go(does not build with claudeacp, to be replaced by spec-bb1.38) and thegodirective (it moves with the Dockerfile's Go, by hand). The gc digest in the Dockerfile hasautomerge: false: its pull request opens, notes itself and is read (the owner).The note, with no release.
postUpgradeTasksrunsgo tool changelog append -section=Changed -note 'Updated: <dep> <version>[, ...].'on the branch, so each pull request carries its own line under[Unreleased], written by Renovate, naming no version: the release workflow acts only on a newest entry that names a version with no tag, so a merge cannot release. The note is in single quotes with no backtick (a shell would run it).go tool changelogis thetoolof go.mod added here (sarak.sh/mikluko/changelog/v2, the kuberex way, withconstraints.golangthe exact Go of go.mod so that Renovate does not look Go up on GitHub); a move of the tool itself has no note and merges like the rest. Two bumps merged in turn both add a line at the end of### Changed: the second conflicts with the first, and Renovate rebases a conflicted branch from the base and runs the task again, so the note is made anew on the new base; no hand. Thechangelogcheck does not need a note of a pull request (it passes the pull requests that have none), so this is the owner's "make the notes" and not a requirement.Before it merges I could not run Renovate against Forgejo: the config passes
renovate-config-validator --strict, the note's template renders as above with Handlebars for one, two and a digest update, and the command makes the line in CHANGELOG.md when run by hand. How the first pull request merges itself is seen after this lands: #34 and #59 are the first.Also in this branch from before:
postUpdateOptions: ["gomodTidy"], the rules for acp-go and goldmark v2.renovate: tidy go.mod after an update, and hold acp-go until it is replacedto renovate: its pull requests merge themselves and note themselves, hold what is no updateRead at
0ed153c, against the coordinator's three questions. The file is valid, go.mod is tidy, and the changelog command, run by hand in a copy, puts the line at the end of### Changedunder Unreleased and names no version.What the bot can do to main without a human, with this file: merge a minor, patch or digest update of a direct Go module once every check is green, and nothing else.
enabledManagersisgomodandcustom.regex, so Renovate proposes no update of an action, of a workflow or of the Dockerfile's other pins, and a pull request of its own never changes the checks it is merged on; the one custom pattern is gc's, which is held. A self-merged pull request cannot name a version: the command isappend, its text is fixed but for the module paths (this repository's own) and the versions (a Go module's version or a commit's hex, neither of which can hold a quote), and the release workflow finds nothing due in an entry under Unreleased.One thing I do not pass, and it is for the owner more than for the author.
go tool changelogis built from this repository's go.mod, on the branch Renovate has just updated, in Renovate's pod, before any check has run and before anyone has read the update. The tool's build hasgithub.com/yuin/goldmarkin it, a direct requirement that Renovate updates (the first pull request to merge itself would be #34, goldmark 1.8.7), andgolang.org/x/crypto,x/net,x/sysand go-git, which move when something that needs them newer moves. So a release of any of those runs as code beside the forge token of the bot, which can push to every repository it serves, the cluster's among them, with no branch protected. Renovate without this task downloads modules and runs none of them.The note can be had without that: run the tool at a version of its own,
go run sarak.sh/mikluko/changelog/v2/cmd/changelog@v2.2.0 append ..., which builds from the tool's own go.mod and takes nothing from the branch; the tool then need not be atoolof this module, and its thirteen indirect requirements leave go.mod. It needs the allowed command in saraksh/kube's Renovate changed to match, and kuberex has the same exposure today. Until the owner says which he wants, this waits.Small: the description of the changelog tool's own rule says its move "merges itself on green checks like the others, though no check runs the tool"; with the above it would not be in go.mod at all.
Merged on the owner's word, relayed by the coordinator. He was given three ways (the tool run at a version of its own;
go tool changelogas written here, with its cost named as a fresh release of a dependency running with the bot's token; no note by Renovate) and answered "Б. Приемлемо.": the command stays as it is.So that the acceptance stands where the rule lives: the note's command is built from this repository's go.mod on the branch Renovate has just updated, in Renovate's pod, before any check and before anyone has read the update. Its build includes
github.com/yuin/goldmark, which Renovate updates directly, andgolang.org/x/crypto,x/net,x/sysand go-git behind it. A release of any of them runs as code beside the bot's forge token. Known and accepted, here as in kuberex.