Release: fix user-owned repo labels #63
Reference in New Issue
Block a user
Delete Branch "development"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Merges development into main with the following fix:
fix: handle user-owned repos in get_labels (skip org labels)
The
get_labelstool 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: Checkis_org_repo()before fetching org labelsgitea_client.py: Same fix in_resolve_label_ids()test_labels.py: Added tests for both org and user-owned reposFixes #61
Test Results: 15/15 tests passing
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>