claude-issue-solver 1.35.0 → 1.37.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 +60 -44
- package/dist/commands/solve.js +3 -0
- 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."
|
|
139
|
+
|
|
140
|
+
# If there are issues to address:
|
|
141
|
+
GH_TOKEN=\${BOT_TOKEN} gh pr review ${prNumber} --request-changes --body "## Review Feedback
|
|
138
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
|
|
@@ -212,6 +217,9 @@ Start by examining the diff and the changed files, then provide your review.`;
|
|
|
212
217
|
const runnerContent = `#!/bin/bash
|
|
213
218
|
cd "${projectRoot}"
|
|
214
219
|
|
|
220
|
+
# Disable Oh My Zsh auto-update prompt to prevent blocking
|
|
221
|
+
export DISABLE_AUTO_UPDATE="true"
|
|
222
|
+
|
|
215
223
|
# Set bot token if configured
|
|
216
224
|
${botTokenEnv}
|
|
217
225
|
|
|
@@ -405,34 +413,36 @@ Review the code changes in this PR. Look for:
|
|
|
405
413
|
6. Performance problems
|
|
406
414
|
|
|
407
415
|
## How to Leave Feedback
|
|
408
|
-
|
|
409
|
-
**IMPORTANT:
|
|
416
|
+
|
|
417
|
+
**IMPORTANT: Submit only ONE review to avoid duplicate reviews on GitHub.**
|
|
418
|
+
|
|
419
|
+
${botToken ? `A bot token is configured. Use this prefix for ALL gh commands:
|
|
410
420
|
\`\`\`bash
|
|
411
421
|
GH_TOKEN=\${BOT_TOKEN} gh pr review ...
|
|
412
|
-
GH_TOKEN=\${BOT_TOKEN} gh pr comment ...
|
|
413
422
|
\`\`\`
|
|
414
423
|
The BOT_TOKEN environment variable is already set in this terminal.
|
|
415
424
|
|
|
416
|
-
|
|
425
|
+
Collect all your feedback and submit it in a SINGLE review command:
|
|
417
426
|
|
|
418
427
|
\`\`\`bash
|
|
419
|
-
#
|
|
420
|
-
GH_TOKEN=\${BOT_TOKEN} gh pr review ${pr.number} --
|
|
428
|
+
# If the code looks good:
|
|
429
|
+
GH_TOKEN=\${BOT_TOKEN} gh pr review ${pr.number} --approve --body "LGTM! Code looks good."
|
|
430
|
+
|
|
431
|
+
# If there are issues to address:
|
|
432
|
+
GH_TOKEN=\${BOT_TOKEN} gh pr review ${pr.number} --request-changes --body "## Review Feedback
|
|
421
433
|
|
|
434
|
+
**File: path/to/file.ts**
|
|
422
435
|
Description of the issue...
|
|
423
436
|
|
|
424
437
|
\\\`\\\`\\\`suggestion
|
|
425
438
|
// Your suggested fix here
|
|
426
439
|
\\\`\\\`\\\`
|
|
427
|
-
"
|
|
428
440
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
GH_TOKEN=\${BOT_TOKEN} gh pr review ${pr.number} --request-changes --body "Please address the issues above."
|
|
441
|
+
**File: another/file.ts**
|
|
442
|
+
Another issue...
|
|
443
|
+
"
|
|
433
444
|
\`\`\`
|
|
434
|
-
` : `
|
|
435
|
-
First, check if you can post formal reviews by running these commands:
|
|
445
|
+
` : `First, check if you can post formal reviews by running these commands:
|
|
436
446
|
\`\`\`bash
|
|
437
447
|
# Get PR author
|
|
438
448
|
PR_AUTHOR=$(gh pr view ${pr.number} --json author --jq .author.login)
|
|
@@ -442,31 +452,34 @@ echo "PR author: $PR_AUTHOR, Current user: $CURRENT_USER"
|
|
|
442
452
|
\`\`\`
|
|
443
453
|
|
|
444
454
|
### If PR author ≠ Current user (reviewing someone else's PR):
|
|
445
|
-
|
|
455
|
+
Collect all your feedback and submit it in a SINGLE review command:
|
|
446
456
|
|
|
447
457
|
\`\`\`bash
|
|
448
|
-
#
|
|
449
|
-
gh pr review ${pr.number} --
|
|
458
|
+
# If the code looks good:
|
|
459
|
+
gh pr review ${pr.number} --approve --body "LGTM! Code looks good."
|
|
460
|
+
|
|
461
|
+
# If there are issues to address:
|
|
462
|
+
gh pr review ${pr.number} --request-changes --body "## Review Feedback
|
|
450
463
|
|
|
464
|
+
**File: path/to/file.ts**
|
|
451
465
|
Description of the issue...
|
|
452
466
|
|
|
453
467
|
\\\`\\\`\\\`suggestion
|
|
454
468
|
// Your suggested fix here
|
|
455
469
|
\\\`\\\`\\\`
|
|
456
|
-
"
|
|
457
470
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
gh pr review ${pr.number} --request-changes --body "Please address the issues above."
|
|
471
|
+
**File: another/file.ts**
|
|
472
|
+
Another issue...
|
|
473
|
+
"
|
|
462
474
|
\`\`\`
|
|
463
475
|
|
|
464
476
|
### If PR author = Current user (reviewing your own PR):
|
|
465
477
|
You can only post comments (GitHub doesn't allow self-review):
|
|
466
478
|
|
|
467
479
|
\`\`\`bash
|
|
468
|
-
gh pr comment ${pr.number} --body "
|
|
480
|
+
gh pr comment ${pr.number} --body "## Self-Review Notes
|
|
469
481
|
|
|
482
|
+
**File: path/to/file.ts**
|
|
470
483
|
Description of the issue...
|
|
471
484
|
|
|
472
485
|
\\\`\\\`\\\`suggestion
|
|
@@ -495,6 +508,9 @@ Start by examining the diff and the changed files, then provide your review.`;
|
|
|
495
508
|
const runnerContent = `#!/bin/bash
|
|
496
509
|
cd "${projectRoot}"
|
|
497
510
|
|
|
511
|
+
# Disable Oh My Zsh auto-update prompt to prevent blocking
|
|
512
|
+
export DISABLE_AUTO_UPDATE="true"
|
|
513
|
+
|
|
498
514
|
# Set bot token if configured
|
|
499
515
|
${botTokenEnv}
|
|
500
516
|
|
package/dist/commands/solve.js
CHANGED
|
@@ -128,6 +128,9 @@ Instructions:
|
|
|
128
128
|
const runnerContent = `#!/bin/bash
|
|
129
129
|
cd "${worktreePath}"
|
|
130
130
|
|
|
131
|
+
# Disable Oh My Zsh auto-update prompt to prevent blocking
|
|
132
|
+
export DISABLE_AUTO_UPDATE="true"
|
|
133
|
+
|
|
131
134
|
# Set terminal title
|
|
132
135
|
echo -ne "\\033]0;Issue #${issueNumber}: ${issue.title.replace(/"/g, '\\"').slice(0, 50)}\\007"
|
|
133
136
|
|