Add fallback AI provider support to code review workflow #4
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
| # CodeSage's own AI review — uses the reusable workflow we provide to others | ||
| name: AI Code Review | ||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
| workflow_dispatch: | ||
| inputs: | ||
| ai_provider: | ||
| description: 'Primary AI provider for this run' | ||
| required: false | ||
| default: 'openai' | ||
| type: choice | ||
| options: | ||
| - openai | ||
| - claude | ||
| jobs: | ||
| review: | ||
|
Check failure on line 20 in .github/workflows/ai-review.yml
|
||
| uses: ./.github/workflows/ai-review-reusable.yml | ||
| with: | ||
| ai_provider: ${{ github.event_name == 'workflow_dispatch' && inputs.ai_provider || 'openai' }} | ||
| review_guidelines_path: '.github/review-guidelines.md' | ||
| enable_fallback: true | ||
| secrets: | ||
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||