@erclx/aitk 3.33.0 → 3.33.1
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/claude/.claude-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/src/github.ts +4 -0
- package/src/sync/git.ts +7 -1
package/package.json
CHANGED
package/src/github.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { execa } from 'execa'
|
|
2
|
+
import { gitEnv } from '@/git-env'
|
|
2
3
|
import { PROJECT_ROOT } from '@/project-root'
|
|
3
4
|
import { buildIssueArgs, type CreateIssueOptions } from '@/github-format'
|
|
4
5
|
|
|
@@ -9,9 +10,12 @@ export async function createGithubIssue(
|
|
|
9
10
|
): Promise<string | null> {
|
|
10
11
|
if (Bun.which('gh') === null) return null
|
|
11
12
|
try {
|
|
13
|
+
// See src/worktrees/reclaim.ts for why gh needs the stripped environment.
|
|
12
14
|
const result = await execa('gh', buildIssueArgs(opts), {
|
|
13
15
|
cwd: PROJECT_ROOT,
|
|
14
16
|
timeout: GH_TIMEOUT_MS,
|
|
17
|
+
env: gitEnv(),
|
|
18
|
+
extendEnv: false,
|
|
15
19
|
})
|
|
16
20
|
return result.stdout.trim() || null
|
|
17
21
|
} catch {
|
package/src/sync/git.ts
CHANGED
|
@@ -164,7 +164,13 @@ export function createPullRequestOpener(target: string): PullRequestOpener {
|
|
|
164
164
|
const result = await execa(
|
|
165
165
|
'gh',
|
|
166
166
|
['pr', 'create', '--title', title, '--body-file', '-'],
|
|
167
|
-
{
|
|
167
|
+
{
|
|
168
|
+
cwd: target,
|
|
169
|
+
input: body,
|
|
170
|
+
reject: false,
|
|
171
|
+
env: gitEnv(),
|
|
172
|
+
extendEnv: false,
|
|
173
|
+
},
|
|
168
174
|
)
|
|
169
175
|
|
|
170
176
|
if (result.exitCode !== 0) {
|