Run the anchored-demo checker automatically instead of relying on
authors to invoke `just check-demos` by hand.
- rewrite checker in POSIX sh (no bashisms) so one script serves local
shells, the pre-commit hook, and the minimal release-tools CI image;
shellcheck-clean, verified under sh
- .tekton/tasks/openspec-validate.yaml: add a check-demos step to the
existing openspec-validate task (same image/workspace/trigger)
- .tekton/openspec-validate-{pr,push}.yaml: also fire when the checker
script changes
- .pre-commit-config.yaml: local check-demos hook, scoped to
openspec spec/demo files and the script itself
15 lines
493 B
YAML
15 lines
493 B
YAML
repos:
|
|
- repo: https://github.com/gitleaks/gitleaks
|
|
rev: v8.30.1
|
|
hooks:
|
|
- id: gitleaks
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: check-demos
|
|
name: check anchored spec demos
|
|
description: Validate anchored Showboat demos against their specs.
|
|
entry: scripts/ci/check-spec-demo-anchors.sh
|
|
language: script
|
|
pass_filenames: false
|
|
files: ^(openspec/.*\.(spec|demo)\.md|openspec/.*/(spec|demo)\.md|scripts/ci/check-spec-demo-anchors\.sh)$
|