Skip to content

feat: lint only changed markdown files in CI#92

Merged
tuxmea merged 3 commits intoOpenVoxProject:masterfrom
miharp:feat/markdownlint-diff-only
Apr 25, 2026
Merged

feat: lint only changed markdown files in CI#92
tuxmea merged 3 commits intoOpenVoxProject:masterfrom
miharp:feat/markdownlint-diff-only

Conversation

@miharp
Copy link
Copy Markdown
Contributor

@miharp miharp commented Apr 25, 2026

Summary

The previous workflow linted all markdown files on every PR. With 38,441 existing lint errors across the repo (see run #24909439672), this made the job permanently red and effectively useless — PRs couldn't be blocked on it so continue-on-error: true was set. This replaces it with a diff-aware approach that lints only files changed in the PR or push, making the job actionable from day one without requiring a bulk fix of the existing codebase first.

  • Replaces blanket **/*.{md,markdown} glob with a step that computes the diff and lints only changed .md/.markdown files
  • Skips linting entirely if no markdown files changed
  • Removes continue-on-error: true — linting now fails the job on violations
  • Removes the modulesync-managed header since this file is now maintained directly

Test plan

  • Open a PR with a changed .md file — markdownlint should run on that file only
  • Open a PR with no .md changes — job should skip linting and print "No changed Markdown files to lint."
  • Introduce a markdown lint violation in a changed file — job should fail

miharp added 3 commits April 25, 2026 06:58
Replaces the blanket glob lint of all markdown with a step that
computes the PR/push diff and lints only changed .md/.markdown files.
Removes the modulesync-managed header since this file is now maintained
directly.

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

Signed-off-by: Michael Harp <mike@mikeharp.com>
Signed-off-by: Michael Harp <mike@mikeharp.com>
Signed-off-by: Michael Harp <mike@mikeharp.com>
@miharp miharp marked this pull request as ready for review April 25, 2026 11:08
@miharp miharp requested a review from a team as a code owner April 25, 2026 11:08
@tuxmea tuxmea merged commit da155c5 into OpenVoxProject:master Apr 25, 2026
3 checks passed
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