From 065fe0769682e16e146849b0d98de4b31376af9e Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Mon, 25 Oct 2021 19:29:31 +0200 Subject: [PATCH] Add auto labeler workflow --- .github/labeler.yml | 35 +++++++++++++++++++++++++++ .github/workflows/auto_labeler_pr.yml | 16 ++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/auto_labeler_pr.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..a59bd3ec --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,35 @@ +"Category: CI": + - .github/workflows/* + +"Category: Meta": + - ./* + - .github/* + - .github/ISSUE_TEMPLATE/* + - .github/PULL_REQUEST_TEMPLATE/* + - .gitignore + +"Category: Build System": + - meson.build + - meson_options.txt + - subprojects/* + +"Category: Documentation": + - docs/* + +"Category: Resources": + - resources/* + +"Category: Themes": + - data/colors/* + +"Category: Lua Core": + - data/core/* + +"Category: Fonts": + - data/fonts/* + +"Category: Plugins": + - data/plugins/* + +"Category: C Core": + - src/* diff --git a/.github/workflows/auto_labeler_pr.yml b/.github/workflows/auto_labeler_pr.yml new file mode 100644 index 00000000..48ea1eeb --- /dev/null +++ b/.github/workflows/auto_labeler_pr.yml @@ -0,0 +1,16 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +permissions: + pull-requests: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Apply Type Label + uses: actions/labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + sync-labels: "" # works around actions/labeler#104