Conversation
BenchmarksBenchmark execution time: 2026-02-02 17:04:42 Comparing candidate commit 716b436 in PR branch Found 4 performance improvements and 7 performance regressions! Performance is the same for 166 metrics, 15 unstable metrics. scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0
scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0
scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net6.0
scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472
scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1
scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1
|
.claude/commands/review-pr.md
Outdated
| - Every issue must have a file path and line number | ||
| - Use line numbers from the diff, not absolute line numbers | ||
| - Post inline comments using the `gh api` call | ||
| - Keep the summary brief; put details in inline comments No newline at end of file |
There was a problem hiding this comment.
Missing trailing newline at end of file. This is a common coding standard.
🤖 Claude Code
There was a problem hiding this comment.
You are an expert code reviewer
.claude/commands/review-pr.md
Outdated
|
|
||
| **Part A: Inline File Comments** | ||
| - For each specific issue you found, create a GitHub API call | ||
| - Use the format: `gh api -X POST -H "Accept: application/vnd.github+json" "repos/{owner}/{repo}/pulls/{pull_number}/comments" -f body="Your file-level comment" -f path="path/to/file" -f position=<line_number>` |
There was a problem hiding this comment.
The gh api command format shown here uses position which is deprecated/unreliable for the PR comments API. The GitHub API now requires line, side, and commit_id parameters for reliable comment positioning.
Suggested fix:
gh api -X POST -H "Accept: application/vnd.github+json" "repos/{owner}/{repo}/pulls/{pull_number}/comments" -f body="Your comment" -f path="path/to/file" -F line=<line_number> -f side="RIGHT" -f commit_id="<commit_sha>"
Note: Use -F (not -f) for numeric values like line.
🤖 Claude Code
There was a problem hiding this comment.
So it didn't work the first time, but it seemed to fix itself, but I'm unsure if that is why each comment is its own review?
There was a problem hiding this comment.
To clarify, it attempted to post, got the error message and resolved it all on its own
.claude/commands/review-pr.md
Outdated
| To perform the review, follow these steps: | ||
|
|
||
| 1. Extract the PR number from the URL or use it directly if a number is provided | ||
| 2. Use Bash("gh pr view <number>") to get PR details |
There was a problem hiding this comment.
Consider adding the --repo flag to the gh commands (e.g., gh pr view <number> --repo {owner}/{repo}). Without it, these commands will only work when the user's current working directory is in a clone of the target repository. Adding the flag makes the command work from any directory.
🤖 Claude Code
PR Review SummaryThis PR adds a useful Claude command for automated PR reviews. The overall structure and approach are sound. I found a few issues that should be addressed:
Review by 🤖 Claude Code |
|
This was the error Claude gave me |
PR Review SummaryThis PR adds a useful Claude command for automated PR reviews. The implementation is well-structured and the recent fixes (adding I found three areas for improvement: (1) the argument hint could better reflect that PR numbers are accepted, not just URLs, (2) the instructions don't explain where to get the Review by 🤖 Claude Code |
|
|
||
| **Part A: Inline File Comments** | ||
| - For each specific issue you found, create a GitHub API call | ||
| - Use the format: `gh api -X POST -H "Accept: application/vnd.github+json" "repos/{owner}/{repo}/pulls/{pull_number}/comments" -f body="Your file-level comment" -f path="path/to/file" -F line=<line_number> -f side="RIGHT" -f commit_id="<commit_sha>"` |
There was a problem hiding this comment.
The gh API command format may fail if the comment body contains quotes, newlines, or special characters. The -f body="..." flag doesn't properly escape multi-line content or quotes within the comment text.
Consider using a heredoc or temp file approach for the body content:
gh api ... -f body="$(cat <<'EOF'
Your comment here
EOF
)"This is especially important since review comments often include code snippets with quotes.
🤖 Claude Code
There was a problem hiding this comment.
meh, I'm sure you can figure it out
|
|
||
| **Part A: Inline File Comments** | ||
| - For each specific issue you found, create a GitHub API call | ||
| - Use the format: `gh api -X POST -H "Accept: application/vnd.github+json" "repos/{owner}/{repo}/pulls/{pull_number}/comments" -f body="Your file-level comment" -f path="path/to/file" -F line=<line_number> -f side="RIGHT" -f commit_id="<commit_sha>"` |
There was a problem hiding this comment.
There's no error handling guidance for the gh API calls. If a comment fails to post (e.g., due to invalid line number, file not in diff, or API rate limits), the command will continue posting other comments without notifying the user of partial failures.
Consider adding guidance to:
- Check the exit code of each
gh apicall - Aggregate any errors and report them to the user
- Handle the case where a line number doesn't exist in the PR diff (GitHub will reject the comment)
🤖 Claude Code
There was a problem hiding this comment.
pfft, you do that by default
fwiw, there are also PR review plugins in the official marketplace: |
lucaspimentel
left a comment
There was a problem hiding this comment.
ship it and iterate, go go go
Summary of changes
Adds a claude command for leaving comments on a PR
Reason for change
I had this locally, and was asked to add it centrally
Implementation details
Copied my version to here
Test coverage
I've run it locally, we can iterate
Other details
There's an existing
/reviewcommand, but I find it doesn't work quite like I would like 😄