Skip to content

Lint only files that still exist, so deleting a page doesn't fail the check - #276

Merged
kcmartin merged 1 commit into
mainfrom
vale-deleted-files
Oct 22, 2026
Merged

kcmartin merged 1 commit into
mainfrom
vale-deleted-files

Conversation

@kcmartin

Copy link
Copy Markdown
Collaborator

Same fix as superfly/docs#2594, which hit this in superfly/docs on the first PR to delete a page.

all_changed_and_modified_files is ACMRDTUX and includes deleted paths. Vale exits non-zero on a path that isn't there:

##[error]Error: { "Text": "argument 'containers.mdx' does not exist", "Code": "E100" }

fail_on_error: false doesn't cover that, because it's an invocation error rather than a lint finding. Before #275 the bad file list made the action lint the whole repo, so it never surfaced.

all_changed_files is ACMR, so deleted paths are excluded. The any_changed gate on the next step already matches ACMR semantics, so it stays correct.

Verified in superfly/docs on the PR that exposed it: https://github.com/superfly/docs/actions/runs/39822989953. Not reproducible here, since this PR deletes nothing.

@mintlify

mintlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
fly-io 🟢 Ready View Preview Oct 22, 2026, 5:30 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@kcmartin
kcmartin merged commit 673f06b into main Oct 22, 2026
2 checks passed
@kcmartin
kcmartin deleted the vale-deleted-files branch October 22, 2026 17:39

This branch was successfully deployed

1 active deployment
staging — 4074d843 Deployed Oct 22, 2026 by mintlify[bot]
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.

1 participant