Skip to content

Commit

Permalink
Merge pull request #273 from MannLabs/add_code_review_workflow
Browse files Browse the repository at this point in the history
Add code review workflow
  • Loading branch information
mschwoer authored Feb 18, 2025
2 parents 2bbdca6 + b941fda commit 4589cfe
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 @@
# checks to run on branches for each pull request
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" # optional

0 comments on commit 4589cfe

Please sign in to comment.