Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .changeset/path-filtering.md

This file was deleted.

24 changes: 0 additions & 24 deletions .changeset/real-dogs-itch.md

This file was deleted.

34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codeowners-git",
"version": "1.8.0",
"version": "2.0.0",
"module": "src/cli.ts",
"type": "module",
"private": false,
Expand Down