From e5516a140534d24bbeda077d99be51568ee74c4e Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Fri, 3 May 2024 15:17:31 +0200 Subject: [PATCH] ci: add labeler to replace mergify --- .github/labeler.yml | 23 +++++++++++++++++++++++ .github/workflows/labeler.yml | 19 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..2868461 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,23 @@ +--- + +configuration: + - changed-files: + - any-glob-to-any-file: + - '**/*.yml' + - Dockerfile + - .shellcheckrc + - Makefile + +documentation: + - changed-files: + - any-glob-to-any-file: + - docs/** + - '**/*.md' + +source: + - changed-files: + - any-glob-to-any-file: src/** + +test: + - changed-files: + - any-glob-to-any-file: test/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..ca04e4e --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,19 @@ +--- + +name: Pull Request Labeler +on: + pull_request_target: + +permissions: + contents: read + +jobs: + labeler: + runs-on: ubuntu-latest + permissions: + pull-requests: write + + steps: + - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 #v5.0.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }}