From e85db903a2851c9ea22eec3b258b67acb42194fb Mon Sep 17 00:00:00 2001 From: zhanghui Date: Fri, 24 Jul 2026 16:12:59 +0800 Subject: [PATCH] ci(docs): run docs check on every PR so its required check reports The Docs workflow (`links` job) is a required status check, but its trigger was `paths:`-filtered to markdown/docs files. A PR touching only code never triggered it, so the required check never reported and the merge box stayed BLOCKED forever waiting for a status that would never arrive. Drop the `paths:` filter: `make docs-check` validates the whole doc tree independent of the PR diff and runs in seconds, so it is cheap to report on every PR. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/docs.yml | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0d23245..f9cf3a3 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,29 +1,14 @@ name: Docs +# Runs on EVERY pull request / push to main — no `paths:` filter. When `links` +# is a required status check, path-filtering it silently blocks code-only PRs: +# the workflow is skipped, the required check never reports, and the merge box +# waits forever. `make docs-check` validates the whole doc tree regardless of +# what a PR touched and takes only seconds, so it is cheap to always report. on: pull_request: - paths: - - "**/*.md" - - ".github/ISSUE_TEMPLATE/**" - - ".github/PULL_REQUEST_TEMPLATE.md" - - ".github/workflows/docs.yml" - - ".claude/skills/**/*.md" - - "CLAUDE.md" - - "CONTRIBUTING.md" - - "scripts/check_docs.py" - - "scripts/check_github_contributor_docs.py" push: branches: [main] - paths: - - "**/*.md" - - ".github/ISSUE_TEMPLATE/**" - - ".github/PULL_REQUEST_TEMPLATE.md" - - ".github/workflows/docs.yml" - - ".claude/skills/**/*.md" - - "CLAUDE.md" - - "CONTRIBUTING.md" - - "scripts/check_docs.py" - - "scripts/check_github_contributor_docs.py" permissions: contents: read