db13078196
PR Ready Gate / clear-labels (pull_request) Successful in 1s
CI / test (pull_request) Successful in 20s
CI / review (anthropic--claude-4.6-sonnet, sonnet, SONNET_REVIEW_TOKEN) (pull_request) Successful in 29s
CI / review (gpt-5, security, ., rodin/security-patterns, SECURITY_REVIEW.md, SECURITY_REVIEW_TOKEN) (pull_request) Successful in 1m2s
CI / review (gpt-5, gpt, GPT_REVIEW_TOKEN) (pull_request) Successful in 1m31s
The self-test workflow on github.concur.com runs the action with: - gitea-url=https://gitea.weiker.me (binary download source) - dry-run=true (avoids PR# mismatch between GHE and Gitea) This validates: - Binary download and checksum verification works from a GitHub runner - GITHUB_SERVER_URL/GITHUB_REPOSITORY env vars are correctly passed - AiCore provider authenticates and LLM call succeeds When strat/review-bot has its own releases, remove gitea-url override and dry-run.
48 lines
1.7 KiB
YAML
48 lines
1.7 KiB
YAML
# Self-review workflow for strat/review-bot on GitHub Enterprise Server.
|
|
# Tests that the composite action runs correctly on GitHub runners:
|
|
# - GITHUB_SERVER_URL and GITHUB_REPOSITORY env vars are set correctly
|
|
# - Binary is downloaded from gitea.weiker.me (where releases live)
|
|
# - Review is posted to the corresponding Gitea PR
|
|
name: Review
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
jobs:
|
|
review:
|
|
runs-on: ubuntu-24.04
|
|
if: github.event_name == 'pull_request'
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- name: sonnet
|
|
token_secret: SONNET_REVIEW_TOKEN
|
|
model: anthropic--claude-4.6-sonnet
|
|
- name: gpt
|
|
token_secret: GPT_REVIEW_TOKEN
|
|
model: gpt-5
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Run ${{ matrix.name }} review
|
|
uses: ./.gitea/actions/review
|
|
with:
|
|
# Download binary from Gitea (releases live there, not on GHE)
|
|
gitea-url: https://gitea.weiker.me
|
|
# Post review to the corresponding Gitea repo
|
|
repo: rodin/review-bot
|
|
reviewer-token: ${{ secrets[matrix.token_secret] }}
|
|
reviewer-name: ${{ matrix.name }}
|
|
llm-model: ${{ matrix.model }}
|
|
llm-provider: aicore
|
|
aicore-client-id: ${{ secrets.AICORE_CLIENT_ID }}
|
|
aicore-client-secret: ${{ secrets.AICORE_CLIENT_SECRET }}
|
|
aicore-auth-url: ${{ secrets.AICORE_AUTH_URL }}
|
|
aicore-api-url: ${{ secrets.AICORE_API_URL }}
|
|
aicore-resource-group: ${{ secrets.AICORE_RESOURCE_GROUP }}
|
|
conventions-file: CONVENTIONS.md
|
|
patterns-repo: rodin/go-patterns
|
|
patterns-files: 'README.md,patterns/'
|
|
dry-run: 'true'
|
|
timeout: '600'
|