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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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.',
);
});
});