11name : ' PR Summary'
22
3+ # Summary runs on every PR update (open + each new commit). It is SAFE under
4+ # pull_request_target — the OpenRouter secret and write token are in scope even
5+ # for fork PRs — because it never builds or executes PR code: it reads the diff
6+ # and committed source as data, and reads its policy file from the BASE ref (S4).
37on :
48 pull_request_target :
59 types : [opened, synchronize, reopened]
@@ -9,25 +13,22 @@ concurrency:
913 cancel-in-progress : true
1014
1115permissions :
12- contents : read # required: the action checks out the PR head to read the diff
13- pull-requests : write # required: post/update the summary comment
14- issues : read # optional: link affected sorries to `proof wanted` issues
16+ contents : read
17+ pull-requests : write
18+ issues : read
1519
1620jobs :
1721 summarize :
1822 runs-on : ubuntu-latest
19- timeout-minutes : 20
2023 steps :
2124 - name : Generate PR Summary
22- uses : alexanderlhicks/lean- summary-workflow@main
25+ uses : alexanderlhicks/lean4repo-utils/ summary@0.3
2326 with :
2427 github_token : ${{ secrets.GITHUB_TOKEN }}
2528 api_key : ${{ secrets.OPENROUTER_KEY }}
26- # model: inherits the action default (deepseek/deepseek-v4-flash).
27- # Set `model: <openrouter-slug>` here to override for this repo only.
2829 github_repository : ${{ github.repository }}
2930 pr_number : ${{ github.event.pull_request.number }}
30- additional_instructions_path : ' CONTRIBUTING.md'
3131 validate_title : ' true'
3232 upstream_path : ' ArkLib/ToMathlib/'
33- # Other optional knobs (reasoning_effort, max_*_diff_chars): see the action README.
33+ # Default model (deepseek/deepseek-v4-flash). additional_instructions_path
34+ # defaults to CONTRIBUTING.md (read from the base ref) when unset.
0 commit comments