Skip to content

ci: make docs check always run so it can gate merges#12

Merged
ncipollina merged 1 commit into
mainfrom
ci/require-docs-check
Jul 21, 2026
Merged

ci: make docs check always run so it can gate merges#12
ncipollina merged 1 commit into
mainfrom
ci/require-docs-check

Conversation

@ncipollina

Copy link
Copy Markdown
Contributor

Summary

  • Removes the paths: filter from the docs workflow's pull_request trigger — a path-filtered check can never safely become a required branch-protection check, since it never posts a status (and thus blocks merge forever) on PRs that don't touch the filtered paths
  • Names the job's check docs (was the bare, easily-confused-with-other-workflows build)
  • Adds an in-job diff check that skips the real docsite build steps (fast success) when the PR doesn't touch docsite/ or this workflow file — so unrelated PRs still get a fast green check instead of a full docs rebuild
  • Push trigger keeps its existing path filter (unaffected — deploy timing, not merge gating)

Paired with LayeredCraft/.github#3 (adds docs to this repo's required status checks). Both need to merge for the gate to take effect — this PR alone is a no-op for branch protection.

Test plan

🤖 Generated with Claude Code

Previously the docs job's pull_request trigger was path-filtered to
docsite/**, which means it can never be a branch-protection required
check without permanently blocking merges on PRs that don't touch
docsite (a required check that never runs never reports success).

Removes the path filter from the pull_request trigger, renames the
job's check to "docs" for clarity, and adds an in-job diff check that
skips the real build steps (fast no-op success) when the PR doesn't
touch docsite/ or this workflow file. The job always completes and
reports a real status either way, which is what branch protection
needs to require it safely. Push trigger keeps its path filter since
it's unrelated to merge gating.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions github-actions Bot added the type: ci CI/CD changes label Jul 21, 2026
ncipollina added a commit to LayeredCraft/.github that referenced this pull request Jul 21, 2026
* feat: require docs check on sharp-mud, via per-repo override

sharp-mud's docs workflow now always runs on PRs (skipping the real
build fast when irrelevant) specifically so it's safe to require —
see LayeredCraft/sharp-mud#12. Org-default contexts only list
"build / build", so this repo needs its own override to add "docs"
without affecting every other repo.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* fix: shrink sharp-mud override to just the added context

safe-settings merges required_status_checks.contexts across org/repo
levels by default (org-level contexts fold into repo-level, not
replaced), so repeating build / build and the whole rest of the
protection block here was redundant duplication of settings.yml —
only the net-new "docs" context belongs in this file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
@ncipollina
ncipollina merged commit 637bd52 into main Jul 21, 2026
7 checks passed
@ncipollina
ncipollina deleted the ci/require-docs-check branch July 21, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: ci CI/CD changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant