chore: add completion logs for branch and issue generation
This commit is contained in:
parent
9546806649
commit
79ee353990
@ -199,6 +199,7 @@ describe('confirmAndCreateWorktree', () => {
|
||||
|
||||
// Then
|
||||
expect(mockInfo).toHaveBeenCalledWith('Generating branch name...');
|
||||
expect(mockInfo).toHaveBeenCalledWith('Branch name generated: test-task');
|
||||
});
|
||||
|
||||
it('should skip prompt when override is false', async () => {
|
||||
|
||||
@ -193,6 +193,7 @@ describe('resolveTaskExecution', () => {
|
||||
|
||||
// Then
|
||||
expect(mockInfo).toHaveBeenCalledWith('Generating branch name...');
|
||||
expect(mockInfo).toHaveBeenCalledWith('Branch name generated: test-task');
|
||||
});
|
||||
|
||||
it('should use task content (not name) for AI summarization', async () => {
|
||||
|
||||
@ -46,6 +46,7 @@ function resolveIssueInput(
|
||||
throw new Error(ghStatus.error);
|
||||
}
|
||||
const issue = fetchIssue(issueOption);
|
||||
info(`GitHub Issue fetched: #${issue.number} ${issue.title}`);
|
||||
return { issues: [issue], initialInput: formatIssueAsTask(issue) };
|
||||
}
|
||||
|
||||
@ -61,6 +62,7 @@ function resolveIssueInput(
|
||||
throw new Error(`Invalid issue reference: ${task}`);
|
||||
}
|
||||
const issues = issueNumbers.map((n) => fetchIssue(n));
|
||||
info(`GitHub Issues fetched: ${issues.map((issue) => `#${issue.number}`).join(', ')}`);
|
||||
return { issues, initialInput: issues.map(formatIssueAsTask).join('\n\n---\n\n') };
|
||||
}
|
||||
|
||||
|
||||
@ -183,6 +183,7 @@ export async function addTask(cwd: string, task?: string): Promise<void> {
|
||||
const numbers = parseIssueNumbers([trimmedTask]);
|
||||
if (numbers.length > 0) {
|
||||
issueNumber = numbers[0];
|
||||
info(`GitHub Issue fetched: #${issueNumber}`);
|
||||
}
|
||||
} catch (e) {
|
||||
const msg = getErrorMessage(e);
|
||||
|
||||
@ -62,6 +62,7 @@ export async function resolveTaskExecution(
|
||||
baseBranch = getCurrentBranch(defaultCwd);
|
||||
info('Generating branch name...');
|
||||
const taskSlug = await summarizeTaskName(task.content, { cwd: defaultCwd });
|
||||
info(`Branch name generated: ${taskSlug}`);
|
||||
|
||||
throwIfAborted(abortSignal);
|
||||
info('Creating clone...');
|
||||
|
||||
@ -115,6 +115,7 @@ export async function confirmAndCreateWorktree(
|
||||
|
||||
info('Generating branch name...');
|
||||
const taskSlug = await summarizeTaskName(task, { cwd });
|
||||
info(`Branch name generated: ${taskSlug}`);
|
||||
|
||||
info('Creating clone...');
|
||||
const result = createSharedClone(cwd, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user