Skip to content

refactor: drop the per-train adoption issue from devkit-upgrade - #1408

Merged
c-vigo merged 2 commits into
devfrom
refactor/1405-drop-adoption-issue
Aug 10, 2026
Merged

c-vigo merged 2 commits into
devfrom
refactor/1405-drop-adoption-issue

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

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 devkit-upgrade: no-diff dispatch strands the adoption issue it created #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

@c-vigo
c-vigo enabled auto-merge August 10, 2026 14:09
@c-vigo
c-vigo merged commit 47572fe into dev Aug 10, 2026
13 checks passed
@c-vigo
c-vigo deleted the refactor/1405-drop-adoption-issue branch August 10, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant