fix: make suggest_labels detect actual label format from repository #75

Merged
lmiranda merged 1 commits from fix/dynamic-label-format into development 2026-01-21 22:04:55 +00:00
Owner

Summary

  • Added dynamic label format detection to suggest_labels
  • Supports both slash format (Type/Bug) and colon-space format (Type: Bug)
  • Labels are fetched from repo first, then suggestions match actual format
  • Handles singular/plural normalization (Effort/Efforts)

Fixes #73 (sub-issue 3: label format mismatch)

Test Plan

  • All 23 label tests pass
  • Tests cover slash format labels
  • Tests cover colon-space format labels
  • Tests cover effort normalization

🤖 Generated with Claude Code

## Summary - Added dynamic label format detection to `suggest_labels` - Supports both slash format (`Type/Bug`) and colon-space format (`Type: Bug`) - Labels are fetched from repo first, then suggestions match actual format - Handles singular/plural normalization (Effort/Efforts) ## Related Issues Fixes #73 (sub-issue 3: label format mismatch) ## Test Plan - [x] All 23 label tests pass - [x] Tests cover slash format labels - [x] Tests cover colon-space format labels - [x] Tests cover effort normalization 🤖 Generated with [Claude Code](https://claude.ai/code)
lmiranda added 1 commit 2026-01-21 22:03:56 +00:00
The suggest_labels function now dynamically detects the label naming convention
used in the repository (slash format like Type/Bug or colon-space format like
Type: Bug) instead of hardcoding slash format.

Changes:
- Added _build_label_lookup() to parse and normalize label formats
- Added _find_label() to find actual labels from the lookup
- Updated suggest_labels() to accept optional repo parameter
- Labels are fetched first, then suggestions match actual names
- Supports Efforts/Effort normalization (handles singular/plural)

Fixes issue #73 sub-issue 3: label format mismatch

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 78d77c1e0a into development 2026-01-21 22:04:55 +00:00
lmiranda deleted branch fix/dynamic-label-format 2026-01-21 22:04:55 +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#75