Skip to content

Commit

Permalink
Merge pull request #7 from RohanSasne/PRLabeler
Browse files Browse the repository at this point in the history
Pr labeler
  • Loading branch information
allgandalf authored Jul 21, 2023
2 parents 90d382c + 1663b14 commit 867cf14
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Add project labels
#

# Add 'Documentation' label to any changes in the documentation

'Documentation':
- documentation/**
- **.md

# Add 'Website' label to any changes in the web directory

'Website':
- web/**

# Add 'Base' label to any changes in the base directory

'Base':
- base/**

# Add 'Models' label to any changes in the models directory

'Models':
- models/**

# Add 'Modules' label to any changes in the modules directory

'Modules':
- modules/**

'GitHub Actions':
- .github/workflows/**
22 changes: 22 additions & 0 deletions .github/workflows/prlabeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow is based on github action official label action v4.
# This workflow action is triggered on pull request event(on both fork & inside repo)
# Labels will be applied based on filepath modification in PR.
# This workflow uses a regex based labeling config file(.github/labeler.yml) to take labeling decision.

name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: work around https://github.com/actions/checkout/issues/766
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- uses: actions/checkout@v3
with:
set-safe-directory: false
- uses: actions/labeler@v4

0 comments on commit 867cf14

Please sign in to comment.