refactor extraction handler to prepare for multiple strategies #72
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |