claude-issue-solver 1.26.3 → 1.26.4
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/utils/github.js +3 -6
- package/package.json +1 -1
package/dist/utils/github.js
CHANGED
|
@@ -15,17 +15,14 @@ const execAsync = (0, util_1.promisify)(child_process_1.exec);
|
|
|
15
15
|
function createIssue(title, body, labels) {
|
|
16
16
|
try {
|
|
17
17
|
// Build args array to avoid shell escaping issues
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
args.push('--body', body);
|
|
21
|
-
}
|
|
18
|
+
// Note: gh issue create requires both --title and --body when non-interactive
|
|
19
|
+
const args = ['issue', 'create', '--title', title, '--body', body || title];
|
|
22
20
|
if (labels && labels.length > 0) {
|
|
23
21
|
for (const label of labels) {
|
|
24
22
|
args.push('--label', label);
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
|
-
// Use
|
|
28
|
-
// Instead, use -- to prevent argument parsing issues and proper quoting
|
|
25
|
+
// Use single quotes with proper escaping for shell safety
|
|
29
26
|
const cmd = `gh ${args.map(arg => `'${arg.replace(/'/g, "'\\''")}'`).join(' ')}`;
|
|
30
27
|
const output = (0, child_process_1.execSync)(cmd, { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] });
|
|
31
28
|
// Output is the issue URL, extract the number
|