fix(gitea,projman): type safety for create_label_smart, curl-based debug-report #124

Merged
lmiranda merged 1 commits from fix/issue-123-mcp-tool-failures into development 2026-01-23 21:47:51 +00:00
Owner

Summary

  • Fix A: Add type safety to create_label_smart - prevents crash when API returns unexpected type
  • Fix D: debug-report now always uses curl with labels - avoids branch protection issues

Test plan

  • Run /debug-report from a project on main branch - should create issue with labels
  • Test create_label_smart with a repo that might return unexpected response
  • Verify labels Source/Diagnostic and Type/Bug are applied to created issues

🤖 Generated with Claude Code

## Summary - **Fix A:** Add type safety to `create_label_smart` - prevents crash when API returns unexpected type - **Fix D:** `debug-report` now always uses curl with labels - avoids branch protection issues ## Test plan - [ ] Run `/debug-report` from a project on `main` branch - should create issue with labels - [ ] Test `create_label_smart` with a repo that might return unexpected response - [ ] Verify labels `Source/Diagnostic` and `Type/Bug` are applied to created issues 🤖 Generated with [Claude Code](https://claude.ai/code)
lmiranda added 1 commit 2026-01-23 21:46:56 +00:00
Fixes multiple issues from diagnostic #123:

1. create_label_smart type safety (labels.py)
   - Add isinstance(result, dict) checks after API calls
   - Return structured error dict if API returns unexpected type
   - Prevents "list indices must be integers" crash

2. debug-report always uses curl with labels
   - Remove MCP option - always use curl for marketplace issues
   - Add label ID fetching step (Source/Diagnostic, Type/Bug)
   - Include labels in curl POST payload
   - Avoids branch protection restrictions on main branch

Fixes #123

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 65e79efb24 into development 2026-01-23 21:47:51 +00:00
lmiranda deleted branch fix/issue-123-mcp-tool-failures 2026-01-23 21:47:51 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#124