Repository navigation
fix(roadmap): implement runs commit hooks on docs and archive - #5928
Merged
dan-petty merged 2 commits intoNov 16, 2026
Merged
Conversation
) The implement Job commits generated documents and the archived change through `_commit_if_changed`, but no commit hook ran on those commits. A hygiene defect in a generated or archived file could reach the pull request without a local check. `_commit_if_changed` now: - checks `git status --porcelain` before running hooks; - runs the trusted commit stage on staged changes when a hook config exists; - commits rewritten files when a fixer hook modifies files; - stops the item with the hook output when the stage fails after rerun; - runs the stage zero times when the checkout holds no change. Closes #4781 Change: `openspec/changes/archive/2026-11-16-4781-implement-runs-commit-hooks-on-docs-and-archive/`
dan-petty
marked this pull request as ready for review
November 16, 2026 03:31
dan-petty
deleted the
fix/4781-implement-runs-commit-hooks-on-docs-and-archive
branch
November 16, 2026 06:00
dan-petty-release Bot
added a commit
that referenced
this pull request
Nov 16, 2026
🤖 I have created a release *beep* *boop* --- ## [0.161.0](v0.160.1...v0.161.0) (2026-11-16) ### Features * **roadmap:** a fix-conflict step settles merge conflicts ([#5930](#5930)) ([cddb8f3](cddb8f3)), closes [#5019](#5019) * **roadmap:** allow bounded path additions in implement plan-request ([#5937](#5937)) ([bcb0c5b](bcb0c5b)) * **roadmap:** surface scoped tests in plan reads ([#5938](#5938)) ([1a3d2b8](1a3d2b8)) ### Bug Fixes * **k8s:** alternatives returns to DeepSeek ([#5934](#5934)) ([dc5e3b6](dc5e3b6)) * **monitoring:** price local savings at the reference model ([#5931](#5931)) ([fc58f9f](fc58f9f)) * **roadmap:** implement runs commit hooks on docs and archive ([#5928](#5928)) ([6cf45d6](6cf45d6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.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.
The implement Job commits generated documents and the archived change through _commit_if_changed, but no commit hook ran on those commits. A hygiene defect in a generated or archived file could reach the pull request without a local check.
Closes #4781
Change:
openspec/changes/archive/2026-11-16-4781-implement-runs-commit-hooks-on-docs-and-archive/