From ecfe0ec144edd9692607f0fc8e48445d67976acd Mon Sep 17 00:00:00 2001 From: zeevdr Date: Sat, 30 May 2026 21:17:15 +0300 Subject: [PATCH] ci: skip pipeline for docs-only PRs via paths-ignore Add paths-ignore to the pull_request trigger so PRs that touch only *.md files or docs/** skip the full pipeline (~10-15 min CI). GitHub marks the required status checks as passing automatically when the workflow is filtered out. Closes #105 --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 099cace..a358a8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,9 @@ # Jobs: lint, typecheck, test (matrix: Node 22/24), examples, integration → check (alls-green gate) # The check job aggregates all results for branch protection. # +# Docs-only PRs (*.md, docs/**, examples/**/README.md) skip the entire workflow via +# paths-ignore; GitHub marks the required status checks as passing automatically. +# # The first job defines YAML anchors (&checkout, &setup-node-22, &install) # on its setup steps; subsequent jobs alias them to avoid repetition. # The test job uses its own setup-node step because the matrix node-version @@ -19,6 +22,10 @@ on: branches: [main] pull_request: branches: [main] + paths-ignore: + - "**/*.md" + - "docs/**" + - "examples/**/README.md" workflow_call: jobs: