-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
💎 BountyTest bounty issue for ai-gitops workflow validationTest bounty issue for ai-gitops workflow validation
Description
/bounty 100
Description
Input validation logic is currently scattered across different command files (add.py, list.py, done.py). This creates code duplication and makes validation logic harder to maintain and test.
Current State
validate_description()incommands/add.pyvalidate_task_file()incommands/list.pyvalidate_task_id()incommands/done.py- Each command also has duplicate
get_tasks_file()helper
Proposed Solution
- Create new
utils/validation.pymodule - Extract all validation functions to this module
- Create
utils/paths.pyfor shared path helpers likeget_tasks_file() - Update all commands to import and use shared validators
- Ensure NO behavior changes (pure refactor)
Requirements
- Create
utils/directory with proper__init__.py - Move validation functions to
utils/validation.py - Move path helpers to
utils/paths.py - Update all command imports
- All existing tests must still pass
- No duplicate validation code remains
Acceptance Criteria
- All validation logic in
utils/validation.py - All path helpers in
utils/paths.py - All commands updated to use shared utilities
- Tests still pass (no behavior changes)
- No duplicate validation code in command files
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
💎 BountyTest bounty issue for ai-gitops workflow validationTest bounty issue for ai-gitops workflow validation