mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
dev: enable auto-labels for PRs (labeler)
This commit is contained in:
parent
3ebe9b55d2
commit
1240dad718
2 changed files with 32 additions and 0 deletions
17
.github/labeler.yml
vendored
Normal file
17
.github/labeler.yml
vendored
Normal 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
15
.github/workflows/labeler.yml
vendored
Normal 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'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue