feat: Enable /setup-github to always run, and error appropriately (#5653)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
Lee James
2025-08-06 09:06:37 -04:00
committed by GitHub
parent aab850668c
commit b38f377c9a
3 changed files with 18 additions and 8 deletions

View File

@@ -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.',
);
});
});