Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5b3f6b1a44 | |||
| 00c363a244 | |||
| b1fdc35f70 | |||
| b62b52aab1 |
+10
-1
@@ -19,7 +19,7 @@ jobs:
|
||||
- run: go build -o review-bot ./cmd/review-bot
|
||||
|
||||
# Self-review using native SAP AI Core provider
|
||||
# Models must match SAP AI Core deployments (use 'anthropic--' prefix for Claude)
|
||||
# Models must match SAP AI Core deployments
|
||||
review:
|
||||
runs-on: ubuntu-24.04
|
||||
if: github.event_name == 'pull_request'
|
||||
@@ -33,6 +33,15 @@ jobs:
|
||||
- name: gpt
|
||||
token_secret: GPT_REVIEW_TOKEN
|
||||
model: gpt-5
|
||||
- name: gpt41
|
||||
token_secret: GPT_REVIEW_TOKEN
|
||||
model: gpt-4.1
|
||||
- name: gpt5-mini
|
||||
token_secret: GPT_REVIEW_TOKEN
|
||||
model: gpt-5-mini
|
||||
- name: gpt41-mini
|
||||
token_secret: GPT_REVIEW_TOKEN
|
||||
model: gpt-4.1-mini
|
||||
- name: security
|
||||
token_secret: SECURITY_REVIEW_TOKEN
|
||||
model: gpt-5
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
## Self-Review: feat/aicore-provider — 2026-05-09
|
||||
|
||||
### Verdict: PASS
|
||||
|
||||
No blocking issues found — ready for human review.
|
||||
|
||||
#### Notes (informational, not blocking)
|
||||
|
||||
**[fit]** `staticcheck` reports:
|
||||
- `llm/aicore.go:237` and `llm/client.go:231`: struct literal conversion style (S1016) — minor style nit, existing in both old and new code
|
||||
- `gitea/diff.go:78`: HasPrefix return ignored (SA4017) — pre-existing, not introduced by this PR
|
||||
- `cmd/review-bot/main_test.go:347`: nil Context (SA1012) — pre-existing, not introduced by this PR
|
||||
|
||||
**[fit]** Body length validation: `aicore.go` does not include the Content-Length vs body length validation that `doRequest` has in `client.go`. This is acceptable because:
|
||||
1. AI Core uses OAuth tokens which are short-lived, so truncation is less likely
|
||||
2. The retry logic still applies via "read response" error pattern
|
||||
3. Adding complexity to aicore.go for an edge case that hasn't manifested is premature
|
||||
|
||||
**[completeness]** Tests pass (go test ./...), go vet clean, no uncommitted changes.
|
||||
Reference in New Issue
Block a user