Skip to content

Commit 337df83

Browse files
ci: Add labeler
1 parent 9c39443 commit 337df83

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file is for the labeler workflow
2+
# Documentation https://github.com/marketplace/actions/labeler
3+
4+
Documentation:
5+
- changed-files:
6+
- any-glob-to-any-file: [docs/**, .github/**, "./*.{md,mdx}"]
7+
- all-globs-to-all-files: "!.github/workflows/*"
8+
9+
"Type: Test":
10+
- changed-files:
11+
- any-glob-to-any-file: [tests/**, ./*test*]
12+
13+
"Type: CI":
14+
- changed-files:
15+
- any-glob-to-any-file: [.github/workflows/**]
16+
17+
"Scope: Core":
18+
- changed-files:
19+
- any-glob-to-any-file: [src/**]
20+
all-globs-to-all-files:
21+
["!src/thread/decorators/*", "!src/thread/utils/*"]
22+
23+
"Scope: Utils":
24+
- changed-files:
25+
- any-glob-to-any-file: ["src/thread/utils/*"]
26+
27+
"Scope: Decorator":
28+
- changed-files:
29+
- any-glob-to-any-file: ["src/thread/decorators/*"]

.github/workflows/labeler.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Labeler
2+
3+
on: [pull_request]
4+
5+
# This workflow will require write permissions on pull requests
6+
# 1. Repository Settings -> Actions -> General -> Workflow permissions
7+
# Check "Read and write permissions"
8+
9+
jobs:
10+
labeler:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/labeler@v5
14+
with:
15+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)