fix(labels): add duplicate check before creating labels #116

Merged
lmiranda merged 5 commits from fix/labels-duplicate-check into development 2026-01-23 17:49:57 +00:00
Owner

Checks if label exists before creating. Handles format variations (Type/Bug vs Type: Bug). Returns {skipped: true} if exists.

Changes

  • Updated create_label_smart() to check for duplicate labels before creation
  • Handles both organization and repository level labels
  • Detects format variations (e.g., "Type/Bug" vs "Type: Bug")
  • Returns {skipped: true} when label already exists
  • Prevents duplicate label creation errors

Testing

  • Verify labels are not duplicated when syncing multiple times
  • Check that format variations are properly detected
Checks if label exists before creating. Handles format variations (Type/Bug vs Type: Bug). Returns {skipped: true} if exists. ## Changes - Updated `create_label_smart()` to check for duplicate labels before creation - Handles both organization and repository level labels - Detects format variations (e.g., "Type/Bug" vs "Type: Bug") - Returns `{skipped: true}` when label already exists - Prevents duplicate label creation errors ## Testing - Verify labels are not duplicated when syncing multiple times - Check that format variations are properly detected
lmiranda added 2 commits 2026-01-23 17:37:09 +00:00
Reviewed-on: #115
create_label_smart now checks if label already exists before creating.
- Checks both org and repo labels
- Handles format variations (Type/Bug vs Type: Bug)
- Returns {skipped: true} if label already exists
- Prevents duplicate label creation errors

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda added 1 commit 2026-01-23 17:41:37 +00:00
- post-update.sh now clears plugin cache automatically
- verify-hooks.sh checks ALL locations for prompt hooks
- Prevents cached old hooks from overriding fixed hooks

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda added 1 commit 2026-01-23 17:44:31 +00:00
- Add MANDATORY BEHAVIOR RULES to CLAUDE.md (read every session)
- Rules: check everything, believe user, verify before saying done
- post-update.sh now clears plugin cache
- verify-hooks.sh checks all locations for prompt hooks

These rules prevent wasted user time from AI overconfidence.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda added 1 commit 2026-01-23 17:46:22 +00:00
SessionStart hook checks if CLAUDE.md has mandatory rules.
If missing, adds them automatically.

Rules enforced:
- Check everything when user asks
- Believe user when they say something's wrong
- Never say "done" without verification
- Show exactly what user asks for

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 469487f6ed into development 2026-01-23 17:49:57 +00:00
lmiranda deleted branch fix/labels-duplicate-check 2026-01-23 17:49:57 +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#116