github/workflows: add auto labeler for PR #13558
Merged
+206
−0
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.
Summary
This commit adds action for automatically labelling pull requests based on https://github.com/actions/labeler
Action configuration is located at
.github/labeler.yml
and can be expanded if needed.At the moment only simple to check conditions are implemented, but the plugin allows to create more complex patterns.
Impact
Each new PR will be assigned a label according to the detected scope of changes.
Configured labels and patterns can be found in
.github/labeler.yml
and labels must mach labels in Github: https://github.com/apache/nuttx/labelsWith this change we can better filter pull requests according to the changes made.
Another step to solve #13522
Testing
Tested on my private NuttX repo here: https://github.com/raiden00pl/nuttx/pulls
For NuttX repo it will look much nicer, I don't have set colors for labels in my repo.
There is no other method for testing this change.