]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Use GPT-5 Codex for code reviews
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 8 Nov 2025 13:50:54 +0000 (13:50 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 8 Nov 2025 13:50:54 +0000 (13:50 +0000)
Switch from Claude Sonnet to GPT-5 Codex model for code reviews to
provide different perspective from the model used for development.

.github/workflows/droid-code-review.yml

index 93d7833d74346ebf5a5bc44289ea1a712dfe9850..3de95857f1bd9153257a6386a6048d7eb88d9080 100644 (file)
@@ -28,6 +28,16 @@ jobs:
       )
 
     steps:
+      - name: Acknowledge review start with reaction
+        run: |
+          gh api \
+            --method POST \
+            -H "Accept: application/vnd.github+json" \
+            /repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions \
+            -f content='eyes'
+        env:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
       - name: Checkout repository
         uses: actions/checkout@v4
         with:
@@ -170,7 +180,18 @@ jobs:
 
           # Run droid exec with the prompt
           echo "Running code review analysis and submitting results..."
-          droid exec --auto high --model claude-sonnet-4-5-20250929 -f prompt.txt
+          droid exec --model gpt-5-codex -f prompt.txt
+
+      - name: Mark review as complete
+        if: ${{ success() }}
+        run: |
+          gh api \
+            --method POST \
+            -H "Accept: application/vnd.github+json" \
+            /repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions \
+            -f content='+1'
+        env:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Upload debug artifacts on failure
         if: ${{ failure() }}