Skip to content

feat(action): add offline input to skip remote API calls#107

Open
WillHen wants to merge 1 commit intomillionco:mainfrom
WillHen:willhen/skip-publish
Open

feat(action): add offline input to skip remote API calls#107
WillHen wants to merge 1 commit intomillionco:mainfrom
WillHen:willhen/skip-publish

Conversation

@WillHen
Copy link
Copy Markdown

@WillHen WillHen commented Mar 22, 2026

When running React Doctor in GitHub Actions, there's no way to disable publishing diagnostics to the react.doctor API. This is a problem for orgs where react.doctor is blocked by network security policies, self-hosted runners without external internet access, or teams that simply want local-only scoring.

Changes

  • Add offline input to action.yml (default "false") — passes the existing --offline CLI flag when set to "true"
  • Wire --offline into both the main scan step and the score extraction step
  • Add offline and fail-on (previously missing) to the README inputs table

Usage

- uses: millionco/react-doctor@main
  with:
    offline: "true"
    diff: main

When offline is enabled, scores are calculated locally instead of via the remote API. All scanning behavior remains identical — only the score API calls are skipped.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 22, 2026

@WillHen is attempting to deploy a commit to the Million Team on Vercel.

A member of the Team first needs to authorize it.

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