feat : Add labeler configuration for PR auto-labeling #26

Merged
Jose merged 1 commits from dev into main 2026-02-14 20:11:08 +01:00
2 changed files with 35 additions and 0 deletions

22
.gitea/labeler.yml Normal file
View 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/**/*'

View File

@@ -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:
Review

[Lines 71-84] [Score: 2] Addition of labeler workflow could potentially increase the complexity and maintenance effort. It is recommended to review and test thoroughly to ensure there are no unintended consequences.

[Lines 71-84] [Score: 2] Addition of labeler workflow could potentially increase the complexity and maintenance effort. It is recommended to review and test thoroughly to ensure there are no unintended consequences.
runs-on: ubuntu-latest
needs: [leak_test, lint_test]