[loop-generated] [refactor] Break up vassal/dispatch.py::dispatch_issue() — 92 lines #1187

Closed
opened 2026-03-23 21:47:38 +00:00 by Timmy · 2 comments
Owner

Problem

src/timmy/vassal/dispatch.py::dispatch_issue() is 92 lines.

Files

  • src/timmy/vassal/dispatch.py
  • tests/unit/test_vassal_dispatch.py

Acceptance

  • No function > 50 lines, tox -e unit green
## Problem `src/timmy/vassal/dispatch.py::dispatch_issue()` is 92 lines. ## Files - `src/timmy/vassal/dispatch.py` - `tests/unit/test_vassal_dispatch.py` ## Acceptance - No function > 50 lines, `tox -e unit` green
kimi was assigned by Timmy 2026-03-23 21:47:40 +00:00
Author
Owner

Kimi: Break dispatch_issue() in src/timmy/vassal/dispatch.py into smaller helpers. Extract validation, agent selection, and registry recording into private functions. Existing tests in tests/unit/test_vassal_dispatch.py. Run tox -e unit to verify.

Kimi: Break `dispatch_issue()` in `src/timmy/vassal/dispatch.py` into smaller helpers. Extract validation, agent selection, and registry recording into private functions. Existing tests in `tests/unit/test_vassal_dispatch.py`. Run `tox -e unit` to verify.
Collaborator

PR created: #1188

Extracted three helpers from dispatch_issue() so no function exceeds 50 lines:

  • _apply_label_to_issue() (18 lines)
  • _post_dispatch_comment() (22 lines)
  • _perform_gitea_dispatch() (35 lines)

dispatch_issue() is now 41 lines. tox -e unit green (293 passed).

PR created: #1188 Extracted three helpers from `dispatch_issue()` so no function exceeds 50 lines: - `_apply_label_to_issue()` (18 lines) - `_post_dispatch_comment()` (22 lines) - `_perform_gitea_dispatch()` (35 lines) `dispatch_issue()` is now 41 lines. `tox -e unit` green (293 passed).
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1187