This repository was archived by the owner on Apr 18, 2026. It is now read-only.
Bump Tomlyn from 1.2.0 to 2.0.0 #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: Auto-merge | |
| on: | |
| pull_request_target: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| pull_request_review: | |
| types: [submitted] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| dependabot-auto-merge: | |
| name: Dependabot auto-merge | |
| runs-on: ubuntu-latest | |
| if: github.actor == 'dependabot[bot]' | |
| steps: | |
| - name: Fetch Dependabot metadata | |
| id: metadata | |
| uses: dependabot/fetch-metadata@v2 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Auto-approve patch and minor updates | |
| if: steps.metadata.outputs.update-type != 'version-update:semver-major' | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh pr review --approve "$PR_URL" || echo "::warning::Auto-approve skipped (requires allow-actions-approve-prs setting)" | |
| - name: Enable auto-merge for patch and minor | |
| if: steps.metadata.outputs.update-type != 'version-update:semver-major' | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh pr merge --auto --squash "$PR_URL" | |
| - name: Request Claude review for major updates | |
| if: steps.metadata.outputs.update-type == 'version-update:semver-major' | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| DEP_NAMES: ${{ steps.metadata.outputs.dependency-names }} | |
| PREV_VERSION: ${{ steps.metadata.outputs.previous-version }} | |
| NEW_VERSION: ${{ steps.metadata.outputs.new-version }} | |
| run: | | |
| gh pr comment "$PR_URL" --body "## Major Version Update | |
| @claude Please review this major version update for breaking changes and merge if safe. | |
| | Dependency | Update | | |
| |------------|--------| | |
| | \`$DEP_NAMES\` | \`$PREV_VERSION\` -> \`$NEW_VERSION\` | | |
| Check the changelog and verify compatibility." | |
| renovate-auto-merge: | |
| name: Renovate auto-merge | |
| runs-on: ubuntu-latest | |
| if: github.actor == 'renovate[bot]' | |
| steps: | |
| - name: Auto-approve Renovate PRs | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh pr review --approve "$PR_URL" || echo "::warning::Auto-approve skipped (requires allow-actions-approve-prs setting)" | |
| - name: Enable auto-merge for Renovate | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh pr merge --auto --squash "$PR_URL" | |
| ai-agent-auto-merge: | |
| name: AI Agent auto-merge | |
| runs-on: ubuntu-latest | |
| if: | | |
| (github.actor == 'copilot[bot]' || github.actor == 'jules[bot]' || github.actor == 'claude-code[bot]') && | |
| ( | |
| startsWith(github.event.pull_request.head.ref, 'copilot/') || | |
| startsWith(github.event.pull_request.head.ref, 'jules/') || | |
| startsWith(github.event.pull_request.head.ref, 'claude/') | |
| ) | |
| steps: | |
| - name: Identify AI agent | |
| id: agent | |
| env: | |
| BRANCH: ${{ github.event.pull_request.head.ref }} | |
| run: | | |
| if [[ "$BRANCH" == copilot/* ]]; then | |
| echo "agent=Copilot" >> "$GITHUB_OUTPUT" | |
| elif [[ "$BRANCH" == jules/* ]]; then | |
| echo "agent=Jules" >> "$GITHUB_OUTPUT" | |
| elif [[ "$BRANCH" == claude/* ]]; then | |
| echo "agent=Claude" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Auto-approve AI agent PRs | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| AGENT: ${{ steps.agent.outputs.agent }} | |
| run: | | |
| gh pr review --approve "$PR_URL" --body "Auto-approved: $AGENT autonomous fix PR" | |
| - name: Enable auto-merge for AI agent PRs | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh pr merge --auto --squash "$PR_URL" | |
| coderabbit-auto-merge: | |
| name: CodeRabbit auto-merge | |
| runs-on: ubuntu-latest | |
| if: | | |
| github.event_name == 'pull_request_review' && | |
| github.event.review.state == 'approved' && | |
| github.event.review.user.login == 'coderabbitai[bot]' | |
| steps: | |
| - name: Enable auto-merge for CodeRabbit approved PRs | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh pr merge --auto --squash "$PR_URL" |