Skip to content

CI skips the build for pull requests that change only Markdown - #330

Merged
valentinozegna merged 2 commits into
mainfrom
claude/hopeful-bohr-mf56z7
Nov 25, 2026
Merged

valentinozegna merged 2 commits into
mainfrom
claude/hopeful-bohr-mf56z7

Conversation

@valentinozegna

Copy link
Copy Markdown
Contributor

Summary

A pull request that changes only Markdown now skips the build job, so a docs PR is mergeable in seconds. GitHub counts a skipped job as passed, which keeps the required build check satisfied.

Changes

  • ci.yml: a new changes job lists the files the PR changes; build is skipped when every one is a .md file
  • Markdown under plugins/ and docs/decision-tables/ still builds, because the tests check those files
  • Release calls are not pull requests and always build
  • If changes itself fails, build still runs, so a broken detector cannot pass the required check
  • AGENTS.md: the CI/CD section states the rule

Comment-only changes to code still run the full build.

Related Issues

None.

Decision tables

Build config; no runtime logic.

Verification

SKIP: CI config only, no runtime surface. The file-matching logic was run locally against seven file lists:

false <- README.md
false <- README.md docs/cli.md
true <- README.md src/a.ts
true <- plugins/pcb-lens/skills/pcb-lens/SKILL.md
true <-
true <- src/x.mdx
true <- .github/workflows/ci.yml

This PR changes a workflow file, so its own run exercises the "build runs" path. The "build skipped" path first runs on the next Markdown-only PR.

Testing

  • Added/updated tests (none: CI config)
  • npm run type-check passes (CI)
  • npm run lint passes (CI)
  • npm test passes (CI)

Checklist

  • Code follows project style guidelines
  • Self-reviewed the code
  • Added documentation if needed

Generated by Claude Code

@valentinozegna
valentinozegna enabled auto-merge (squash) November 25, 2026 03:19
@valentinozegna
valentinozegna merged commit 829716e into main Nov 25, 2026
3 checks passed
@valentinozegna
valentinozegna deleted the claude/hopeful-bohr-mf56z7 branch November 25, 2026 03:21
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.

2 participants