Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/devin-code-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Devin PR Code Review

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
devin-review:
name: Run Devin Code Review
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Request Devin Review Agent
run: |
curl -X POST "https://devin.ai" \
-H "Authorization: Bearer ${{ secrets.DEVIN_API_KEY }}" \
-H "Content-Type: application/json" \
-d '{
"prompt": "View the diffs for PR #${{ github.event.pull_request.number }} in the repository ${{ github.repository }}. Identify logical bugs, code convention violations, or potential edge-case failures. Post your feedback as inline comments or a summarized review on this GitHub Pull Request.",
"scan_repository": true,
"env": {
"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}",
"PR_NUMBER": "${{ github.event.pull_request.number }}",
"REPO": "${{ github.repository }}"
}
}'
Loading