fix-linting-types-on-pr
Fix Linting and TypeScript Issues on a PR
Checks out a PR, auto-fixes linting and TypeScript issues, and pushes the fixes.
Step 1 — Get the PR number
If the user provided a PR number, use it directly. Otherwise ask for it.
Step 2 — Check out the PR
Use gh pr checkout so it works for both fork and non-fork PRs:
gh pr checkout <PR_NUMBER>
This automatically sets up the correct remote tracking and switches to the PR branch, even when the PR comes from a fork.
Step 3 — Install dependencies
More from storybookjs/storybook
pr
Creates a pull request following Storybook conventions. Use when creating PRs, opening pull requests, or submitting changes for review.
11storybook-upgrade
Upgrade Storybook to a specific version (canary or release). Use this when upgrading Storybook packages in an external app, reproduction, or test project.
11canary
Triggers a canary release for a Storybook PR. Use when the user wants to publish a canary version, create a pre-release, or test a PR via npm.
9github-qa-labels
Label GitHub issues and PRs found during QA testing. Use when organizing QA findings with proper labels.
7docs-review
Review, improve, rewrite, author, or plan Storybook documentation in /docs. Use this when asked to review docs, improve a page, rewrite documentation, draft new docs, or advise on docs strategy.
5