|
| 1 | +# File-based auto-labeling configuration |
| 2 | +# Works with actions/labeler@v5 |
| 3 | +# This complements pr-label.yml (title-based labeling) by detecting which files changed |
| 4 | + |
| 5 | +# ============================================================================= |
| 6 | +# Core Module Labels |
| 7 | +# ============================================================================= |
| 8 | +"nn": |
| 9 | + - changed-files: |
| 10 | + - any-glob-to-any-file: |
| 11 | + - 'tensordict/nn/**' |
| 12 | + - 'test/test_nn.py' |
| 13 | + |
| 14 | +"store": |
| 15 | + - changed-files: |
| 16 | + - any-glob-to-any-file: |
| 17 | + - 'tensordict/store/**' |
| 18 | + - 'test/test_store.py' |
| 19 | + |
| 20 | +"prototype": |
| 21 | + - changed-files: |
| 22 | + - any-glob-to-any-file: |
| 23 | + - 'tensordict/prototype/**' |
| 24 | + |
| 25 | +"tensorclass": |
| 26 | + - changed-files: |
| 27 | + - any-glob-to-any-file: |
| 28 | + - 'tensordict/tensorclass.py' |
| 29 | + - 'tensordict/tensorclass.pyi' |
| 30 | + - 'test/test_tensorclass.py' |
| 31 | + |
| 32 | +"memmap": |
| 33 | + - changed-files: |
| 34 | + - any-glob-to-any-file: |
| 35 | + - 'tensordict/memmap.py' |
| 36 | + - 'test/test_memmap.py' |
| 37 | + |
| 38 | +"persistent": |
| 39 | + - changed-files: |
| 40 | + - any-glob-to-any-file: |
| 41 | + - 'tensordict/persistent.py' |
| 42 | + - 'test/test_h5.py' |
| 43 | + |
| 44 | +"functional": |
| 45 | + - changed-files: |
| 46 | + - any-glob-to-any-file: |
| 47 | + - 'tensordict/functional.py' |
| 48 | + - 'test/test_functorch.py' |
| 49 | + |
| 50 | +# ============================================================================= |
| 51 | +# Documentation & CI |
| 52 | +# ============================================================================= |
| 53 | +"Documentation": |
| 54 | + - changed-files: |
| 55 | + - any-glob-to-any-file: |
| 56 | + - 'docs/**' |
| 57 | + - '*.md' |
| 58 | + - '*.rst' |
| 59 | + |
| 60 | +"CI": |
| 61 | + - changed-files: |
| 62 | + - any-glob-to-any-file: |
| 63 | + - '.github/**' |
| 64 | + |
| 65 | +"Benchmarks": |
| 66 | + - changed-files: |
| 67 | + - any-glob-to-any-file: |
| 68 | + - 'benchmarks/**' |
| 69 | + |
| 70 | +"Test": |
| 71 | + - changed-files: |
| 72 | + - any-glob-to-any-file: |
| 73 | + - 'test/**' |
0 commit comments