Bump the analyzers group with 3 updates #201
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: Auto-Merge | |
| on: | |
| pull_request: | |
| types: [opened, ready_for_review, labeled] | |
| pull_request_review: | |
| types: [submitted] | |
| jobs: | |
| auto-merge: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| # Only run for claude[bot] PRs or PRs with auto-merge label | |
| if: | | |
| github.event.pull_request.user.login == 'claude[bot]' || | |
| contains(github.event.pull_request.labels.*.name, 'auto-merge') | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Enable auto-merge | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: | | |
| echo "[INFO] Enabling auto-merge for PR #${PR_NUMBER}" | |
| echo "[INFO] Author: ${{ github.event.pull_request.user.login }}" | |
| echo "[INFO] Labels: ${{ join(github.event.pull_request.labels.*.name, ', ') }}" | |
| # Enable auto-merge with squash strategy | |
| # GitHub will merge when all required status checks pass | |
| gh pr merge "${PR_NUMBER}" \ | |
| --repo "${{ github.repository }}" \ | |
| --squash \ | |
| --auto \ | |
| --delete-branch \ | |
| --subject "Merge PR #${PR_NUMBER}: ${{ github.event.pull_request.title }}" | |
| echo "[PASS] Auto-merge enabled. PR will merge when all checks pass." | |
| # Separate job for review-triggered merges | |
| merge-on-approval: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| if: | | |
| github.event_name == 'pull_request_review' && | |
| github.event.review.state == 'approved' && | |
| ( | |
| github.event.pull_request.user.login == 'claude[bot]' || | |
| contains(github.event.pull_request.labels.*.name, 'auto-merge') | |
| ) | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Merge on approval | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: | | |
| echo "[PASS] PR #${PR_NUMBER} approved by ${{ github.event.review.user.login }}" | |
| echo "[INFO] Attempting merge..." | |
| # Try to merge immediately since approval received | |
| # This will fail gracefully if other checks haven't passed yet | |
| gh pr merge "${PR_NUMBER}" \ | |
| --repo "${{ github.repository }}" \ | |
| --squash \ | |
| --auto \ | |
| --delete-branch \ | |
| --subject "Merge PR #${PR_NUMBER}: ${{ github.event.pull_request.title }}" \ | |
| || echo "[WAIT] Waiting for other checks to complete..." |