Skip to content

feat(musd): pre-fill max amount on conversion confirmation #595

feat(musd): pre-fill max amount on conversion confirmation

feat(musd): pre-fill max amount on conversion confirmation #595

name: AI PR risk analysis
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
concurrency:
group: ai-pr-risk-analysis-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
if: >-
github.event_name == 'pull_request'
&& !(github.event.pull_request.head.repo.fork || github.event.repository.fork)
&& github.event.pull_request.draft == false
&& (github.event.pull_request.base.ref == 'main' || startsWith(github.event.pull_request.base.ref, 'release/'))
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
checks: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
# https://github.com/MetaMask/ai-analyzer/releases
- name: Checkout AI Analyzer
uses: actions/checkout@v6
with:
repository: MetaMask/ai-analyzer
ref: v1
path: .ai-analyzer-action
token: ${{ secrets.AI_ANALYZER_TOKEN }}
- name: Run AI PR Analysis
uses: ./.ai-analyzer-action
with:
mode: pr-risk-analysis
add-comment: false
add-label: true
github-token: ${{ secrets.GITHUB_TOKEN }}
litellm-api-key: ${{ secrets.AI_ANALYZER_LITELLM_KEY }}