Skip to content

feat: docs-check.yml, docsync and otfabric-policy on every push - #17

Merged
boeboe merged 3 commits into
mainfrom
feat/docs-check
Nov 7, 2026
Merged

boeboe merged 3 commits into
mainfrom
feat/docs-check

Conversation

@boeboe

@boeboe boeboe commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Adds the reusable docs-check.yml: docsync v0.1.0 checks that a module's documents agree with its code, and otfabric-policy runs as in go-ci.yml. It is cheap and has no path filter, so it reports on Markdown-only pushes, which the heavy workflows will skip with paths-ignore: ['**/*.md'].

  • mode: enforce (default) or warn; a docsync error (exit 2+) fails in both.
  • .github/workflows/README.md: a section on Markdown-only changes, the caller template, inputs, and the rule that branch protection requires Docs/Policy, never a path-filtered workflow.
  • Selftest: docs-check-pass (enforce, policy on) and docs-check-warn (a fixture with one finding, warn mode).

Not in this PR: SAST was removed on main after v3.4.0 (#16). v3.4.0's go-ci.yml calls ./.github/workflows/sast.yml, which resolves in the caller's repository, so no external caller of v3.4.0 starts (seen on otfabric/docsync). The next tag, v3.5.0, carries that removal too.

🤖 Generated with Claude Code

boeboe and others added 2 commits November 7, 2026 08:10
A reusable workflow for the check that runs when the heavy workflows skip
a Markdown-only change: docsync (enforce or warn) and otfabric-policy. The
workflows README documents paths-ignore for the heavy workflows and why
branch protection must require the Docs check. Two selftest cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
go run turns every exit code into 1, and GitHub's bash runs with -e, so
the warn mode failed. docs-check.sh runs the step on the fixtures: enforce
fails on a finding, warn passes, a bad mode exits 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boeboe
boeboe merged commit 4cd35fa into main Nov 7, 2026
32 checks passed
@boeboe
boeboe deleted the feat/docs-check branch November 7, 2026 07:38
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