claude-issue-solver 1.35.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/review.js +54 -44
- package/package.json +1 -1
package/dist/commands/review.js
CHANGED
|
@@ -122,34 +122,36 @@ Review the code changes in this PR. Look for:
|
|
|
122
122
|
6. Performance problems
|
|
123
123
|
|
|
124
124
|
## How to Leave Feedback
|
|
125
|
-
|
|
126
|
-
**IMPORTANT:
|
|
125
|
+
|
|
126
|
+
**IMPORTANT: Submit only ONE review to avoid duplicate reviews on GitHub.**
|
|
127
|
+
|
|
128
|
+
${botToken ? `A bot token is configured. Use this prefix for ALL gh commands:
|
|
127
129
|
\`\`\`bash
|
|
128
130
|
GH_TOKEN=\${BOT_TOKEN} gh pr review ...
|
|
129
|
-
GH_TOKEN=\${BOT_TOKEN} gh pr comment ...
|
|
130
131
|
\`\`\`
|
|
131
132
|
The BOT_TOKEN environment variable is already set in this terminal.
|
|
132
133
|
|
|
133
|
-
|
|
134
|
+
Collect all your feedback and submit it in a SINGLE review command:
|
|
134
135
|
|
|
135
136
|
\`\`\`bash
|
|
136
|
-
#
|
|
137
|
-
GH_TOKEN=\${BOT_TOKEN} gh pr review ${prNumber} --
|
|
137
|
+
# If the code looks good:
|
|
138
|
+
GH_TOKEN=\${BOT_TOKEN} gh pr review ${prNumber} --approve --body "LGTM! Code looks good."
|
|
138
139
|
|
|
140
|
+
# If there are issues to address:
|
|
141
|
+
GH_TOKEN=\${BOT_TOKEN} gh pr review ${prNumber} --request-changes --body "## Review Feedback
|
|
142
|
+
|
|
143
|
+
**File: path/to/file.ts**
|
|
139
144
|
Description of the issue...
|
|
140
145
|
|
|
141
146
|
\\\`\\\`\\\`suggestion
|
|
142
147
|
// Your suggested fix here
|
|
143
148
|
\\\`\\\`\\\`
|
|
144
|
-
"
|
|
145
149
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
GH_TOKEN=\${BOT_TOKEN} gh pr review ${prNumber} --request-changes --body "Please address the issues above."
|
|
150
|
+
**File: another/file.ts**
|
|
151
|
+
Another issue...
|
|
152
|
+
"
|
|
150
153
|
\`\`\`
|
|
151
|
-
` : `
|
|
152
|
-
First, check if you can post formal reviews by running these commands:
|
|
154
|
+
` : `First, check if you can post formal reviews by running these commands:
|
|
153
155
|
\`\`\`bash
|
|
154
156
|
# Get PR author
|
|
155
157
|
PR_AUTHOR=$(gh pr view ${prNumber} --json author --jq .author.login)
|
|
@@ -159,31 +161,34 @@ echo "PR author: $PR_AUTHOR, Current user: $CURRENT_USER"
|
|
|
159
161
|
\`\`\`
|
|
160
162
|
|
|
161
163
|
### If PR author ≠ Current user (reviewing someone else's PR):
|
|
162
|
-
|
|
164
|
+
Collect all your feedback and submit it in a SINGLE review command:
|
|
163
165
|
|
|
164
166
|
\`\`\`bash
|
|
165
|
-
#
|
|
166
|
-
gh pr review ${prNumber} --
|
|
167
|
+
# If the code looks good:
|
|
168
|
+
gh pr review ${prNumber} --approve --body "LGTM! Code looks good."
|
|
169
|
+
|
|
170
|
+
# If there are issues to address:
|
|
171
|
+
gh pr review ${prNumber} --request-changes --body "## Review Feedback
|
|
167
172
|
|
|
173
|
+
**File: path/to/file.ts**
|
|
168
174
|
Description of the issue...
|
|
169
175
|
|
|
170
176
|
\\\`\\\`\\\`suggestion
|
|
171
177
|
// Your suggested fix here
|
|
172
178
|
\\\`\\\`\\\`
|
|
173
|
-
"
|
|
174
179
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
gh pr review ${prNumber} --request-changes --body "Please address the issues above."
|
|
180
|
+
**File: another/file.ts**
|
|
181
|
+
Another issue...
|
|
182
|
+
"
|
|
179
183
|
\`\`\`
|
|
180
184
|
|
|
181
185
|
### If PR author = Current user (reviewing your own PR):
|
|
182
186
|
You can only post comments (GitHub doesn't allow self-review):
|
|
183
187
|
|
|
184
188
|
\`\`\`bash
|
|
185
|
-
gh pr comment ${prNumber} --body "
|
|
189
|
+
gh pr comment ${prNumber} --body "## Self-Review Notes
|
|
186
190
|
|
|
191
|
+
**File: path/to/file.ts**
|
|
187
192
|
Description of the issue...
|
|
188
193
|
|
|
189
194
|
\\\`\\\`\\\`suggestion
|
|
@@ -405,34 +410,36 @@ Review the code changes in this PR. Look for:
|
|
|
405
410
|
6. Performance problems
|
|
406
411
|
|
|
407
412
|
## How to Leave Feedback
|
|
408
|
-
|
|
409
|
-
**IMPORTANT:
|
|
413
|
+
|
|
414
|
+
**IMPORTANT: Submit only ONE review to avoid duplicate reviews on GitHub.**
|
|
415
|
+
|
|
416
|
+
${botToken ? `A bot token is configured. Use this prefix for ALL gh commands:
|
|
410
417
|
\`\`\`bash
|
|
411
418
|
GH_TOKEN=\${BOT_TOKEN} gh pr review ...
|
|
412
|
-
GH_TOKEN=\${BOT_TOKEN} gh pr comment ...
|
|
413
419
|
\`\`\`
|
|
414
420
|
The BOT_TOKEN environment variable is already set in this terminal.
|
|
415
421
|
|
|
416
|
-
|
|
422
|
+
Collect all your feedback and submit it in a SINGLE review command:
|
|
417
423
|
|
|
418
424
|
\`\`\`bash
|
|
419
|
-
#
|
|
420
|
-
GH_TOKEN=\${BOT_TOKEN} gh pr review ${pr.number} --
|
|
425
|
+
# If the code looks good:
|
|
426
|
+
GH_TOKEN=\${BOT_TOKEN} gh pr review ${pr.number} --approve --body "LGTM! Code looks good."
|
|
421
427
|
|
|
428
|
+
# If there are issues to address:
|
|
429
|
+
GH_TOKEN=\${BOT_TOKEN} gh pr review ${pr.number} --request-changes --body "## Review Feedback
|
|
430
|
+
|
|
431
|
+
**File: path/to/file.ts**
|
|
422
432
|
Description of the issue...
|
|
423
433
|
|
|
424
434
|
\\\`\\\`\\\`suggestion
|
|
425
435
|
// Your suggested fix here
|
|
426
436
|
\\\`\\\`\\\`
|
|
427
|
-
"
|
|
428
437
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
GH_TOKEN=\${BOT_TOKEN} gh pr review ${pr.number} --request-changes --body "Please address the issues above."
|
|
438
|
+
**File: another/file.ts**
|
|
439
|
+
Another issue...
|
|
440
|
+
"
|
|
433
441
|
\`\`\`
|
|
434
|
-
` : `
|
|
435
|
-
First, check if you can post formal reviews by running these commands:
|
|
442
|
+
` : `First, check if you can post formal reviews by running these commands:
|
|
436
443
|
\`\`\`bash
|
|
437
444
|
# Get PR author
|
|
438
445
|
PR_AUTHOR=$(gh pr view ${pr.number} --json author --jq .author.login)
|
|
@@ -442,31 +449,34 @@ echo "PR author: $PR_AUTHOR, Current user: $CURRENT_USER"
|
|
|
442
449
|
\`\`\`
|
|
443
450
|
|
|
444
451
|
### If PR author ≠ Current user (reviewing someone else's PR):
|
|
445
|
-
|
|
452
|
+
Collect all your feedback and submit it in a SINGLE review command:
|
|
446
453
|
|
|
447
454
|
\`\`\`bash
|
|
448
|
-
#
|
|
449
|
-
gh pr review ${pr.number} --
|
|
455
|
+
# If the code looks good:
|
|
456
|
+
gh pr review ${pr.number} --approve --body "LGTM! Code looks good."
|
|
457
|
+
|
|
458
|
+
# If there are issues to address:
|
|
459
|
+
gh pr review ${pr.number} --request-changes --body "## Review Feedback
|
|
450
460
|
|
|
461
|
+
**File: path/to/file.ts**
|
|
451
462
|
Description of the issue...
|
|
452
463
|
|
|
453
464
|
\\\`\\\`\\\`suggestion
|
|
454
465
|
// Your suggested fix here
|
|
455
466
|
\\\`\\\`\\\`
|
|
456
|
-
"
|
|
457
467
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
gh pr review ${pr.number} --request-changes --body "Please address the issues above."
|
|
468
|
+
**File: another/file.ts**
|
|
469
|
+
Another issue...
|
|
470
|
+
"
|
|
462
471
|
\`\`\`
|
|
463
472
|
|
|
464
473
|
### If PR author = Current user (reviewing your own PR):
|
|
465
474
|
You can only post comments (GitHub doesn't allow self-review):
|
|
466
475
|
|
|
467
476
|
\`\`\`bash
|
|
468
|
-
gh pr comment ${pr.number} --body "
|
|
477
|
+
gh pr comment ${pr.number} --body "## Self-Review Notes
|
|
469
478
|
|
|
479
|
+
**File: path/to/file.ts**
|
|
470
480
|
Description of the issue...
|
|
471
481
|
|
|
472
482
|
\\\`\\\`\\\`suggestion
|