From ceee9b639b27dd859cee75d667245040b34d0d6a Mon Sep 17 00:00:00 2001 From: Julien Moura Date: Fri, 8 Nov 2024 18:28:33 +0100 Subject: [PATCH] add(tooling): PR autolabeler --- .github/labeler.yml | 36 ++++++++++++++++++++++++++++++ .github/workflows/auto-labeler.yml | 14 ++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/auto-labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..5e5d36e --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,36 @@ +ci-cd: + - changed-files: + - any-glob-to-any-file: .github/** + +dependencies: + - changed-files: + - any-glob-to-any-file: + - requirements/*.txt + - requirements.txt + +documentation: + - 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"] + - changed-files: + - any-glob-to-any-file: + - codecov.yml + - .pre-commit-config.yaml + - sonar-project.properties + +UI: + - head-branch: ["^ui", "ui"] + - changed-files: + - any-glob-to-any-file: + - menu_from_project/**/*.ui + - menu_from_project/gui/** diff --git a/.github/workflows/auto-labeler.yml b/.github/workflows/auto-labeler.yml new file mode 100644 index 0000000..85fc77e --- /dev/null +++ b/.github/workflows/auto-labeler.yml @@ -0,0 +1,14 @@ +name: "🏷 PR Labeler" +on: + - pull_request + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"