Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 4 additions & 27 deletions .github/workflows/claude-code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Copy link

Copilot AI Dec 12, 2025

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 uses actions/checkout@v4. For consistency and to use the latest version available in the repository, this should be updated to v6.

Suggested change
uses: actions/checkout@v4
uses: actions/checkout@v6

Copilot uses AI. Check for mistakes.
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
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fetch-depth: 1 setting uses a shallow clone, which may limit Claude's ability to analyze the repository history or understand the full context of changes. Most other workflows in this repository use fetch-depth: 0 (full history) when performing analysis or code reviews. Consider using fetch-depth: 0 to provide Claude with complete repository context for more thorough code reviews.

Suggested change
fetch-depth: 1
fetch-depth: 0

Copilot uses AI. Check for mistakes.

- name: Run Claude Code Review
id: claude-review
Expand All @@ -61,7 +38,7 @@ jobs:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: |
REPO: ${{ github.repository }}
PR NUMBER: ${{ inputs.pr_number || github.event.pull_request.number }}
PR NUMBER: ${{ github.event.pull_request.number }}
Please review this pull request and provide feedback on:
- Code quality and best practices
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/claude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link

Copilot AI Dec 12, 2025

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 uses actions/checkout@v4. For consistency and to use the latest version available in the repository, this should be updated to v6.

Suggested change
uses: actions/checkout@v4
uses: actions/checkout@v6

Copilot uses AI. Check for mistakes.
with:
fetch-depth: 1

Expand Down
Loading