pr-labeler: remove stale labels#648
Open
jamillambert wants to merge 1 commit into
Open
Conversation
The PR labeler only adds labels based on changed file paths. If the PR no longer touches certain paths the labels are not removed. When running compare the paths touched to the existing labels and remove any from the managed label set that no longer apply. Add comments to clarify that it is only labels from the managed set that are added or removed automatically. Assisted-by: GPT-5.4
satsfy
approved these changes
Jun 27, 2026
satsfy
left a comment
Contributor
There was a problem hiding this comment.
tACK a6f27e1
So I merged this into master of my local fork. Then, in PR satsfy#45, I created a PR changing the client/ and pushed the commit. The client label was added. Then I reverted the change from client/ to types/ (resetting PR diff to client/) and it removed the client label and added types label. I redid for electrsd and it also worked.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The PR labeler only adds labels based on changed file paths. If the PR no longer touches certain paths the labels are not removed.
When running compare the paths touched to the existing labels and remove any from the managed label set that no longer apply.
Add comments to clarify that it is only labels from the managed set that are added or removed automatically.
Assisted-by: GPT-5.4 (The LLM wrote the section that removes the labels).
Closes #637