-
-
Notifications
You must be signed in to change notification settings - Fork 107
Add Claude Code GitHub Workflow #4067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,12 +9,6 @@ on: | |||||
| # - "src/**/*.tsx" | ||||||
| # - "src/**/*.js" | ||||||
| # - "src/**/*.jsx" | ||||||
| workflow_dispatch: | ||||||
| inputs: | ||||||
| pr_number: | ||||||
| description: 'PR number to review' | ||||||
| required: true | ||||||
| type: number | ||||||
|
|
||||||
| jobs: | ||||||
| claude-review: | ||||||
|
|
@@ -32,27 +26,10 @@ jobs: | |||||
| id-token: write | ||||||
|
|
||||||
| steps: | ||||||
| - name: Get PR info (manual trigger) | ||||||
| if: github.event_name == 'workflow_dispatch' | ||||||
| id: pr-info | ||||||
| uses: actions/github-script@v8 | ||||||
| - name: Checkout repository | ||||||
| uses: actions/checkout@v4 | ||||||
| with: | ||||||
| script: | | ||||||
| const { data: pr } = await github.rest.pulls.get({ | ||||||
| owner: context.repo.owner, | ||||||
| repo: context.repo.repo, | ||||||
| pull_number: ${{ inputs.pr_number }} | ||||||
| }); | ||||||
| core.setOutput('ref', pr.head.ref); | ||||||
| core.setOutput('repo', pr.head.repo.full_name); | ||||||
| return pr; | ||||||
| - name: Checkout PR branch | ||||||
| uses: actions/checkout@v6 | ||||||
| with: | ||||||
| ref: ${{ github.event_name == 'workflow_dispatch' && steps.pr-info.outputs.ref || github.event.pull_request.head.ref }} | ||||||
| repository: ${{ github.event_name == 'workflow_dispatch' && steps.pr-info.outputs.repo || github.event.pull_request.head.repo.full_name }} | ||||||
| fetch-depth: 0 | ||||||
| fetch-depth: 1 | ||||||
|
||||||
| fetch-depth: 1 | |
| fetch-depth: 0 |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,7 +26,7 @@ jobs: | |||||
| actions: read # Required for Claude to read CI results on PRs | ||||||
| steps: | ||||||
| - name: Checkout repository | ||||||
| uses: actions/checkout@v6 | ||||||
| uses: actions/checkout@v4 | ||||||
|
||||||
| uses: actions/checkout@v4 | |
| uses: actions/checkout@v6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The checkout action version is inconsistent with other workflows in this repository. All other workflows (codeql.yml, deploy-pages.yml, dotnet.yml, generate-readme.yml, speed-comparison.yml, etc.) use
actions/checkout@v6, while this workflow usesactions/checkout@v4. For consistency and to use the latest version available in the repository, this should be updated to v6.