claude-issue-solver 1.30.0 → 1.30.2
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/clean.js +12 -4
- package/dist/commands/merge.js +12 -4
- package/dist/utils/github.js +3 -2
- package/package.json +1 -1
package/dist/commands/clean.js
CHANGED
|
@@ -59,12 +59,20 @@ function closeWindowsWithPath(folderPath, issueNumber, prNumber) {
|
|
|
59
59
|
(0, child_process_1.execSync)(`osascript -e '
|
|
60
60
|
tell application "iTerm"
|
|
61
61
|
repeat with w in windows
|
|
62
|
+
try
|
|
63
|
+
set windowName to name of w
|
|
64
|
+
if windowName contains "${folderName}" or windowName contains "${issuePattern}" or windowName contains "${reviewPattern}" then
|
|
65
|
+
close w
|
|
66
|
+
end if
|
|
67
|
+
end try
|
|
62
68
|
repeat with t in tabs of w
|
|
63
69
|
repeat with s in sessions of t
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
try
|
|
71
|
+
set sessionName to name of s
|
|
72
|
+
if sessionName contains "${folderName}" or sessionName contains "${issuePattern}" or sessionName contains "${reviewPattern}" then
|
|
73
|
+
close s
|
|
74
|
+
end if
|
|
75
|
+
end try
|
|
68
76
|
end repeat
|
|
69
77
|
end repeat
|
|
70
78
|
end repeat
|
package/dist/commands/merge.js
CHANGED
|
@@ -56,12 +56,20 @@ function closeWindowsWithPath(folderPath, issueNumber, prNumber) {
|
|
|
56
56
|
(0, child_process_1.execSync)(`osascript -e '
|
|
57
57
|
tell application "iTerm"
|
|
58
58
|
repeat with w in windows
|
|
59
|
+
try
|
|
60
|
+
set windowName to name of w
|
|
61
|
+
if windowName contains "${folderName}" or windowName contains "${issuePattern}" or windowName contains "${reviewPattern}" then
|
|
62
|
+
close w
|
|
63
|
+
end if
|
|
64
|
+
end try
|
|
59
65
|
repeat with t in tabs of w
|
|
60
66
|
repeat with s in sessions of t
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
try
|
|
68
|
+
set sessionName to name of s
|
|
69
|
+
if sessionName contains "${folderName}" or sessionName contains "${issuePattern}" or sessionName contains "${reviewPattern}" then
|
|
70
|
+
close s
|
|
71
|
+
end if
|
|
72
|
+
end try
|
|
65
73
|
end repeat
|
|
66
74
|
end repeat
|
|
67
75
|
end repeat
|
package/dist/utils/github.js
CHANGED
|
@@ -57,8 +57,9 @@ function getIssue(issueNumber) {
|
|
|
57
57
|
}
|
|
58
58
|
function listIssues(limit = 50) {
|
|
59
59
|
try {
|
|
60
|
-
|
|
61
|
-
const
|
|
60
|
+
// When limit is 0, fetch all (use a high number since gh requires --limit)
|
|
61
|
+
const actualLimit = limit > 0 ? limit : 1000;
|
|
62
|
+
const output = (0, child_process_1.execSync)(`gh issue list --state open --limit ${actualLimit} --json number,title,body,labels`, { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] });
|
|
62
63
|
return JSON.parse(output);
|
|
63
64
|
}
|
|
64
65
|
catch {
|