Skip to content

Commit

Permalink
Merge pull request #394 from MannLabs/main
Browse files Browse the repository at this point in the history
main -> development
  • Loading branch information
mschwoer authored Jan 15, 2025
2 parents 31d123e + 256593e commit d8d0c5e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/code_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Create an automated AI code review that runs when a PR is labeled with 'code-review'
name: code-review

on:
pull_request:
types: [ labeled ]

jobs:
get-code-review:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'code-review') # || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
permissions:
contents: read
pull-requests: write
steps:
- uses: MannLabs/alphashared/actions/code-review@v1
continue-on-error: true
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
CODE_REVIEW_PROMPT: ${{ secrets.CODE_REVIEW_PROMPT }}
CODE_REVIEW_SYSTEM_MESSAGE: ${{ secrets.CODE_REVIEW_SYSTEM_MESSAGE }}
GITHUB_EVENT_NUMBER: ${{ github.event.number }}
EXCLUDED_EXTENSIONS: "ipynb;js"

0 comments on commit d8d0c5e

Please sign in to comment.