Skip to content

Run tooltip validation on every PR so the required check can't get stuck#703

Open
danstotts-ops wants to merge 1 commit into
mainfrom
fix/validate-tooltips-always-run
Open

Run tooltip validation on every PR so the required check can't get stuck#703
danstotts-ops wants to merge 1 commit into
mainfrom
fix/validate-tooltips-always-run

Conversation

@danstotts-ops

Copy link
Copy Markdown
Contributor

Problem

Branch protection on main requires the status check Check tooltip imports, produced by .github/workflows/validate-tooltips.yml. That workflow was path-filtered to **.mdx, snippets/tooltips.jsx, scripts/validate-tooltips.js, and the workflow file itself.

GitHub required checks have no concept of "skipped by paths filter": if the workflow never triggers, the check stays in expected state forever and the PR is unmergeable. Any PR touching none of the filtered paths hits this, most commonly docs.json-only changes. Concrete example: #694 (redirects-only) is currently blocked by exactly this.

Fix

Remove the paths: filter so the workflow runs on every PR to main, per GitHub's recommended handling for required checks (always run the workflow; let it no-op fast when there's nothing to check). A comment in the workflow now warns against re-adding a filter.

Why this is safe and cheap

scripts/validate-tooltips.js scans all tracked .mdx files on every run regardless of the diff. Verified locally on a clean checkout:

  • exits 0 in ~0.13s (295 MDX files, 49 tooltip definitions)
  • unused-import warnings do not fail the run

So on an unrelated PR (e.g. docs.json-only), the job checks out, runs in well under a minute, and reports success, unblocking JSON-only PRs while keeping identical validation for MDX changes.

🤖 Generated with Claude Code

"Check tooltip imports" is a required status check, but the workflow was
path-filtered to .mdx/tooltip files. PRs touching none of those paths
(e.g. docs.json-only redirect PRs like #694) never trigger the workflow,
so the required check sits in "expected" forever and the merge is blocked.

Remove the paths filter so the workflow always runs. The validate script
scans all tracked .mdx files in ~0.1s and exits 0 when nothing is broken,
so unconditional runs are effectively free.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 10, 2026

Copy link
Copy Markdown

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

Project Status Preview Updated (UTC)
runpod-docs 🟢 Ready View Preview Jul 10, 2026, 3:32 PM

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

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