Skip to content

Commit 9a21672

Browse files
added new action to auto label PR's
used basic version from docs
1 parent 2a4171d commit 9a21672

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/labeler.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Label for changes in the core application code
2+
core:
3+
- 'animal-ai/*'
4+
5+
# Label for changes in documentation files
6+
documentation:
7+
- '**/*.md'
8+
- 'docs/**'
9+
10+
# Label for changes related to CI/CD workflows
11+
ci:
12+
- '.github/workflows/**'
13+
14+
# Label for YAML configuration changes
15+
configuration:
16+
- '**/*.yaml'
17+
- '**/*.yml'
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Pull Request Labeler"
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
label:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Pull Request Labeler
12+
uses: actions/labeler@v4
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)