claude-issue-solver 1.11.0 → 1.13.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 +8 -1
- 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 +3 -2
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.
|
|
@@ -96,6 +100,9 @@ Run from any git repository with GitHub issues:
|
|
|
96
100
|
# Interactive: show issues and select one
|
|
97
101
|
claude-issue
|
|
98
102
|
|
|
103
|
+
# Or use the short alias
|
|
104
|
+
cis
|
|
105
|
+
|
|
99
106
|
# Solve a specific issue directly
|
|
100
107
|
claude-issue 42
|
|
101
108
|
|
|
@@ -129,7 +136,7 @@ claude-issue --help
|
|
|
129
136
|
|
|
130
137
|
| Command | Alias | Description |
|
|
131
138
|
|---------|-------|-------------|
|
|
132
|
-
| `claude-issue` |
|
|
139
|
+
| `claude-issue` | `cis` | Interactive issue selection |
|
|
133
140
|
| `claude-issue <number>` | - | Solve specific issue |
|
|
134
141
|
| `claude-issue new <title>` | - | Create issue and solve it |
|
|
135
142
|
| `claude-issue list` | `ls` | List open issues |
|
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 {
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-issue-solver",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Automatically solve GitHub issues using Claude Code",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"claude-issue": "dist/index.js"
|
|
7
|
+
"claude-issue": "dist/index.js",
|
|
8
|
+
"cis": "dist/index.js"
|
|
8
9
|
},
|
|
9
10
|
"scripts": {
|
|
10
11
|
"build": "tsc",
|