Problem: GitHub was showing confusing label transitions like: - 'added To Do Doing and removed To Do' - 'added To Test Testing Done and removed Doing To Test Testing' This occurred when issues had multiple state labels simultaneously (due to bugs, manual edits, or failed transitions). Root Cause: The old transitionLabel() only removed the 'from' label and added the 'to' label. If other state labels existed on the issue, they would remain, causing messy multi-label states. Solution: 1. Fetch the current issue to inspect all labels 2. Find ALL state labels on the issue (not just 'from') 3. Remove ALL state labels in a single operation 4. Add only the new 'to' label This ensures atomic, clean transitions that display on GitHub as a single 'removed X, added Y' operation, even if the issue previously had multiple state labels. Changes: - GitHubProvider.transitionLabel(): Remove all state labels before adding new one - GitLabProvider.transitionLabel(): Same fix for GitLab consistency Addresses issue #97
6.0 KiB
6.0 KiB