@misaelabanto/commita 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -209,12 +209,21 @@ bun run index.ts --all
209
209
 
210
210
  ### Ignore Patterns
211
211
 
212
- Exclude files matching patterns:
212
+ Exclude files matching glob patterns. You can use folder names, glob wildcards, or both:
213
213
 
214
214
  ```bash
215
- bun run index.ts --all --ignore "*.log,node_modules/*,dist/*"
215
+ # Ignore entire directories by name
216
+ bun run index.ts --all --ignore "dumps,node_modules"
217
+
218
+ # Ignore files by extension
219
+ bun run index.ts --all --ignore "*.log,*.csv"
220
+
221
+ # Mix folder names and glob patterns
222
+ bun run index.ts --all --ignore "dumps,*.log,dist/*"
216
223
  ```
217
224
 
225
+ > **Note**: Bare folder names like `dumps` automatically match all files inside that folder (equivalent to `dumps/**`).
226
+
218
227
  ### Skip Pushing
219
228
 
220
229
  Don't push commits to remote:
@@ -295,7 +304,7 @@ This will group files by their directories and create separate commits for each
295
304
  Ignore build artifacts and logs:
296
305
 
297
306
  ```bash
298
- bun run index.ts --all --ignore "dist/*,*.log,coverage/*"
307
+ bun run index.ts --all --ignore "dist,*.log,coverage"
299
308
  ```
300
309
 
301
310
  ### Scenario 3: Local Commits Only
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misaelabanto/commita",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "AI-powered git auto-commit tool that intelligently groups your changes and generates meaningful commit messages",
5
5
  "module": "index.ts",
6
6
  "type": "module",
package/src/cli/index.ts CHANGED
@@ -15,7 +15,7 @@ export async function runCLI() {
15
15
  .description('AI-powered git auto-commit tool')
16
16
  .version(packageJson.version, '-v, --version', 'Show version number')
17
17
  .option('-a, --all', 'Process all changes grouped by folders', false)
18
- .option('-i, --ignore <patterns>', 'Comma-separated patterns to exclude', '')
18
+ .option('-i, --ignore <patterns>', 'Comma-separated glob patterns to exclude (e.g. "dumps,*.log,dist/*")', '')
19
19
  .option('--no-push', 'Skip pushing after commit')
20
20
  .option('--no-verify', 'Bypass git pre-commit and commit-msg hooks')
21
21
  .option('-c, --config <path>', 'Path to custom config file')
@@ -13,7 +13,8 @@ export class PatternMatcher {
13
13
  }
14
14
 
15
15
  return this.patterns.some(pattern =>
16
- minimatch(filePath, pattern, { dot: true })
16
+ minimatch(filePath, pattern, { dot: true }) ||
17
+ minimatch(filePath, `${pattern}/**`, { dot: true })
17
18
  );
18
19
  }
19
20