Repository navigation
feat: changelog entries for devkit adoption PRs - #1407
Merged
Merged
Conversation
c-vigo
enabled auto-merge
August 10, 2026 14:04
c-vigo
added a commit
that referenced
this pull request
Aug 10, 2026
## Summary The devkit-upgrade workflow no longer creates, reuses, or garbage-collects a per-train adoption issue — adoption PRs become bot PRs exactly like Renovate's, with the PR as the traceable artifact and the changelog entry (#1404 / PR #1407) linking it. Motivation (live evidence): on gitflow consumers the dev-targeted `Closes #N` never auto-closes, so every train strands an open issue (e.g. vig-os/commit-action#140, still open after its PR merged). The #1347 cleanup step existed only to garbage-collect issues the workflow itself created. Changes in `assets/workspace/.github/workflows/devkit-upgrade.yml`: - "Find or create the adoption issue" step and the entire #1347 no-diff cleanup step removed — a no-diff run now strands nothing by construction - Branch: `chore/devkit-<train-suffix>` (the branch guard explicitly allows the issue-less `chore/<summary>` shape; still keyed on the train so rc → final reuse the same branch/PR) - Staging commit: `chore: adopt devkit X.Y.Z` with no `Refs:` line (`chore` is exempt; hooks still validate in the project shell) - PR body: links the devkit release notes instead of an auto-close marker - Token mint: `permission-issues: write` dropped (three-permission least-privilege mint); preflight error message and header docstring updated ## Rollout notes - Takes effect one train after shipping (the workflow runs from the consumer's base branch) - One-time migration: close adoption issues left open by earlier trains on the consumers (commit-action#140 et al.) ## Verification - TDD: failing tests committed first (`880c7d32`), workflow refactor after (`cf47f622`); 18/18 in `test_workflow_devkit_upgrade.py` incl. new `test_no_adoption_issue_lifecycle` (no `gh issue`, no `Refs:`/auto-close markers, chore-shape branch, release-notes link) and the tightened least-privilege mint assertion - `just precommit` (all files), 695 pytest (vig-utils + workflow/scaffold/transform/model), full bats — all green - `docs/issues/*.md` mentions of the old flow are frozen historical records and deliberately untouched Closes #1405
3 tasks
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
Adoption PRs opened by the devkit-upgrade workflow now get a
CHANGELOG.mdentry, exactly like Renovate PRs (option B from the design discussion on #1404):vig-utils:renovate-changelog-prbranches on the PR title —chore: adopt devkit X.Y.Z[-rcN]produces- **Adopt vigOS devkit X.Y.Z** ([#PR](…)) — [release notes](…)at the top of## Unreleased→### Changed, via the existing insertion helper (dedup on the PR link). The body is never fed through the Renovate table parser. The CLI also no-ops instead of crashing whenCHANGELOG.mdis absent (trunk consumers).renovate-changelog-build.yml: the author filter acceptsvigos-devkit-upgrade[bot]alongsiderenovate[bot]. Workflow names are deliberately unchanged (aworkflow_runrename has a default-branch transition hazard). Devkit's own de-coupled copy (Migrate devkit-own sync-main-to-dev.yml off the container/resolve-image pattern #996) is untouched — devkit never receives adoption PRs.renovate-changelog-commit.yml(root + manifest-derived scaffold): commit message generalized todocs(changelog): add unreleased entry for PR N.rc → final force-updates wipe the changelog commit, but the resulting
synchronizeevent re-runs the build (sender guard only excludescommit-action-bot[bot]), so the entry is re-added with the new version.Verification
dbf2de14), implementation after (22ee7f27); 26/26 intest_renovate_changelog_pr.pyjust precommit(all files), 666 pytest (vig-utils + transforms + scaffold lint/drift), 590 bats — all greenCHANGELOG.md(clean insert, idempotent re-run)Closes #1404