forked from infra/ansible
Add an AI review workflow
This adds AI review for pull requests, using the workflow and pattern already used by several Quality projects. Pull requests will be reviewed by https://gitlab.com/redhat/edge/ci-cd/ai-code-review/ whenever the 'ai-review-please' label is applied to them. Also adds a context file, generated by claude-4.6-opus-high via Cursor, using the https://github.com/juanje/context-generator skill, as recommended by ai-code-review upstream. Signed-off-by: Adam Williamson <awilliam@redhat.com> Assisted-by: claude-4.6-opus-high Assisted-by: Cursor-2.6.11
This commit is contained in:
parent
2dd8897adc
commit
d4000f3282
2 changed files with 174 additions and 0 deletions
15
.forgejo/workflows/ai-review.yaml
Normal file
15
.forgejo/workflows/ai-review.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
name: AI Code Review
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [labeled]
|
||||
|
||||
jobs:
|
||||
ai-review:
|
||||
runs-on: infra-1
|
||||
if: forgejo.event.label.name == 'ai-review-please'
|
||||
uses: quality/workflows/.forgejo/workflows/ai-review.yml@main
|
||||
with:
|
||||
pr: ${{ forgejo.event.pull_request.number }}
|
||||
secrets:
|
||||
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue