Skip to content

Commit

Permalink
Add automatic pull request labeling (#8038)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpuccio authored Oct 17, 2024
1 parent d817eee commit ea8eab0
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
alice3:
- changed-files:
- any-glob-to-any-file: ['ALICE3/**']

common:
- changed-files:
- any-glob-to-any-file: ['Common/**']

infrastructure:
- changed-files:
- any-glob-to-any-file: ['.github/**', 'cmake/**', 'dependencies/**', 'packaging/**']

dpg:
- changed-files:
- any-glob-to-any-file: ['DPG/**']

pwgcf:
- changed-files:
- any-glob-to-any-file: ['PWGCF/**', '*/PWGCF/**']

pwgdq:
- changed-files:
- any-glob-to-any-file: ['PWGDQ/**', '*/PWGDQ/**']

pwgem:
- changed-files:
- any-glob-to-any-file: ['PWGEM/**', '*/PWGEM/**']

pwghf:
- changed-files:
- any-glob-to-any-file: ['PWGHF/**', '*/PWGHF/**']

pwgje:
- changed-files:
- any-glob-to-any-file: ['PWGJE/**', '*/PWGJE/**']

pwglf:
- changed-files:
- any-glob-to-any-file: ['PWGLF/**', '*/PWGLF/**', 'PWGMM/**', '*/PWGMM/**']

pwgud:
- changed-files:
- any-glob-to-any-file: ['PWGUD/**', '*/PWGUD/**']

tutorial:
- changed-files:
- any-glob-to-any-file: ['Tutorials/**']
16 changes: 16 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: "Pull Request Labeler"
on:
- pull_request_target
permissions: read-all

jobs:
labeler:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ea8eab0

Please sign in to comment.