Add Forgejo AI pull-request review #1
Loading…
Reference in a new issue
No description provided.
Delete branch "pr-review-setup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
.forgejo/ai-review.yml— Ollama provider config +python3 -m py_compile daily-briefing.pyas the deterministic check.forgejo/ai-review.md— guidance prioritising concrete defects, secret handling, and env-file parsing robustness.forgejo/workflows/ai-review.yml— workflow triggered on PR open/reopen/sync/ready_for_review with workflow_dispatch support for manual runs by PR numberContext
This mirrors the same
forgejo-auto-pr-reviewsetup that nixos-config already uses, so this repo gets the same advisory AI review on every pull request. The reviewer is strictly advisory — it never approves, merges, or modifies code; deterministic test failures remain normal CI's responsibility, and humans remain responsible for merge decisions.The fork-guard (
github.event.pull_request.head.repo.full_name == github.repository) prevents the comment token from being exposed to fork-originated pull-request code. The deterministic check is a Python syntax check because there's no test suite in this repo yet; the command lives in the config and can be swapped for whatever check makes sense later.The
AI_REVIEW_FORGEJO_TOKENsecret is already configured user-wide; no additional secret setup is required.Notes
base_urlinai-review.ymlpoints athttp://nova.mesh:11434to match the nixos-config deployment; change it to whatever Ollama endpoint the runner can reach.Automated code review
Reviewed commit:
53aad3c04f49501b62fbd5c0ba06a2038b4a2ac1Verdict: Ready to merge
No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.
Overall assessment
Adds a Forgejo workflow and AI review guidance document to enable advisory pull-request reviews using an Ollama-backed reviewer. The configuration correctly implements a fork guard, pins the third-party action to a full commit SHA, handles both automatic PR events and manual dispatch inputs with appropriate fallbacks, and configures a deterministic Python syntax check in the guidance text. No application code is modified.
Blocking findings
None.
Important findings
None.
Suggestions
None.
Tests and validation
Questions
novarunner been verified to have network reachability tohttp://nova.mesh:11434and sufficient memory/CPU to handle the configured 600-second timeout and 65536 context size?actions/checkout@v4syntax and the concurrency group fallback pattern, or are any Forgejo-specific runner labels or overrides required?Review limitations
Diff coverage
.forgejo/ai-review.md: reviewed — included in a context-limited batch.forgejo/workflows/ai-review.yml: reviewed — included in a context-limited batchReview metadata