From b38f377c9a2672e88dd15119b38d908c0f00b54a Mon Sep 17 00:00:00 2001 From: Lee James <40045512+leehagoodjames@users.noreply.github.com> Date: Wed, 6 Aug 2025 09:06:37 -0400 Subject: feat: Enable /setup-github to always run, and error appropriately (#5653) Co-authored-by: Jacob Richman --- packages/cli/src/ui/commands/setupGithubCommand.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/cli/src/ui/commands/setupGithubCommand.test.ts') diff --git a/packages/cli/src/ui/commands/setupGithubCommand.test.ts b/packages/cli/src/ui/commands/setupGithubCommand.test.ts index 891c84e7..ae6378c7 100644 --- a/packages/cli/src/ui/commands/setupGithubCommand.test.ts +++ b/packages/cli/src/ui/commands/setupGithubCommand.test.ts @@ -61,6 +61,8 @@ describe('setupGithubCommand', () => { vi.mocked(child_process.execSync).mockReturnValue(''); expect(() => { setupGithubCommand.action?.({} as CommandContext, ''); - }).toThrow('Unable to determine the Git root directory.'); + }).toThrow( + 'Unable to determine the GitHub repository. /setup-github must be run from a git repository.', + ); }); }); -- cgit v1.2.3