claude-issue-solver 1.24.3 → 1.25.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 +17 -2
- package/package.json +1 -1
package/dist/commands/review.js
CHANGED
|
@@ -321,7 +321,7 @@ function getRepoName(projectRoot) {
|
|
|
321
321
|
}
|
|
322
322
|
function getOpenPRs(projectRoot) {
|
|
323
323
|
try {
|
|
324
|
-
const output = (0, child_process_1.execSync)('gh pr list --state open --json number,title,headRefName --limit 50', {
|
|
324
|
+
const output = (0, child_process_1.execSync)('gh pr list --state open --json number,title,headRefName,reviewDecision --limit 50', {
|
|
325
325
|
cwd: projectRoot,
|
|
326
326
|
encoding: 'utf-8',
|
|
327
327
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
@@ -333,6 +333,7 @@ function getOpenPRs(projectRoot) {
|
|
|
333
333
|
return {
|
|
334
334
|
...pr,
|
|
335
335
|
issueNumber: match ? parseInt(match[1], 10) : null,
|
|
336
|
+
reviewDecision: pr.reviewDecision,
|
|
336
337
|
};
|
|
337
338
|
});
|
|
338
339
|
}
|
|
@@ -354,8 +355,22 @@ async function selectReviewCommand() {
|
|
|
354
355
|
// Build choices for checkbox prompt
|
|
355
356
|
const choices = prs.map((pr) => {
|
|
356
357
|
const issueTag = pr.issueNumber ? chalk_1.default.dim(` (issue #${pr.issueNumber})`) : '';
|
|
358
|
+
let statusTag = '';
|
|
359
|
+
switch (pr.reviewDecision) {
|
|
360
|
+
case 'APPROVED':
|
|
361
|
+
statusTag = chalk_1.default.green(' ✓ Approved');
|
|
362
|
+
break;
|
|
363
|
+
case 'CHANGES_REQUESTED':
|
|
364
|
+
statusTag = chalk_1.default.red(' ✗ Changes requested');
|
|
365
|
+
break;
|
|
366
|
+
case 'REVIEW_REQUIRED':
|
|
367
|
+
statusTag = chalk_1.default.yellow(' ○ Review required');
|
|
368
|
+
break;
|
|
369
|
+
default:
|
|
370
|
+
statusTag = chalk_1.default.dim(' ○ No reviews');
|
|
371
|
+
}
|
|
357
372
|
return {
|
|
358
|
-
name: `#${pr.number}\t${pr.title}${issueTag}`,
|
|
373
|
+
name: `#${pr.number}\t${pr.title}${issueTag}${statusTag}`,
|
|
359
374
|
value: pr,
|
|
360
375
|
checked: false,
|
|
361
376
|
};
|