Skip to content
SprecherEast
Issue 887

Auto-labeler re-adds extra type labels to pull requests after every push

Back to our plan
Done
bugcitoolingpriority: medium

Summary

The pull request auto-labeler adds documentation and process type labels to PRs that also carry their real type label. The repo allows exactly one type label per PR, and PR Policy / reviewers treat extra ones as a Blocker, so authors must remove them by hand after every push that touches docs or process files, and the labeler adds them back on the next push.

Details

  • Seen on several recent PRs in a row: the labeler adds the extra labels again after a later push, even after they were removed.
  • Likely cause: path rules in .github/labeler.yml (or the workflow that applies it) label by changed paths, including type labels, without checking the one-type rule.
  • Fix direction (native first): have the labeler add area labels only, and leave the type label to the issue form and the author; or make it skip the type labels when the PR already has one. Record what the labeler action supports before writing anything custom.
  • This changes .github/, which is a policy area; it is a fix of a process bug so it follows the normal path with the reviewer calling it out.

Acceptance criteria

  • Not done: A PR with a type label keeps exactly that one after any number of pushes touching docs or process files.
  • Not done: A test or dry run on a PR shows the labeler no longer re-adds documentation or process.
  • Not done: The areas the labeler is meant to add (frontend, ci, and so on) still work.

Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab