danger-plugin-labels
danger-plugin-labels copied to clipboard
Doesn't properly remove labels
Repro:

- Tick "WIP"
- Do some work
- Edit comment to untick "WIP" and tick "Ready for Review"
- The bot doesn't remove the old label
I believe this bug comes from this line in uncheckedLabels reducer
return [...labels, label]
the expected result of the repro for the code to work the "WIP" checkbox should match the label exactly, otherwise, the filter of current labels will not find the "WIP: Building"
Shouldn't it be rules.label instead?
Edit 1: worked just fine in my tests just now, so no clue no more, lol maybe close the issue?