chore(deps): bump axios from 1.13.5 to 1.13.6 in /api #6
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: Dependabot Auto-approve and Auto-merge | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| dependabot-auto-approve: | |
| runs-on: ubuntu-latest | |
| if: github.actor == 'dependabot[bot]' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Approve Dependabot PR | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| github.rest.pulls.createReview({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: context.payload.pull_request.number, | |
| event: 'APPROVE', | |
| body: '🤖 Auto-approved by Dependabot workflow' | |
| }) | |
| - name: Enable auto-merge for Dependabot PR | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| try { | |
| await github.rest.pulls.enableAutoMerge({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: context.payload.pull_request.number, | |
| merge_method: 'squash' | |
| }); | |
| console.log('Auto-merge enabled successfully'); | |
| } catch (error) { | |
| // Auto-merge might not be available if branch protection requires additional checks | |
| // or if the PR has conflicts. Log the error but don't fail the workflow. | |
| console.log('Could not enable auto-merge:', error.message); | |
| console.log('This might be due to branch protection rules or PR conflicts.'); | |
| } |