Skip to content

Commit d458e5c

Browse files
ci: re-deploy PR summary workflow on OpenRouter (#263)
* ci: update PR summary workflow to OpenRouter interface The lean-summary-workflow action is now a single OpenRouter-backed gateway. Update summary.yml inputs: api_key takes the OpenRouter key (secrets.OPENROUTER_KEY), drop the removed `provider` input, use an OpenRouter model slug, rename style_guide_path -> additional_instructions_path, and add contents:read for the action's checkout. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci: standardize deployment (inherit default model, add upstream_path/reopened/timeout) Omit `model` so the workflow inherits the action's default (deepseek/deepseek-v4-flash) — the fleet model can then be changed in one place. Also add the `reopened` trigger, a job timeout, and (where applicable) upstream_path for upstream-bound directories. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 2e36d78 commit d458e5c

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/summary.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,32 @@ name: 'PR Summary'
22

33
on:
44
pull_request_target:
5-
types: [opened, synchronize]
5+
types: [opened, synchronize, reopened]
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
99
cancel-in-progress: true
1010

1111
permissions:
12-
contents: read
13-
pull-requests: write
14-
issues: read
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
1515

1616
jobs:
1717
summarize:
1818
runs-on: ubuntu-latest
19+
timeout-minutes: 20
1920
steps:
2021
- name: Generate PR Summary
2122
uses: alexanderlhicks/lean-summary-workflow@main
2223
with:
2324
github_token: ${{ secrets.GITHUB_TOKEN }}
24-
api_key: ${{ secrets.GEMINI_API_KEY }}
25-
provider: gemini # or: anthropic, openai
26-
model: gemini-3-flash-preview # or: claude-sonnet-4-6, gpt-5.4-mini
25+
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.
2728
github_repository: ${{ github.repository }}
2829
pr_number: ${{ github.event.pull_request.number }}
29-
# Optional:
30-
style_guide_path: 'CONTRIBUTING.md'
30+
additional_instructions_path: 'CONTRIBUTING.md'
3131
validate_title: 'true'
32-
# upstream_path: 'ToMathlib/'
32+
upstream_path: 'CompPoly/ToMathlib/'
33+
# Other optional knobs (reasoning_effort, max_*_diff_chars): see the action README.

0 commit comments

Comments
 (0)