Skip to content

Commit

Permalink
added new action to auto label PR's
Browse files Browse the repository at this point in the history
used basic version from docs
  • Loading branch information
alhasacademy96 committed Aug 19, 2024
1 parent 2a4171d commit 9a21672
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Label for changes in the core application code
core:
- 'animal-ai/*'

# Label for changes in documentation files
documentation:
- '**/*.md'
- 'docs/**'

# Label for changes related to CI/CD workflows
ci:
- '.github/workflows/**'

# Label for YAML configuration changes
configuration:
- '**/*.yaml'
- '**/*.yml'
14 changes: 14 additions & 0 deletions .github/workflows/pull-request-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Pull Request Labeler"

on:
pull_request_target:
types: [opened, synchronize, reopened]

jobs:
label:
runs-on: ubuntu-latest
steps:
- name: Pull Request Labeler
uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 9a21672

Please sign in to comment.