[kimi] Break up _dispatch_via_gitea() into helper functions (#1136) #1183
Reference in New Issue
Block a user
Delete Branch "kimi/issue-1136"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1136
Summary
Refactored the 110-line
_dispatch_via_gitea()function insrc/timmy/dispatcher.pyby extracting focused helper functions.Changes
New Helper Functions
_format_assignment_comment()— Builds the markdown comment body for task assignments, including task type, description, acceptance criteria, and footer_select_label()— Returns the Gitea label for an agent based onAGENT_REGISTRYRefactored Main Function
The main
_dispatch_via_gitea()function now follows a clear orchestration pattern:Additional Fixes
Fixed pre-existing lint issues in test files that were blocking pre-commit:
original_computeandprimaryvariables intest_config.pytest_sovereignty_metrics.pyVerification