Skip to content

github actions bot labeler malfunctioning #18671

Closed

Description

@vcaputo

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?

Example: #18013

Note the github-actions bot removed the journal label after the force-push, 29 days later I restored the label.

If we can't address this I'm in favor of disabling the labeler.

Activity

  1. poettering commented on Feb 17, 2021

    @poettering
    Member

    yeah. it is fine if the labeler was purely additive, but removing labels is evil.

  2. jameerpathan111 commented on Feb 18, 2021

    @jameerpathan111
    Contributor

    @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.yml

  3. added 2 commits that reference this issue on Feb 18, 2021
    b50ca21
    95051bd
  4. vcaputo commented on Feb 21, 2021

    @vcaputo
    ContributorAuthor

    #18674 was merged so let's close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions