Release: repo auto-detection and org validation fixes #66

Merged
lmiranda merged 2 commits from development into main 2026-01-21 20:15:03 +00:00
Owner

Summary

Merges development into main with fixes from #64:

fix: add repo auto-detection and improve org validation

1. Repo Auto-Detection

  • Added _detect_repo_from_git() to parse git remote URL
  • Supports SSH, SSH short, HTTPS, HTTP URL formats
  • Falls back to git remote when GITEA_REPO not set

2. Organization Validation

  • Changed is_org_repo() to use /orgs/{owner} endpoint
  • Added _is_organization() method for reliable org detection
  • Fixes issue where owner.type was null in Gitea API

3. Organization Labels

  • Fixed automatically by org validation fix

Tests: 11 new tests passing

Fixes #64

## Summary Merges development into main with fixes from #64: ### fix: add repo auto-detection and improve org validation **1. Repo Auto-Detection** - Added `_detect_repo_from_git()` to parse git remote URL - Supports SSH, SSH short, HTTPS, HTTP URL formats - Falls back to git remote when `GITEA_REPO` not set **2. Organization Validation** - Changed `is_org_repo()` to use `/orgs/{owner}` endpoint - Added `_is_organization()` method for reliable org detection - Fixes issue where `owner.type` was `null` in Gitea API **3. Organization Labels** - Fixed automatically by org validation fix **Tests:** 11 new tests passing Fixes #64
lmiranda added 2 commits 2026-01-21 20:13:54 +00:00
1. Repo Auto-Detection (config.py):
   - Added _detect_repo_from_git() to parse git remote URL
   - Supports SSH, SSH short, HTTPS, HTTP URL formats
   - Falls back to git remote when GITEA_REPO not set

2. Organization Validation (gitea_client.py):
   - Changed is_org_repo() to use /orgs/{owner} endpoint
   - Added _is_organization() method for reliable org detection
   - Fixes issue where owner.type was null in Gitea API

3. Tests:
   - Added 6 tests for git URL parsing
   - Added 3 tests for org detection

Fixes #64

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 4557d2ce40 into main 2026-01-21 20:15:03 +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#66