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