claude-issue-solver 1.11.0 → 1.12.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/README.md +4 -0
- package/dist/commands/list.js +4 -1
- package/dist/utils/github.d.ts +5 -0
- package/dist/utils/github.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
<img src="claude-issue-solver-logo.webp" alt="Claude Issue Solver Logo" width="200">
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
|
+
[](https://www.npmjs.com/package/claude-issue-solver)
|
|
8
|
+
[](https://www.npmjs.com/package/claude-issue-solver)
|
|
9
|
+
[](https://opensource.org/licenses/MIT)
|
|
10
|
+
|
|
7
11
|
Automatically solve GitHub issues using [Claude Code](https://claude.ai/code).
|
|
8
12
|
|
|
9
13
|
This CLI tool fetches an issue from your repo, creates a worktree, opens Claude Code in a new terminal to solve it, and creates a PR when done.
|
package/dist/commands/list.js
CHANGED
|
@@ -16,7 +16,10 @@ async function listCommand() {
|
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
for (const issue of issues) {
|
|
19
|
-
|
|
19
|
+
const labels = issue.labels.length > 0
|
|
20
|
+
? ' ' + issue.labels.map(l => chalk_1.default.hex(`#${l.color}`).bold(`[${l.name}]`)).join(' ')
|
|
21
|
+
: '';
|
|
22
|
+
console.log(` ${chalk_1.default.cyan(`#${issue.number}`)}\t${issue.title}${labels}`);
|
|
20
23
|
}
|
|
21
24
|
console.log();
|
|
22
25
|
}
|
package/dist/utils/github.d.ts
CHANGED
|
@@ -4,9 +4,14 @@ export interface Issue {
|
|
|
4
4
|
body: string;
|
|
5
5
|
url: string;
|
|
6
6
|
}
|
|
7
|
+
export interface Label {
|
|
8
|
+
name: string;
|
|
9
|
+
color: string;
|
|
10
|
+
}
|
|
7
11
|
export interface IssueListItem {
|
|
8
12
|
number: number;
|
|
9
13
|
title: string;
|
|
14
|
+
labels: Label[];
|
|
10
15
|
}
|
|
11
16
|
export declare function createIssue(title: string, body?: string, labels?: string[]): number | null;
|
|
12
17
|
export declare function getIssue(issueNumber: number): Issue | null;
|
package/dist/utils/github.js
CHANGED
|
@@ -48,7 +48,7 @@ function getIssue(issueNumber) {
|
|
|
48
48
|
}
|
|
49
49
|
function listIssues(limit = 20) {
|
|
50
50
|
try {
|
|
51
|
-
const output = (0, child_process_1.execSync)(`gh issue list --state open --limit ${limit} --json number,title`, { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] });
|
|
51
|
+
const output = (0, child_process_1.execSync)(`gh issue list --state open --limit ${limit} --json number,title,labels`, { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] });
|
|
52
52
|
return JSON.parse(output);
|
|
53
53
|
}
|
|
54
54
|
catch {
|