Skip to content

[test] Test PR for Claude review action #4453

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented Jul 14, 2025

This is a test PR to verify the Claude review action works correctly. It contains intentional violations including hardcoded secrets, SQL injection, XSS vulnerabilities, memory leaks, deep nesting, and library misuse. Add the claude-review label to test the action.

Selection_1710

┆Issue is synchronized with this Notion page by Unito

This service contains multiple intentional violations to test
the Claude PR review action including:
- Security issues (hardcoded secrets, XSS, SQL injection)
- Performance problems (N+1 queries, memory leaks)
- Code quality issues (deep nesting, long functions)
- Library misuse (not using PrimeVue, api.apiURL, etc.)
- TypeScript violations (@ts-expect-error, any types)
@christian-byrne christian-byrne requested a review from a team as a code owner July 14, 2025 23:52
- Removed unused import and variable
- Prefixed unused parameters with underscore
- Used 'as any' instead of @ts-expect-error to avoid type check

All architectural violations remain for Claude to catch.
@christian-byrne christian-byrne added the claude-review Add to trigger a PR code review from Claude Code label Jul 15, 2025
Added minimal browser test to satisfy Danger requirements
for testing changes to src/ files.
Simple one-line change to satisfy Danger requirement for browser test coverage.
@christian-byrne christian-byrne requested a review from a team as a code owner July 15, 2025 14:58
@christian-byrne christian-byrne added claude-review Add to trigger a PR code review from Claude Code and removed claude-review Add to trigger a PR code review from Claude Code labels Jul 15, 2025
Fixed check regex to use lowercase names that match the actual
CI workflow names: eslint, prettier, test
@christian-byrne christian-byrne added claude-review Add to trigger a PR code review from Claude Code and removed claude-review Add to trigger a PR code review from Claude Code labels Jul 15, 2025
- Added id-token: write permission for OIDC
- Changed to claude-code-base-action@beta
- Fixed prompt parameter to reference the review command
- Added allowed_tools parameter
@christian-byrne christian-byrne added claude-review Add to trigger a PR code review from Claude Code and removed claude-review Add to trigger a PR code review from Claude Code labels Jul 15, 2025
- Increased max_turns from 1 to 30 (was stopping after reading file)
- Added WebFetch to allowed tools for knowledge loading
- Improved prompt to be explicit about executing bash blocks
- Claude needs multiple turns to run the full review script
Changed allowed_tools to Bash(*) to permit all commands needed by
the review script including gh, git, curl, jq, etc.
@christian-byrne christian-byrne added claude-review Add to trigger a PR code review from Claude Code and removed claude-review Add to trigger a PR code review from Claude Code labels Jul 15, 2025
The review command had setup code and instructions but was missing
the actual code to analyze files and post comments. Added basic
analysis for hardcoded secrets and console.log as a test.
- Updated workflow prompt to explicitly tell Claude to analyze files
- Removed bash analysis code - Claude should use Read tool to analyze
- Made it clear Claude needs to perform Phases 3-6 analysis itself
- Clarified Claude is in repo root directory
- Specified what files will be available after setup
- Explicit instructions to use Read tool on changed_files.txt
- Clear example of how to call post_review_comment function
@christian-byrne christian-byrne added claude-review Add to trigger a PR code review from Claude Code and removed claude-review Add to trigger a PR code review from Claude Code labels Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
claude-review Add to trigger a PR code review from Claude Code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant