From e03238f6d23555c1d221811beefd9b3fa0f119a0 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Thu, 26 Jun 2025 14:48:27 +1000 Subject: [PATCH 1/3] Create Labeler workflow --- .github/workflows/label.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/label.yml diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 000000000000..1a69cfdbf597 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,21 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# The paths are set up in .github/labeler.yml +# +# See: https://github.com/actions/labeler + +name: Labeler +on: [pull_request_target] + +jobs: + label: + + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From abb4f3c4cb49ab0df14c02f60f1612eb74c9669e Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Thu, 26 Jun 2025 14:55:16 +1000 Subject: [PATCH 2/3] Add label to new pull requests that touch docs files --- .github/labeller.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .github/labeller.yml diff --git a/.github/labeller.yml b/.github/labeller.yml new file mode 100644 index 000000000000..3eb8c74c96f0 --- /dev/null +++ b/.github/labeller.yml @@ -0,0 +1,10 @@ +# Labeler configuration file for GitHub Actions +# The action is ./.github/workflows/label.yml +# Docs for the syntax in this file can be found at +# https://github.com/actions/labeler + + +# Add 'Documentation' label to any changes within 'docs' folder or any subfolders +"Documentation+📑": +- changed-files: + - any-glob-to-any-file: docs/** From f67ca3e09d38192813e0f67dc2cd8df12e1bd5a1 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Wed, 2 Jul 2025 09:16:53 +1000 Subject: [PATCH 3/3] Rename labeler.yml --- .github/{labeller.yml => labeler.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{labeller.yml => labeler.yml} (100%) diff --git a/.github/labeller.yml b/.github/labeler.yml similarity index 100% rename from .github/labeller.yml rename to .github/labeler.yml