fix(development-pr-workflow): Opus 5 migration fixes #516
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: "Claude Docs Check" | |
| # Validates that PR documentation is properly updated | |
| # | |
| # This workflow checks: | |
| # - CLAUDE.md files are updated when code changes | |
| # - README.md files reflect current state | |
| # - Plugin versions are bumped when plugin code changes | |
| # | |
| # Trigger: Runs on all PRs and can be triggered manually | |
| # | |
| # For more information, see: | |
| # https://github.com/Uniswap/ai-toolkit/blob/main/.github/workflows/CLAUDE.md | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| # Manual trigger for re-running on specific PRs | |
| workflow_dispatch: | |
| inputs: | |
| pr_number: | |
| description: "PR number to check" | |
| required: true | |
| type: string | |
| suggestion_mode: | |
| description: "How to provide suggestions" | |
| required: false | |
| type: choice | |
| options: | |
| - suggest | |
| - branch | |
| - auto | |
| - check | |
| default: suggest | |
| auto_commit: | |
| description: "Automatically commit and push suggestions to the PR branch" | |
| required: false | |
| type: boolean | |
| default: false | |
| # Prevent concurrent runs on the same PR | |
| permissions: {} | |
| concurrency: | |
| group: docs-check-${{ github.event.pull_request.number || github.event.inputs.pr_number }} | |
| cancel-in-progress: true | |
| jobs: | |
| docs-check: | |
| # Skip bots and fork PRs (fork code is attacker-controlled) | |
| # workflow_dispatch fork check is handled inside _claude-docs-check.yml | |
| if: | | |
| github.event_name == 'workflow_dispatch' || | |
| ( | |
| github.event_name == 'pull_request' && | |
| !contains(github.event.pull_request.user.login, '[bot]') && | |
| github.event.pull_request.head.repo.full_name == github.repository | |
| ) | |
| permissions: | |
| id-token: write | |
| contents: write | |
| pull-requests: write | |
| issues: read | |
| actions: read | |
| uses: ./.github/workflows/_claude-docs-check.yml | |
| with: | |
| pr_number: ${{ github.event.pull_request.number || github.event.inputs.pr_number }} | |
| suggestion_mode: ${{ github.event.inputs.suggestion_mode || 'suggest' }} | |
| auto_commit: ${{ github.event.inputs.auto_commit == 'true' }} | |
| # Use sonnet for faster, cheaper checks | |
| model: "claude-sonnet-5" | |
| # Fail if plugin versions aren't bumped | |
| fail_on_missing_version: true | |
| # Don't fail on missing docs (just warn) | |
| fail_on_missing_docs: false | |
| # Pin to main rather than the trigger ref. ${{ github.head_ref || github.ref_name }} | |
| # would let any PR author point the worker at action.yml / post-*.ts script | |
| # content from their own branch — the worker then downloads and executes | |
| # that content with the workflow's secrets (RCE-with-secrets via supply | |
| # chain). Self-testing changes to worker scripts is now done by landing | |
| # them to `next` first and verifying there, or by invoking the | |
| # workflow_dispatch entrypoint with an explicit SHA in the allowlist. | |
| # | |
| # External repos copying this file as a template: keep this as 'main'. | |
| # The reusable worker's toolkit_ref allowlist now blocks fork-branch | |
| # values, but `next` is permitted and would pick up untested worker | |
| # changes; pinning to 'main' avoids that. | |
| toolkit_ref: 'main' | |
| secrets: | |
| # Use OAuth token (Pro/Max) instead of API key | |
| CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | |
| # PAT for branch creation | |
| WORKFLOW_PAT: ${{ secrets.WORKFLOW_PAT }} |