Auto-Labeling PRs with packages touched in the monorepo
DrewML opened this issue · comments
Andrew Levine commented
I have a (working) implementation of this done locally, but there are a few decisions we need to make.
- Do we have a cutoff (don't label if over X total packages touched)?
- Should we not add the label for some use-cases (example: changing only READMEs or
package.json
)
Input wanted.
Sven Sauleau commented
Labels:
-
experimental
- Where packages matches
/experimental/
- Where packages matches
-
flow
- Where packages matches
/flow/
- Where packages matches
-
cli (new)
- Where packages matches
/^babel-cli$/
- Where packages matches
-
pkg: register
- Where package matches
/^babel-register$/
- Where package matches
-
pkg: traverse
- Where package matches
/^babel-traverse$/
- Where package matches
-
pkg: generator
- Where package matches
/^babel-generator$/
- Where package matches
-
react
- Where package matches
/react/
- Where package matches
-
tag: documentation
- Where file changed matches
/.*\.md$/
- Where should be at least more than 5 lines changed (I think we don't need to label wording changes).
- Where file changed matches
-
tag: internal
- Where packages matches
/helper/
(if helper are considered as internal) - Where package matches
/^babel-core/
- Where packages matches
-
tests
- Where file changed matches
/test\/*.js/
(if helper are considered as internal)
- Where file changed matches
- Multiples labels could be applied given the rules above.
- We could limit it to 5 labels.
- The minium amount of line changed could be set to 5.
Henry commented
Can you push the PR, I think the functionality is what we want and adding the labels later when we want to. An easy one is the react packages -> react or something like that