hamster-wheel-cli 0.3.1 → 0.3.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/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/dist/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/loop.ts +3 -1
package/package.json
CHANGED
package/src/loop.ts
CHANGED
|
@@ -316,6 +316,8 @@ export async function runLoop(config: LoopConfig): Promise<LoopResult> {
|
|
|
316
316
|
const logger = new Logger({ verbose: config.verbose, logFile: config.logFile });
|
|
317
317
|
const repoRoot = await getRepoRoot(config.cwd, logger);
|
|
318
318
|
logger.debug(`仓库根目录: ${repoRoot}`);
|
|
319
|
+
// 项目名以首次识别为准,避免切换 worktree 后发生变化。
|
|
320
|
+
const initialProjectName = path.basename(repoRoot);
|
|
319
321
|
|
|
320
322
|
let branchName = config.git.branchName;
|
|
321
323
|
let workDir = repoRoot;
|
|
@@ -338,7 +340,7 @@ export async function runLoop(config: LoopConfig): Promise<LoopResult> {
|
|
|
338
340
|
let pushSucceeded = false;
|
|
339
341
|
|
|
340
342
|
const preWorktreeRecords: string[] = [];
|
|
341
|
-
const resolveProjectName = (): string =>
|
|
343
|
+
const resolveProjectName = (): string => initialProjectName;
|
|
342
344
|
|
|
343
345
|
const notifyWebhook = async (
|
|
344
346
|
event: 'task_start' | 'iteration_start' | 'task_end',
|