feat(scope): add OMIT_SCOPE config option

This commit is contained in:
Bautista Igarzabal
2025-03-09 00:41:30 -03:00
parent 6c9d89afea
commit f8ce0d32d5
23 changed files with 120 additions and 34 deletions
+3 -1
View File
@@ -106,7 +106,8 @@ describe('config', () => {
envConfigFile = await generateConfig('.env', {
OCO_TOKENS_MAX_INPUT: '8192',
OCO_ONE_LINE_COMMIT: 'false'
OCO_ONE_LINE_COMMIT: 'false',
OCO_OMIT_SCOPE: 'true'
});
const config = getConfig({
@@ -119,6 +120,7 @@ describe('config', () => {
expect(config.OCO_TOKENS_MAX_OUTPUT).toEqual(500);
expect(config.OCO_GITPUSH).toEqual(true);
expect(config.OCO_ONE_LINE_COMMIT).toEqual(false);
expect(config.OCO_OMIT_SCOPE).toEqual(true);
});
it('should handle empty local config correctly', async () => {