fix: update labeler config to v5 (#604)

This commit is contained in:
vladislav doster 2023-12-08 20:13:30 -06:00 committed by GitHub
parent 4d623cbfae
commit 794723cc48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

48
.github/labeler.yml vendored
View file

@ -1,7 +1,41 @@
ci: ['.github/**/*'] ci/cd:
completion: ['_zinit'] - changed-files:
docker: ['docker/*'] - any-glob-to-any-file: '.github/**'
docs: ['*.md', 'doc/**/*']
scripts: ['scripts/*'] docker:
tests: ['.zunit.yml', 'tests/**/*'] - changed-files:
zinit: ['_zinit', 'zinit*.zsh'] - any-glob-to-any-file: 'docker/**'
scripts:
- changed-files:
- any-glob-to-any-file: 'docker/**'
tests:
- changed-files:
- any-glob-to-any-file: ['.zunit.yml', 'tests/**/*']
completion:
- changed-files:
- any-glob-to-any-file: '_zinit'
# Add 'Documentation' label to any file changes within 'docs' folder
docs:
- changed-files:
- any-glob-to-any-file: 'doc/**'
- any-glob-to-any-file: '**/*.md'
# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
zinit:
- changed-files:
- any-glob-to-any-file: 'zinit*.zsh*'
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
feature:
- head-branch: ['^feat']
fix:
- head-branch: ['^fix']
# Add 'release' label to any PR that is opened against the `main` branch
release:
- base-branch: 'main'