joryirving/windowstead #51: reduce bottom-mode popup size for lighter overlay presence #29
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
| name: AI PR Review | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| types: [opened, reopened, synchronize, ready_for_review] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| review: | |
| if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }} | |
| runs-on: ubuntu-latest | |
| env: | |
| AI_BASE_URL: ${{ vars.AI_BASE_URL || 'https://api.minimax.io/v1' }} | |
| AI_MODEL: ${{ vars.AI_MODEL || 'MiniMax-M2.7' }} | |
| AI_PRIMARY_RETRIES: ${{ vars.AI_PRIMARY_RETRIES || '4' }} | |
| AI_PRIMARY_RETRY_DELAY_SEC: ${{ vars.AI_PRIMARY_RETRY_DELAY_SEC || '10' }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
| - name: Generate bot token | |
| id: app-token | |
| uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1 | |
| with: | |
| client-id: ${{ secrets.BOT_APP_ID }} | |
| private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }} | |
| - name: Review PR with reusable AI reviewer | |
| if: github.event_name == 'pull_request' | |
| id: review | |
| uses: misospace/pr-reviewer-action@1c0483d41f1200845a82db146c275fb930169af7 # v1.0.2 | |
| with: | |
| github_token: ${{ steps.app-token.outputs.token }} | |
| ai_base_url: ${{ env.AI_BASE_URL }} | |
| ai_model: ${{ env.AI_MODEL }} | |
| ai_api_key: ${{ secrets.OPENAI_COMPATIBLE_API_KEY }} | |
| ai_primary_retries: ${{ env.AI_PRIMARY_RETRIES }} | |
| ai_primary_retry_delay_sec: ${{ env.AI_PRIMARY_RETRY_DELAY_SEC }} | |
| standards_file: "" | |
| publish_review_comment: 'true' |