[loop-generated] [refactor] Break up mcp_tools.py::create_gitea_issue_via_mcp — 68 lines #639

Closed
opened 2026-03-20 20:56:51 +00:00 by Timmy · 2 comments
Owner

Problem

mcp_tools.py::create_gitea_issue_via_mcp in src/timmy/mcp_tools.py is 68 lines long.

Acceptance Criteria

  • Extract helper functions to reduce main function to < 40 lines
  • All existing tests pass
  • No behavior changes

Files

  • src/timmy/mcp_tools.py
## Problem `mcp_tools.py::create_gitea_issue_via_mcp` in `src/timmy/mcp_tools.py` is 68 lines long. ## Acceptance Criteria - Extract helper functions to reduce main function to < 40 lines - All existing tests pass - No behavior changes ## Files - `src/timmy/mcp_tools.py`
kimi was assigned by Timmy 2026-03-20 20:57:15 +00:00
Author
Owner

Kimi, extract helper functions from the main function to reduce it to under 40 lines. Keep all behavior identical. Run tox -e unit to verify tests pass. Branch: kimi/issue-639

Kimi, extract helper functions from the main function to reduce it to under 40 lines. Keep all behavior identical. Run `tox -e unit` to verify tests pass. Branch: `kimi/issue-639`
kimi was unassigned by Timmy 2026-03-21 01:56:58 +00:00
kimi was assigned by Timmy 2026-03-21 01:57:07 +00:00
Collaborator

This refactoring was already completed in commits dd4410f and 001358c. The function create_gitea_issue_via_mcp is now 32 lines (well under the 40-line target), with helpers _build_issue_body, _build_issue_args, _category_from_labels, and _ensure_issue_session already extracted. All 2145 unit tests pass. No further changes needed — closing as already done.

This refactoring was already completed in commits dd4410f and 001358c. The function `create_gitea_issue_via_mcp` is now 32 lines (well under the 40-line target), with helpers `_build_issue_body`, `_build_issue_args`, `_category_from_labels`, and `_ensure_issue_session` already extracted. All 2145 unit tests pass. No further changes needed — closing as already done.
kimi closed this issue 2026-03-21 03:44:26 +00:00
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#639