Add label filtering to bd list with AND/OR semantics
- Add --label flag for AND filtering (must have ALL labels) - Add --label-any flag for OR filtering (must have AT LEAST ONE label) - Add normalizeLabels() helper to trim, dedupe, and clean inputs - Fix RPC title filtering parity bug (forward via Query field) - Add comprehensive tests for label filtering including combined AND+OR - Update documentation in README and CHANGELOG - Improve flag help text to clarify combined semantics Closes bd-161
This commit is contained in:
@@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- **Label Filtering**: Enhanced `bd list` command with label-based filtering (bd-161)
|
||||
- `--label` (or `-l`): Filter by multiple labels with AND semantics (must have ALL)
|
||||
- `--label-any`: Filter by multiple labels with OR semantics (must have AT LEAST ONE)
|
||||
- Examples:
|
||||
- `bd list --label backend,urgent`: Issues with both 'backend' AND 'urgent'
|
||||
- `bd list --label-any frontend,backend`: Issues with either 'frontend' OR 'backend'
|
||||
- Works in both daemon and direct modes
|
||||
- Includes comprehensive test coverage
|
||||
- **Log Rotation**: Automatic daemon log rotation with configurable limits (bd-154)
|
||||
- Prevents unbounded log file growth for long-running daemons
|
||||
- Configurable via environment variables: `BEADS_DAEMON_LOG_MAX_SIZE`, `BEADS_DAEMON_LOG_MAX_BACKUPS`, `BEADS_DAEMON_LOG_MAX_AGE`
|
||||
|
||||
Reference in New Issue
Block a user