Skip to content

Fix CI link check failing when PR deletes docs#6858

Merged
kimsauce merged 2 commits into
mainfrom
fix/pr-yml-diff-filter-deleted-files
Jul 1, 2026
Merged

Fix CI link check failing when PR deletes docs#6858
kimsauce merged 2 commits into
mainfrom
fix/pr-yml-diff-filter-deleted-files

Conversation

@kimsauce

@kimsauce kimsauce commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Purpose of this pull request

Fixes a CI failure in the pr.yml "Check Markdown/MDX links for disallowed characters" step when a PR deletes a doc.

git diff --name-only includes deleted files in its output, but awk then fails with No such file or directory because those files no longer exist in the checkout.

Adding --diff-filter=d excludes deleted files from the diff while preserving the existing "check changed files only" behavior.

Select the type of change

  • Minor Changes - Typos, formatting, slight revisions
  • Update Content - Revisions, updating sections
  • New Content - New features, sections, pages, tutorials
  • Site and Tools - .clabot, version updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

Ticket (if applicable)

Adding --diff-filter=d excludes deleted files from git diff output so
awk no longer fails with "No such file or directory" on removed docs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kimsauce kimsauce self-assigned this Jun 30, 2026
@cla-bot cla-bot Bot added the cla-signed Contributor approved, listed in .clabot file label Jun 30, 2026
@kimsauce kimsauce added the doc:site tech Site/tool maintenance, dependencies, updates label Jun 30, 2026

@vfalconisumo vfalconisumo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kimsauce kimsauce enabled auto-merge July 1, 2026 14:56
@kimsauce kimsauce added this pull request to the merge queue Jul 1, 2026
Merged via the queue into main with commit 42de853 Jul 1, 2026
5 checks passed
@kimsauce kimsauce deleted the fix/pr-yml-diff-filter-deleted-files branch July 1, 2026 15:07
shauryasethi-sumo pushed a commit that referenced this pull request Jul 6, 2026
Adding --diff-filter=d excludes deleted files from git diff output so
awk no longer fails with "No such file or directory" on removed docs.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed Contributor approved, listed in .clabot file doc:site tech Site/tool maintenance, dependencies, updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants