Merged
Conversation
This adds support for time units (h, d, w, m, y) to all date filter flags: --created-after, --created-before, --updated-after, --updated-before Changes: - Add parse_time_with_unit() function to parse time values with units - Update task_search() to use new parser for all date parameters - Display output now shows original time values (e.g., "1w" not "7d") - Add comprehensive test suite (17 new tests, all passing) - Update CLI help text and examples - Update all documentation with time unit syntax and examples Supported time units: - h: hours (e.g., 12h) - d: days (e.g., 7d) - w: weeks (e.g., 2w = 14 days) - m: months (e.g., 1m ≈ 30 days) - y: years (e.g., 1y ≈ 365 days) Backward compatible: plain numbers still work as days. Example usage: phabfive maniphest search --tag Backend --updated-after=1w phabfive maniphest search --tag Project --created-after=2m phabfive maniphest search --tag Team --updated-after=12h 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Timpan4
approved these changes
Feb 20, 2026
Contributor
Timpan4
left a comment
There was a problem hiding this comment.
LGTM! Really nice QOL improvement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for time units (h, d, w, m, y) to date filter flags, addressing #105.
Changes
Core Implementation
parse_time_with_unit()inphabfive/maniphest.pyto parse time values with optional unit suffixestask_search()method to use the parser for all four date parameters:--created-after--created-before--updated-after--updated-beforecreated-after=1winstead ofcreated-after=7d)Supported Time Units
h12h= 12 hoursd7d= 7 daysw2w= 14 daysm1m≈ 30 daysy1y≈ 365 daysNote: Plain numbers (e.g.,
7) continue to work as days for backward compatibility.Testing
Documentation
docs/maniphest-cli.mdwith comprehensive examplesdocs/search-templates.mdwith YAML template examplesREADME.mdexamplesExample Usage
YAML Template Example
Benefits
Fixes
Closes #105
🤖 Generated with Claude Code