You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit 292420c introduced .github/labeler.yml to automatically add labels to PRs, which is useful.
When these PRs receive forced pushes updating their commits, the labels are unhelpfully getting removed. I haven't attempted to understand why that happens, but it's creating work for us undoing the removals if we want the labels to persist.
Maybe the cause is the forced push doesn't change anything in the directories mapping to the label getting removed, and the bot doesn't know to leave the labels be when that occurs, instead always synchronizing the set of labels to what the latest changset intersects. I don't know, that's just gross speculation.
@jameerpathan111 do you have any idea why this is happening, and how to fix it?
@vcaputo@poetteringsync-labels: false (which is false by default) is not working. There is an open PR on actions/labeler to fix this issue.
Found workaround for it as well, we need to add option sync-labels: "" in .github/workflows/labeler.yml
Activity
poettering commentedon Feb 17, 2021
yeah. it is fine if the labeler was purely additive, but removing labels is evil.
jameerpathan111 commentedon Feb 18, 2021
@vcaputo @poettering
sync-labels: false(which is false by default) is not working. There is an open PR on actions/labeler to fix this issue.Found workaround for it as well, we need to add option
sync-labels: ""in.github/workflows/labeler.ymlFixes systemd#18671 - github actions bot labeler malfunctioning
Fixes systemd#18671 - github actions bot labeler malfunctioning
vcaputo commentedon Feb 21, 2021
#18674 was merged so let's close this