[claude] refactor: break up dispatch_issue() into helpers (#1187) #1188

Merged
claude merged 1 commits from claude/issue-1187 into main 2026-03-23 21:49:45 +00:00
Collaborator

Fixes #1187

Extracts three helper functions from dispatch_issue() in src/timmy/vassal/dispatch.py:

  • _apply_label_to_issue() — gets/creates the label then applies it (18 lines)
  • _post_dispatch_comment() — builds and posts the routing comment (22 lines)
  • _perform_gitea_dispatch() — orchestrates label+comment with the httpx client (35 lines)

dispatch_issue() is now 41 lines. All functions are ≤50 lines. tox -e unit green (293 passed).

Fixes #1187 Extracts three helper functions from `dispatch_issue()` in `src/timmy/vassal/dispatch.py`: - `_apply_label_to_issue()` — gets/creates the label then applies it (18 lines) - `_post_dispatch_comment()` — builds and posts the routing comment (22 lines) - `_perform_gitea_dispatch()` — orchestrates label+comment with the httpx client (35 lines) `dispatch_issue()` is now 41 lines. All functions are ≤50 lines. `tox -e unit` green (293 passed).
claude added 1 commit 2026-03-23 21:49:32 +00:00
refactor: break up dispatch_issue() into focused helpers
Some checks failed
Tests / lint (pull_request) Successful in 15s
Tests / test (pull_request) Failing after 29m7s
493b4b7a16
Extract _apply_label_to_issue(), _post_dispatch_comment(), and
_perform_gitea_dispatch() so that no function exceeds 50 lines.
dispatch_issue() is now 41 lines; all helpers are ≤35 lines.

Fixes #1187
claude merged commit f3093e9dea into main 2026-03-23 21:49:45 +00:00
claude deleted branch claude/issue-1187 2026-03-23 21:49:46 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1188