-
Notifications
You must be signed in to change notification settings - Fork 9
Possible Bug: Label addition / removal affecting unrelated labels to the config #144
Comments
Hmm. So it looks like there are two situations here.
So it's a combination of both! I can work on the CLA issue you saw (fortunately it looks like your CLA bot resolves that anyway by adding the label back), but I don't have an immediate answer to the other. |
@davegaeddert Makes sense. I think the latter issue here with the |
@jessicajaniuk just to play the "default" idea (#143 (comment)) out a step further... I think there may still be a question about whether pullapprove would be responsible for removing the "default" labels if a group is inactivated. groups:
compiler:
conditions:
- '"*compiler*" in files'
labels:
default:
- "comp: compiler" Maybe not the most common scenario, but let's say the PR was opened and included compiler-related changes, but those ended up being irrelevant and pulled back out. If we followed current behavior with labels, the "comp: compiler" label would be removed because that group would no longer be active. Is that would you would expect to happen in that case? |
We've definitely seen that type of scenario happen here where a subsequent commit on a PR removes a file that was the only file under a label's code path. The behavior you're describing of removing the no longer necessary label would likely be the expected behavior. I know the angular team would be ok with it leaving the label there, too, though, but I'm guessing non-angular teams would prefer the label removal. |
Ok, I'll give it some thought as I'm working through other things, but I think that is the main issue with the second situation from above -- the user added labels that PullApprove is trying to manage, so it removed them because those groups aren't actually active. |
We're seeing some inconsistent behavior in which labels that are not in any of the config blocks are also getting removed rather than just the labels we expect. For example there's this PR that for some reason PullApprove removed our
cla: yes
label. You can find our PullApprove YAML for this specific code path here. It's certainly applying the right label, but it's unclear why it removed other labels. There's one other instance in which the cla label was removed, too.Here's another PR where we see it removing additional
comp:*
labels that were manually added. I'm not sure if PullApprove considers other code paths labels when looking at a given PR and removes them if they were added and don't match this code path. That would explain this situation, if that's the case.This behavior was unexpected for us. Our expectations were that PullApprove would only handle the labels in the config and not affect other labels at all. Is this a correct assumption? Or is this behavior of affecting other labels expected?
The text was updated successfully, but these errors were encountered: