This action runs common pull request status checks like typescript type checking.
By default it compares the number of errors on the base branch to the head branch for PR's. It helps existing projects to limit new errors and to set targets for PR's to reduce errors.
- Enable the
prettyflag on the typescript compiler (in tsconfig.json or--prettycommand line) - Add a script named
typecheckto your package.json that runs typescript. Alternatively you can set a custom command with thets-commandoption.
Required Provide your GITHUB_TOKEN for api calls. Default "World".
Causes pull request status checks to be compared against the head branch status checks so only new errors can cause the workflow to fail. Default is true. Default true.
This option sets the number of TypeScript errors allowed before failing the code.
If the compare input is true (default) and this is a pull request
negative values can be used. This is useful if you wish to reduce errors over time. Default 0.
The command to run typescript checking. Default npm run typecheck.
The number of typescript type errors.
- uses: milespetrov/status-checks@main
id: status-checks
with:
gh-token: ${{ secrets.GITHUB_TOKEN }}