Merge pull request 'feat ✨: Add labeler configuration for PR auto-labeling' (#26) from dev into main
Reviewed-on: #26
This commit was merged in pull request #26.
This commit is contained in:
22
.gitea/labeler.yml
Normal file
22
.gitea/labeler.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
# Add 'Documentation' label to to .md files within the entire repository
|
||||
# any file changes within 'docs' or 'guides' folders
|
||||
Documentation:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- '**/*.md'
|
||||
- docs/*
|
||||
- guides/*
|
||||
|
||||
# Add 'source' label to any change to src and tasks files within the source dir EXCEPT for the docs sub-folder
|
||||
source:
|
||||
- all:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- 'src/**/*'
|
||||
- 'tasks/**/*'
|
||||
- all-globs-to-all-files: '!src/docs/*'
|
||||
|
||||
enhancement:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file: '.gitea/**/*'
|
||||
@@ -68,6 +68,19 @@ jobs:
|
||||
run: |
|
||||
ansible-lint
|
||||
|
||||
labeler:
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- uses: actions/labeler@v6
|
||||
with:
|
||||
repo-token: ${{ secrets.GITEA_TOKEN }}
|
||||
configuration-path: .gitea/labeler.yml
|
||||
|
||||
handle_failures:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [leak_test, lint_test]
|
||||
|
||||
Reference in New Issue
Block a user