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.
@@ -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
- const args = ['issue', 'create', '--title', title];
19
- if (body) {
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 spawn-like approach with shell: false would be ideal, but execSync doesn't support it well
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-issue-solver",
3
- "version": "1.26.3",
3
+ "version": "1.26.4",
4
4
  "description": "Automatically solve GitHub issues using Claude Code",
5
5
  "main": "dist/index.js",
6
6
  "bin": {