forked from infra/ansible
This sets a config option that gets ai-code-review to generate shorter review text. It skips the MR Summary section and just posts the Detailed Code Review section. Signed-off-by: Adam Williamson <awilliam@redhat.com>
17 lines
411 B
YAML
17 lines
411 B
YAML
---
|
|
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 }}
|
|
config: |
|
|
include_mr_summary: false
|
|
secrets:
|
|
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|