ci: added PR labeler

This commit is contained in:
Folke Lemaitre 2024-06-05 15:03:08 +02:00
parent 1faa562964
commit 75dcce02dc
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 32 additions and 0 deletions

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

@ -0,0 +1,19 @@
core:
- all:
- changed-files:
- any-glob-to-any-file: "lua/lazyvim/**"
- all-globs-to-all-files: "!lua/lazyvim/plugins/*"
core-plugins:
- all:
- changed-files:
- any-glob-to-any-file: "lua/lazyvim/plugins/**"
- all-globs-to-all-files: "!lua/lazyvim/plugins/extras/*"
extras:
- changed-files:
- any-glob-to-any-file: "lua/lazyvim/plugins/extras/**"
extras-lang:
- changed-files:
- any-glob-to-any-file: "lua/lazyvim/plugins/extras/lang/**"

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

@ -0,0 +1,13 @@
name: "Pull Request Labeler"
on:
- workflow_dispatch
- pull_request_target
jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5