Release: fix user-owned repo labels #63

Merged
lmiranda merged 2 commits from development into main 2026-01-21 19:48:24 +00:00
Owner

Summary

Merges development into main with the following fix:

fix: handle user-owned repos in get_labels (skip org labels)

The get_labels tool was failing with 404 for user-owned repositories because it always queried /api/v1/orgs/{owner}/labels, which only works for organizations.

Changes:

  • labels.py: Check is_org_repo() before fetching org labels
  • gitea_client.py: Same fix in _resolve_label_ids()
  • test_labels.py: Added tests for both org and user-owned repos

Fixes #61

Test Results: 15/15 tests passing

## Summary Merges development into main with the following fix: ### fix: handle user-owned repos in get_labels (skip org labels) The `get_labels` tool was failing with 404 for user-owned repositories because it always queried `/api/v1/orgs/{owner}/labels`, which only works for organizations. **Changes:** - `labels.py`: Check `is_org_repo()` before fetching org labels - `gitea_client.py`: Same fix in `_resolve_label_ids()` - `test_labels.py`: Added tests for both org and user-owned repos Fixes #61 **Test Results:** 15/15 tests passing
lmiranda added 2 commits 2026-01-21 19:47:48 +00:00
The get_labels tool was failing with 404 for user-owned repositories
because it always queried /api/v1/orgs/{owner}/labels, which only
works for organizations.

Changes:
- labels.py: Check is_org_repo() before fetching org labels
- gitea_client.py: Same fix in _resolve_label_ids()
- test_labels.py: Added tests for both org and user-owned repos

Fixes #61

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Merge pull request #62 from fix/user-owned-repo-labels
lmiranda merged commit df2f5ebb47 into main 2026-01-21 19:48:24 +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#63