dev: enable auto-labels for PRs (labeler)

This commit is contained in:
Oleg Agafonov 2024-02-18 17:07:00 +04:00
parent 3ebe9b55d2
commit 1240dad718
2 changed files with 32 additions and 0 deletions

17
.github/labeler.yml vendored Normal file
View file

@ -0,0 +1,17 @@
dev:
- any: [ '*', 'Utils/**', '/.github/**' ]
engine:
- any: [ 'Mage/**' ]
client:
- any: [ 'Mage.Client/**', 'Mage.Common/**', 'Mage.Plugins/**' ]
server:
- any: [ 'Mage.Server*/**' ]
tests:
- any: [ 'Mage.Verify/**', 'Mage.Tests/**', 'Mage.Reports/**' ]
cards:
- any: [ 'Mage.Sets/**' ]

15
.github/workflows/labeler.yml vendored Normal file
View file

@ -0,0 +1,15 @@
name: "Pull Request Labeler"
on:
- pull_request_target
jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- id: label-the-PR
uses: actions/labeler@v5
with:
configuration-path: '.github/labeler.yml'