ruudk/PHPStan Baseline Refresh
Automatically create a PR when the PHPStan baseline can be refreshed
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub user token to create the PR | yes | — |
| configuration_path | Path to PHPStan configuration file (.neon or .php) | yes | phpstan.neon |
| baseline_path | Path to PHPStan baseline file (.neon or .php) | yes | — |
| phpstan_path | Path to PHPStan | yes | vendor/bin/phpstan |
| phpstan_additional_arguments | Additional arguments passed to the analyze command | no | --ansi |
| add_unmatched_errors_in_baseline | When enabled, errors that pop up during the analyze run are ignored and added to the baseline too. This can be useful when your main branch is no longer passing because of a bad merge. | — | false |
| branch | Name of the branch to push to | yes | phpstan-baseline |
| target_branch | Name of the branch to target the PR to | yes | main |
| commit_name | Name of the author | yes | GitHub Actions |
| commit_email | Email of the author | yes | actions@github.com |
| commit_message | Commit message when PHPStan baseline changed | yes | PHPStan > Update baseline |
| pr_create | Wether or not to create the PR | yes | true |
| pr_title | Title of the PR | yes | PHPStan > Update baseline |
| pr_reviewer | Comma-separated list (no spaces) of people and teams that should be added as reviewer | no | — |
| pr_body | Body of the PR | yes | This PR is automatically created to cleanup our baseline. Since the last refresh of the baseline we have fixed {0} ignored errors. Keep it up all! :muscle: There are only {1} ignored errors left :sweat_smile: |
Outputs
no outputs