mantulen/pre-commit action with PR comment and job summary of results
Runs pre-commit, creates a job summary, and adds a comment to the pull request with the results
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Dec 21, 2025
- License
- MIT
Pinned Snippet
uses: mantulen/pre-commit-action@eeefac5579a88bc5f177ef4e825498123ddfcc72 # v0.0.2tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| base-url | An optional GitHub REST API URL to connect to a different GitHub instance. For example, https://my.github-enterprise-server.com/api/v3 | no | https://api.github.com |
| github-token | The GitHub token used to create an authenticated client. | no | ${{ github.token }} |
| issue-number | ID of the issue or pull request to comment on. Default is the number of the pull request that triggered the action. | no | ${{ github.event.number }} |
| skip-comment | Whether to skip commenting on the pull request. true or false. Default is false. | no | false |
| skip-job-summary | Whether to skip printing the job summary. true or false. Default is false. | no | false |
| debug | Whether to tell the GitHub client to log details of its requests. true or false. Default is to run in debug mode when the GitHub Actions step debug logging is turned on. | no | ${{ runner.debug == '1' }} |
| python-path | Custom path to Python executable | no | — |
| pre-commit-path | Custom path to pre-commit executable | no | — |
Outputs
| name | description |
|---|---|
| result | Pre-commit result in JSON format. |