claude-issue-solver 1.13.0 → 1.14.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/list.js +3 -1
- package/dist/commands/select.js +8 -15
- package/package.json +1 -1
package/dist/commands/list.js
CHANGED
|
@@ -15,11 +15,13 @@ async function listCommand() {
|
|
|
15
15
|
console.log(chalk_1.default.yellow('No open issues found.'));
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
|
+
const issuesWithPRs = (0, github_1.getIssuesWithOpenPRs)();
|
|
18
19
|
for (const issue of issues) {
|
|
20
|
+
const prTag = issuesWithPRs.has(issue.number) ? chalk_1.default.magenta(' [PR]') : '';
|
|
19
21
|
const labels = issue.labels.length > 0
|
|
20
22
|
? ' ' + issue.labels.map(l => chalk_1.default.hex(`#${l.color}`).bold(`[${l.name}]`)).join(' ')
|
|
21
23
|
: '';
|
|
22
|
-
console.log(` ${chalk_1.default.cyan(`#${issue.number}`)}\t${issue.title}${labels}`);
|
|
24
|
+
console.log(` ${chalk_1.default.cyan(`#${issue.number}`)}\t${issue.title}${prTag}${labels}`);
|
|
23
25
|
}
|
|
24
26
|
console.log();
|
|
25
27
|
}
|
package/dist/commands/select.js
CHANGED
|
@@ -17,22 +17,15 @@ async function selectCommand() {
|
|
|
17
17
|
console.log(chalk_1.default.yellow('No open issues found.'));
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
// Filter out issues that already have open PRs
|
|
21
20
|
const issuesWithPRs = (0, github_1.getIssuesWithOpenPRs)();
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
console.log(chalk_1.default.dim(`(${skipped} issue${skipped > 1 ? 's' : ''} with open PRs hidden)\n`));
|
|
31
|
-
}
|
|
32
|
-
const choices = availableIssues.map((issue) => ({
|
|
33
|
-
name: `#${issue.number}\t${issue.title}`,
|
|
34
|
-
value: issue.number,
|
|
35
|
-
}));
|
|
21
|
+
const choices = issues.map((issue) => {
|
|
22
|
+
const hasPR = issuesWithPRs.has(issue.number);
|
|
23
|
+
const prTag = hasPR ? chalk_1.default.magenta(' [PR]') : '';
|
|
24
|
+
return {
|
|
25
|
+
name: `#${issue.number}\t${issue.title}${prTag}`,
|
|
26
|
+
value: issue.number,
|
|
27
|
+
};
|
|
28
|
+
});
|
|
36
29
|
choices.push({
|
|
37
30
|
name: chalk_1.default.dim('Cancel'),
|
|
38
31
|
value: -1,
|