Skip to content

Conversation

@choldgraf
Copy link
Member

Currently, if a pull request has multiple labels, then it'll show up in multiple sections. This isn't common practice and means that some PRs clutter up the output multiple times.

This PR makes it so that if a PR matches one label, it won't be included in any other sections. It also uses OrderedDict so that we're more confident the label ordering won't change in our logic. This should make the outputs more reliable and streamlined.

Copy link
Collaborator

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good for the proposed functionality, though I need to mention that there are legitime reasons for a PR to be listed at multiple places, especially for more complex projects.

(The simplest case is that it changes API but also fixes bugs -- and sometimes it makes little sense to separate these changes out into multiple PRs).

@bsipocz bsipocz added the bug Something isn't working label Sep 8, 2025
@bsipocz bsipocz merged commit 8dda657 into main Sep 8, 2025
12 of 16 checks passed
@bsipocz bsipocz deleted the fix-duplicate-pr-labels-20250803-143123 branch September 8, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants