From bc92fb016796c7e8c8b06d4872a0792a1b4687f3 Mon Sep 17 00:00:00 2001 From: Bryan Richter Date: Sat, 25 Apr 2026 11:46:08 +0300 Subject: [PATCH] Add file-based automated PR labeling Signed-off-by: Bryan Richter --- .github/labeler.yml | 35 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 15 +++++++++++++++ 2 files changed, 50 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 00000000..403f4554 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,35 @@ +autoconf: + - changed-files: + - any-glob-to-any-file: + - configure.ac + - autogen.sh + - '**/Makefile.am' + - 'm4/**' + +bazel: + - changed-files: + - any-glob-to-any-file: + - WORKSPACE + - .bazelrc + - .bazelversion + - '**/BUILD' + - 'bazel/**' + +dependencies: + - changed-files: + - any-glob-to-any-file: + - 'third_party/**' + - .gitmodules + - .github/dependabot.yml + +github_actions: + - changed-files: + - any-glob-to-any-file: + - '.github/workflows/**' + - '.github/actions/**' + +documentation: + - changed-files: + - any-glob-to-any-file: + - 'docs/**' + - '*.md' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..39643501 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,15 @@ +name: Labeler + +on: + pull_request_target: + types: [opened, synchronize] + +permissions: + contents: read + pull-requests: write + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5