diff --git a/.changeset/path-filtering.md b/.changeset/path-filtering.md deleted file mode 100644 index 9d55b00..0000000 --- a/.changeset/path-filtering.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"codeowners-git": minor ---- - -Add path filtering support for branch and multi-branch commands - -- New optional `[pattern]` positional argument for `branch` and `multi-branch` commands -- Filter files using micromatch patterns (e.g., `packages`, `src/**/*.tsx`, `packages,apps`) -- Directory names automatically expand to include all files (e.g., `packages` → `packages/**`) -- Supports comma-separated patterns for multiple directories diff --git a/.changeset/real-dogs-itch.md b/.changeset/real-dogs-itch.md deleted file mode 100644 index e30bf4a..0000000 --- a/.changeset/real-dogs-itch.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -"codeowners-git": major ---- - -list and recover command enhancements - -### Breaking Changes - -- **All commands**: Now work on **staged files** instead of unstaged files. Stage your changes with `git add` before running commands. -- **`list` command**: Removed `-o, --owner` flag - use `--include` instead for owner filtering -- **`branch` command**: Renamed `-o, --owner` to `-i, --include` for consistency with other commands -- **`extract` command**: Renamed `-o, --owner` to `-i, --include` for consistency with other commands -- **Path patterns**: Changed from comma-separated to micromatch brace expansion syntax - - Before: `packages,apps` (comma-separated) - - After: `{packages,apps}` (brace expansion) - -### New Features - -- **`list` command**: Added `[pattern]` positional argument for path filtering (consistent with `branch` and `multi-branch`) -- **`list` command**: Added `--group, -g` flag to group files by code owner -- **`list`, `branch`, `multi-branch`, `extract` commands**: Added `--exclusive, -e` flag to only include files where the owner is the sole owner (excludes co-owned files) -- **`list`, `branch`, `multi-branch`, `extract` commands**: Added `--co-owned, -c` flag to only include files with multiple owners (co-owned files) -- **`extract` command**: Added `[pattern]` positional argument for path filtering (consistent with other commands) -- **Path patterns**: Full micromatch/glob syntax support including `*`, `**`, `?`, `[...]`, `{...}` diff --git a/CHANGELOG.md b/CHANGELOG.md index 35aacbe..3a56bb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,39 @@ # codeowners-git +## 2.0.0 + +### Major Changes + +- 3b6a133: list and recover command enhancements + + ### Breaking Changes + + - **All commands**: Now work on **staged files** instead of unstaged files. Stage your changes with `git add` before running commands. + - **`list` command**: Removed `-o, --owner` flag - use `--include` instead for owner filtering + - **`branch` command**: Renamed `-o, --owner` to `-i, --include` for consistency with other commands + - **`extract` command**: Renamed `-o, --owner` to `-i, --include` for consistency with other commands + - **Path patterns**: Changed from comma-separated to micromatch brace expansion syntax + - Before: `packages,apps` (comma-separated) + - After: `{packages,apps}` (brace expansion) + + ### New Features + + - **`list` command**: Added `[pattern]` positional argument for path filtering (consistent with `branch` and `multi-branch`) + - **`list` command**: Added `--group, -g` flag to group files by code owner + - **`list`, `branch`, `multi-branch`, `extract` commands**: Added `--exclusive, -e` flag to only include files where the owner is the sole owner (excludes co-owned files) + - **`list`, `branch`, `multi-branch`, `extract` commands**: Added `--co-owned, -c` flag to only include files with multiple owners (co-owned files) + - **`extract` command**: Added `[pattern]` positional argument for path filtering (consistent with other commands) + - **Path patterns**: Full micromatch/glob syntax support including `*`, `**`, `?`, `[...]`, `{...}` + +### Minor Changes + +- c51b9c0: Add path filtering support for branch and multi-branch commands + + - New optional `[pattern]` positional argument for `branch` and `multi-branch` commands + - Filter files using micromatch patterns (e.g., `packages`, `src/**/*.tsx`, `packages,apps`) + - Directory names automatically expand to include all files (e.g., `packages` → `packages/**`) + - Supports comma-separated patterns for multiple directories + ## 1.8.0 ### Minor Changes diff --git a/package.json b/package.json index 7647b1b..322dda4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codeowners-git", - "version": "1.8.0", + "version": "2.0.0", "module": "src/cli.ts", "type": "module", "private": false,