Repository navigation
Bump mongoose from 9.4.1 to 9.6.3 #75
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: Auto-merge bot flow | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - ready_for_review | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| automerge: | |
| runs-on: ubuntu-latest | |
| # Only Dependabot and Snyk PRs | |
| if: > | |
| github.event.pull_request.user.login == 'dependabot[bot]' || | |
| github.event.pull_request.user.login == 'snyk-bot' | |
| steps: | |
| - name: Cool-off period (wait 3.5 minutes) | |
| run: sleep 210 | |
| - name: Comment and proceed with auto-merge | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const owner = context.repo.owner; | |
| const repo = context.repo.repo; | |
| const pr = context.payload.pull_request; | |
| await github.rest.issues.createComment({ | |
| owner, | |
| repo, | |
| issue_number: pr.number, | |
| body: [ | |
| '⏳ **Auto-merge initiated after 3.5 minute cool-off period**', | |
| '', | |
| 'The bot did not evaluate CI or status checks.', | |
| 'GitHub branch protection rules will decide final merge eligibility.', | |
| '', | |
| 'Proceeding with auto-merge.' | |
| ].join('\n') | |
| }); | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Enable auto-merge via GitHub CLI | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh pr merge "${{ github.event.pull_request.number }}" \ | |
| --auto \ | |
| --squash |