meblabs/NpmPullRequest
GitHub action for MEBlabs pull requests in npm projects
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 25, 2026
- License
- MIT
Pinned Snippet
uses: meblabs/npm-pull-request-action@22f45109a0a3764bb772c7cb6bdc476b91725609 # v4tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| prettier | Check and format code with Prettier | no | true |
| eslint | Check code with ESLint and reviewdog | no | true |
| test | Run the configured npm test script | no | true |
| test-script | A custom npm script to run tests | no | test |
| test-args | Arguments appended after `--` to the test script. Defaults to the Jest CLI flags that produce the report consumed by the publish step. Set to an empty string when your custom test-script does not accept these flags (the Jest report is then skipped). | no | --ci --json --outputFile=jest-results.json |
| audit | Run npm audit fix --package-lock-only and commit package-lock.json changes before tests | no | true |
| audit-level | Minimum npm audit level used by npm audit fix: low, moderate, high, critical | no | high |
| token | Personal access token used by reviewdog to comment on pull requests | no | — |
| github-token | Token used for checkout push and Jest report comments | no | — |
| checkout | Flag to indicate whether the repo should be checked out | no | true |
| node-version | Pick the node version to use [20.x, 22.x, ...] | no | 22.x |
| bot_name | Bot username used for automatic commits | no | MeblabsBot |
| bot_email | Bot email used for automatic commits | no | github@meblabs.com |
Outputs
| name | description |
|---|---|
| prettier-changed | true if Prettier changed files and an automatic commit was pushed |
| audit-changed | true if npm audit changed package-lock.json and an automatic commit was pushed |
| current-head-sha | Current local HEAD SHA at the end of the action |