Merge pull request 'feat : Add labeler configuration for PR auto-labeling' (#26) from dev into main
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s
Gitleaks Scan / gitleaks (push) Successful in 5s
Markdown Lint / markdown-lint (push) Successful in 5s
Mark stale issues and pull requests / stale (push) Successful in 3s

Reviewed-on: #26
This commit was merged in pull request #26.
This commit is contained in:
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: | run: |
ansible-lint 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: handle_failures:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [leak_test, lint_test] needs: [leak_test, lint_test]