add decisions-validate pre-push gate
One new Makefile target (tools/scripts/plan decisions validate) wired as a prerequisite of push-check so malformed records fail locally before they reach a reviewer. Parser dry-run is cheap (~100ms) and stays within the <90s pre-push budget. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -50,6 +50,9 @@ heading, and (b) bumping `project.yaml` `version:` in the same commit.
|
||||
[`D-040`](decisions/process.md#d-040-python-stopgap-under-toolsscriptsplan)
|
||||
/ [`R-011`](decisions/rejected.md#r-011-permanent-stopgap).
|
||||
|
||||
- `make decisions-validate` — cheap parser dry-run wired into
|
||||
`push-check`. Catches malformed records before push.
|
||||
|
||||
### Removed
|
||||
|
||||
- `docs/ADRs/` directory — content lifted into `decisions/` as D/R
|
||||
|
||||
@@ -160,8 +160,12 @@ security: ## Dart advisory review + ptyc source review (manual — no floating d
|
||||
|
||||
# -- pre-push gate -------------------------------------------------------
|
||||
|
||||
.PHONY: decisions-validate
|
||||
decisions-validate: ## Parser dry-run over decisions/*.md (cheap pre-push gate).
|
||||
tools/scripts/plan decisions validate
|
||||
|
||||
.PHONY: push-check
|
||||
push-check: test test-a11y ## Pre-push gate: fast unit + widget + golden + a11y (<90s).
|
||||
push-check: decisions-validate test test-a11y ## Pre-push gate: decisions + fast unit + widget + golden + a11y (<90s).
|
||||
|
||||
.PHONY: hooks
|
||||
hooks: ## Install the repo's git hooks (points core.hooksPath at .githooks/).
|
||||
|
||||
Reference in New Issue
Block a user