Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
45 lines (45 loc) · 1.49 KB
/
Copy pathaction.yml
File metadata and controls
45 lines (45 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: PatchScope diff review
description: Generate a local heuristic review checklist from a unified diff. No API token or AI service required.
author: brunnodev
branding:
icon: git-pull-request
color: purple
inputs:
diff-file:
description: Path to an existing unified diff file
required: true
summary:
description: Append the Markdown review to the GitHub Actions job summary
default: 'true'
config-file:
description: Optional path to an explicit PatchScope JSON configuration
required: false
outputs:
report-json:
description: Path to the generated JSON report
value: ${{ steps.review.outputs.report-json }}
report-markdown:
description: Path to the generated Markdown report
value: ${{ steps.review.outputs.report-markdown }}
high-count:
description: Number of high-priority heuristic prompts
value: ${{ steps.review.outputs.high-count }}
report-sarif:
description: Path to the SARIF 2.1.0 report
value: ${{ steps.review.outputs.report-sarif }}
suppressed-count:
description: Number of prompts suppressed with a justification
value: ${{ steps.review.outputs.suppressed-count }}
runs:
using: composite
steps:
- uses: actions/setup-node@v4
with:
node-version: '22'
- id: review
shell: bash
env:
INPUT_DIFF_FILE: ${{ inputs.diff-file }}
INPUT_SUMMARY: ${{ inputs.summary }}
INPUT_CONFIG_FILE: ${{ inputs.config-file }}
run: node "$GITHUB_ACTION_PATH/scripts/action.mjs"