Skip to content

Commit 4c31e9e

Browse files
committed
chore: workflow updating
1 parent 77755a2 commit 4c31e9e

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/labeler.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# .github/labeler.yml
2+
3+
# Label PRs that modify TypeScript files
4+
typescript:
5+
- "**/*.ts"
6+
- "**/*.tsx"
7+
8+
# Label PRs that modify JavaScript files
9+
javascript:
10+
- "**/*.js"
11+
- "**/*.jsx"
12+
13+
# Label PRs that modify SCSS or CSS files
14+
styles:
15+
- "**/*.css"
16+
- "**/*.scss"
17+
18+
# Label PRs that modify API routes
19+
api:
20+
- "pages/api/**/*"
21+
22+
# Label PRs that modify public assets
23+
assets:
24+
- "public/**/*"
25+
26+
# Label PRs that modify configuration files
27+
config:
28+
- "next.config.js"
29+
- "tsconfig.json"
30+
- ".eslintrc.js"
31+
- ".prettierrc"
32+
- ".env*"
33+
34+
# Label PRs that modify documentation
35+
documentation:
36+
- "**/*.md"
37+
- "**/*.mdx"
38+
39+
# Label PRs that modify CI/CD workflows
40+
ci:
41+
- ".github/workflows/**/*"
42+
43+
# Label PRs that modify test files
44+
tests:
45+
- "**/*.test.ts"
46+
- "**/*.test.tsx"
47+
- "**/*.spec.ts"
48+
- "**/*.spec.tsx"

.github/workflows/label.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ jobs:
2020
- uses: actions/labeler@v4
2121
with:
2222
repo-token: "${{ secrets.GH_TOKEN}}"
23+
configuration-path: .github/labeler.yml

0 commit comments

Comments
 (0)