Add label to label config to auto apply labels based on other labels (#125042)

* Implemented in https://github.com/pytorch/test-infra/pull/5127,
* Tested in malfet/delete me: https://github.com/malfet/deleteme/issues/85
Pull Request resolved: https://github.com/pytorch/pytorch/pull/125042
Approved by: https://github.com/huydhn
This commit is contained in:
Catherine Lee
2024-04-26 19:58:56 +00:00
committed by PyTorch MergeBot
parent 4e2b4c6ed6
commit 4a6dfbe480
2 changed files with 14 additions and 0 deletions

13
.github/label_to_label.yml vendored Normal file
View File

@ -0,0 +1,13 @@
# Use this to auto apply labels based on other labels. Applies to both PRs and
# issues. Currently only supports any and all
- any:
- "module: custom operators"
- "module: aotdispatch"
then:
- "module: pt2-dispatcher"
- any:
- "module: dynamo"
- "module: pt2-dispatcher"
- "module: inductor"
then:
- "oncall: pt2"

View File

@ -24,3 +24,4 @@ retryable_workflows:
- linux-binary
- windows-binary
labeler_config: labeler.yml
label_to_label_config: label_to_label.yml