diff --git a/.github/labeler.yml b/.github/labeler.yml index f4d4fb73..1b822f44 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,14 +1,28 @@ ci-cd: - - .github/**/* + - any-glob-to-any-file: .github/** dependencies: - - requirements/*.txt + - any-glob-to-any-file: requirements/*.txt - requirements.txt documentation: - - docs/**/* - - requirements/documentation.txt + - changed-files: + - any-glob-to-any-file: docs/** + - requirements/documentation.txt + +enhancement: + - head-branch: ["^feature", "feature", "^improve", "improve"] + +packaging: + - head-branch: ["^packaging", "packaging"] + +tooling: + - head-branch: ["^tooling", "tooling"] + - codecov.yml + - .pre-commit-config.yaml + - sonar-project.properties UI: - - qtribu/**/*.ui - - qtribu/gui/**/* + - head-branch: ["^ui", "ui"] + - any-glob-to-any-file: qtribu/**/*.ui + - any-glob-to-any-file: qtribu/gui/** diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml index 3dc39152..c4774654 100644 --- a/.github/workflows/auto-labeler.yml +++ b/.github/workflows/auto-labeler.yml @@ -4,8 +4,11 @@ on: jobs: triage: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}"