Skip to content

Commit 8506cb8

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

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/labeler.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
bug:
2+
- "**/*.py" # Match all Python files globally (if any are present)
3+
4+
feature:
5+
- "**/*.js" # Match all JavaScript files globally (if any)
6+
7+
documentation:
8+
- "**/*.md" # Match all Markdown files
9+
- "documentation/**" # Match everything in the 'documentation' folder
10+
- "docs/**" # Match everything in the 'docs' folder

.github/workflows/labeler.yml

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

0 commit comments

Comments
 (0)