Skip to content

Commit 1aedac7

Browse files
Add GitHub Actions workflow for automatic labeling
1 parent 02412af commit 1aedac7

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/labeler.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"Documentation":
2+
- "**/*.md"
3+
- "docs/**/*"
4+
5+
"Bug":
6+
- "**/*.py"
7+
- "src/**/*.py"
8+
9+
"Frontend":
10+
- "**/*.html"
11+
- "**/*.css"
12+
- "**/*.js"
13+
14+
"Backend":
15+
- "api/**/*.py"
16+
17+
"Tests":
18+
- "**/tests/**"
19+
- "**/*.spec.js"
20+
21+
"CI/CD":
22+
- ".github/workflows/*.yml"
23+
24+
"Dependencies":
25+
- "package.json"
26+
- "requirements.txt"
27+
28+
"Feature":
29+
- "features/**/*"
30+
- "**/*.feature"

.github/workflows/labeler.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Labeler"
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
issues:
7+
types: [opened]
8+
9+
jobs:
10+
label:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: "Checkout Code"
15+
uses: actions/checkout@v4
16+
17+
- name: "Run Labeler Action"
18+
uses: actions/labeler@v4
19+
with:
20+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
21+
configuration-path: ".github/labeler.yml"

0 commit comments

Comments
 (0)