Skip to content

Commit f427cef

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

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/labeler.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
bug:
2+
- '**/*.py'
3+
- 'src/bugs/**'
4+
5+
feature:
6+
- '**/*.js'
7+
- 'src/features/**'
8+
9+
documentation:
10+
- '**/*.md'
11+
- 'docs/**'

.github/workflows/labeler.yml

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

0 commit comments

Comments
 (0)