chore(deps): bump @babel/preset-env from 7.28.3 to 7.28.6 #451
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: Azion AI Code Review | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| branches: | |
| - main | |
| - stage | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| checks: write | |
| jobs: | |
| ai-code-review: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: 20 | |
| cache: "npm" | |
| - name: Install | |
| run: npm install | |
| - name: Build | |
| run: npm run compile | |
| - name: Install Action GitHub | |
| run: | | |
| npm install @actions/github | |
| - name: Run Azion AI Code Review | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| AZION_TOKEN: ${{ secrets.AZION_TOKEN }} | |
| run: | | |
| node ./scripts/code-review.mjs | |
| continue-on-error: true | |
| id: code_review | |
| - name: Display error logs | |
| if: failure() && steps.code_review.outcome == 'failure' | |
| run: | | |
| echo "Error during code review execution:" | |
| cat ${{ github.workspace }}/*.log | |
| - name: Update PR Status | |
| uses: actions/github-script@v8 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| github.rest.checks.create({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| name: 'Azion AI Code Review', | |
| head_sha: context.payload.pull_request.head.sha, | |
| status: 'completed', | |
| conclusion: 'success', | |
| output: { | |
| title: 'Code review completed', | |
| summary: 'The code review was completed successfully.' | |
| } | |
| }) |