diff --git a/.github/other-configurations/labeller.yml b/.github/other-configurations/labeller.yml new file mode 100644 index 0000000..6c6806a --- /dev/null +++ b/.github/other-configurations/labeller.yml @@ -0,0 +1,35 @@ +# labels auto assigned to PR, keep in sync with labels.yml +documentation: + - any: + - changed-files: + - any-glob-to-any-file: ["README.md", "docs/**"] +dependencies: + - any: + - changed-files: + - any-glob-to-any-file: ["**/poetry.lock", "package-lock.json"] + - head-branch: ["^dependabot"] +python: + - any: + - changed-files: + - any-glob-to-any-file: ["*.py", "**/*.py"] +just: + - any: + - changed-files: + - any-glob-to-any-file: ["Justfile", "**/*.just"] +shell: + - any: + - changed-files: + - any-glob-to-any-file: ["**/*.sh"] +github_actions: + - any: + - changed-files: + - any-glob-to-any-file: + [".github/workflows/*", ".github/workflows/**/*"] +analyser: + - any: + - changed-files: + - any-glob-to-any-file: ["analyser/**"] +git_hooks: + - any: + - changed-files: + - any-glob-to-any-file: ["githooks/**"] diff --git a/.github/workflows/pull-request-checks.yml b/.github/workflows/pull-request-checks.yml index 176e1b9..a95b651 100644 --- a/.github/workflows/pull-request-checks.yml +++ b/.github/workflows/pull-request-checks.yml @@ -25,3 +25,11 @@ jobs: uses: deepakputhraya/action-pr-title@v1.0.2 with: allowed_prefixes: "feat: ,fix: ,bug: ,ci: ,refactor: ,docs: ,build: ,chore(,deps(,chore: ,feat!: ,fix!: ,refactor!: ,test: " # title should start with the given prefix + labeller: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/other-configurations/labeller.yml + sync-labels: true