annervisser/Psalm baseline progress
Calculates psalm baseline diff
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| base_ref | git ref to use for calculating the base_score | no | ${{ github.event.pull_request.base.sha }} |
| head_ref | git ref to use for calculating the head_score | no | HEAD |
| path_to_baseline | Path to the baseline file | no | ./psalm-baseline.xml |
| template_decreased | Template to use when the baseline has decreased | no | 🍀 Psalm baseline has decreased: **$BASE_SCORE** → **$HEAD_SCORE** _(**${SCORE_DIFF}**)_ |
| template_increased | Template to use when the baseline has grown | no | 📛 Psalm baseline has increased: **$BASE_SCORE** → **$HEAD_SCORE** _(**+${SCORE_DIFF}**)_ |
| template_no_change | Template to use when the baseline score hasn't changed | no | Psalm baseline score remained the same: **$HEAD_SCORE** |
| file_xpath_condition | A custom xpath condition to filter specific file entries. Default to excluding paths that start with "test" | no | not(starts-with(@src, "test")) |
Outputs
| name | description |
|---|---|
| base_score | Baseline score for the pull request base |
| head_score | Baseline score for the pull request head |
| score_diff | Difference between the two scores (head_score - base_score) |
| score_diff_string | Same as `score_diff`, with a `+` prepended for positive numbers |
| output_message | Parsed output based on the `template_*` inputs |