Skip to content

feat: add reusable pre-commit autoupdate workflow#94

Merged
j7an merged 4 commits into
mainfrom
feat/pre-commit-autoupdate-reusable
Jun 28, 2026
Merged

feat: add reusable pre-commit autoupdate workflow#94
j7an merged 4 commits into
mainfrom
feat/pre-commit-autoupdate-reusable

Conversation

@j7an

@j7an j7an commented Jun 27, 2026

Copy link
Copy Markdown
Owner

What

Adds a reusable pre-commit-autoupdate.yml workflow for sibling repos.

  • centralizes weekly/manual pre-commit hook update PR creation
  • recommends Release Bot GitHub App auth when required checks exist
  • keeps a deliberate GITHUB_TOKEN fallback with a generated stuck-PR caveat
  • supports optional pre_commit_version, alternate config_path, path-restricted PRs, signed commits, and branch cleanup
  • adds preflight behavior tests, workflow contract tests, inline-sync coverage, and public docs

Fixes #90.

Verification

  • rtk bats tests/ passed: 286 tests, with the known pre-existing BW01 warning from tests/lint-workflows.bats
  • rtk ./scripts/check-inline-sync.sh passed
  • rtk ./scripts/lint-workflow-call.sh passed
  • rtk ./scripts/lint-workflows.sh passed
  • rtk git diff --check origin/main...HEAD passed
  • final whole-branch review found no blocking issues

Follow-up

Pre-migration parity gate: from the same sibling repo/config state, compare the diff from uv run pre-commit autoupdate with the diff from uvx pre-commit autoupdate. This may require network access and is intentionally not a standing Bats test.

@j7an j7an merged commit 040ea55 into main Jun 28, 2026
7 checks passed
@j7an j7an deleted the feat/pre-commit-autoupdate-reusable branch June 28, 2026 03:47
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.

Add a reusable pre-commit autoupdate workflow for sibling repos

1 participant