#0116 Advanced Filtering #158

Merged
fuzzy merged 1 commit from feature/0116-advanced-filtering into main 2026-07-06 07:59:07 +00:00
Owner

Adds advanced filtering options to commit walking and CLI.

Changes:

  • src/hottea/commit.py — new params: start_date, branch, message_pattern, no_merges
  • src/hottea/cli.py — new flags: --branch, --message-pattern, --start-date, --no-merges
  • tests/test_commit.py — 4 new tests for each filter
  • tests/test_cli.py — 4 new tests for each flag

New CLI flags:

  • --branch main — only commits from this branch
  • --message-pattern "feat:" — regex filter on commit messages
  • --start-date YYYY-MM-DD — lower bound for date range
  • --no-merges — exclude merge commits

Closes: #0116, #0112, #0113, #0114, #0115

Adds advanced filtering options to commit walking and CLI. **Changes:** - `src/hottea/commit.py` — new params: `start_date`, `branch`, `message_pattern`, `no_merges` - `src/hottea/cli.py` — new flags: `--branch`, `--message-pattern`, `--start-date`, `--no-merges` - `tests/test_commit.py` — 4 new tests for each filter - `tests/test_cli.py` — 4 new tests for each flag **New CLI flags:** - `--branch main` — only commits from this branch - `--message-pattern "feat:"` — regex filter on commit messages - `--start-date YYYY-MM-DD` — lower bound for date range - `--no-merges` — exclude merge commits **Closes:** #0116, #0112, #0113, #0114, #0115
feat(commit): add advanced filtering — branch, message, start-date, no-merges
All checks were successful
CI / lint-and-test (pull_request) Successful in 1m35s
ee18630b92
Add multiple filtering options to walk_commits() and CLI:

- --branch: filter commits from a specific branch
- --message-pattern: regex filter on commit messages
- --start-date: lower bound for date range (--end-date was already supported)
- --no-merges: exclude merge commits

Closes #112, #113, #114, #115, #116
fuzzy scheduled this pull request to auto merge when all checks succeed 2026-07-06 07:56:47 +00:00
the.auditor left a comment

Audit Review — PR #158

Clean advanced filtering implementation. All 4 issues (#0112-#0115) addressed. Filters work correctly: start_date/end_date for date range, branch via iter_commits, message_pattern via compiled regex, no_merges via parent count. Good tests including merge commit scenario.

No suggestions — clean PR.

Summary

Result: COMMENT — no issues found.

## Audit Review — PR #158 Clean advanced filtering implementation. All 4 issues (#0112-#0115) addressed. Filters work correctly: `start_date`/`end_date` for date range, `branch` via `iter_commits`, `message_pattern` via compiled regex, `no_merges` via parent count. Good tests including merge commit scenario. No suggestions — clean PR. ## Summary **Result:** COMMENT — no issues found.
the.auditor left a comment

APPROVED. Advanced filtering complete. Merge when ready.

APPROVED. Advanced filtering complete. Merge when ready.
fuzzy merged commit ee18630b92 into main 2026-07-06 07:59:07 +00:00
fuzzy deleted branch feature/0116-advanced-filtering 2026-07-06 07:59:07 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/hottea!158
No description provided.