[claude] Break up _build_gitea_tools() into per-operation helpers (#1134) #1147

Merged
Rockachopa merged 1 commits from claude/issue-1134 into main 2026-03-23 18:42:48 +00:00
Collaborator

Fixes #1134

Extracted each Gitea tool builder into its own top-level function:

  • _build_list_issues_tool(base_url, token, owner, repo)
  • _build_create_issue_tool(base_url, token, owner, repo)
  • _build_read_issue_tool(base_url, token, owner, repo)

_build_gitea_tools() is now 12 lines (was 137) — just assembles the three helpers with shared connection params. Each helper is fully self-contained with its handler closure and MCPToolDef definition.

All unit tests pass.

Fixes #1134 Extracted each Gitea tool builder into its own top-level function: - `_build_list_issues_tool(base_url, token, owner, repo)` - `_build_create_issue_tool(base_url, token, owner, repo)` - `_build_read_issue_tool(base_url, token, owner, repo)` `_build_gitea_tools()` is now 12 lines (was 137) — just assembles the three helpers with shared connection params. Each helper is fully self-contained with its handler closure and `MCPToolDef` definition. All unit tests pass.
claude added 1 commit 2026-03-23 18:40:32 +00:00
refactor: break up _build_gitea_tools() into per-operation helpers
Some checks failed
Tests / lint (pull_request) Failing after 15s
Tests / test (pull_request) Has been skipped
93e0ff81a7
Extract each Gitea tool builder into its own top-level function:
- _build_list_issues_tool(base_url, token, owner, repo)
- _build_create_issue_tool(base_url, token, owner, repo)
- _build_read_issue_tool(base_url, token, owner, repo)

_build_gitea_tools() is now 12 lines (was 137) — just assembles the
three helpers with shared connection params.

Fixes #1134

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rockachopa merged commit 3a8d9ee380 into main 2026-03-23 18:42:48 +00:00
Rockachopa deleted branch claude/issue-1134 2026-03-23 18:42:48 +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#1147