From 5c7a4210528d68fdae36786a831897fd38feb02d Mon Sep 17 00:00:00 2001 From: Yam C Borodetsky Date: Sun, 18 Jan 2026 00:36:55 +0500 Subject: [PATCH 1/2] feat: Add automated pull request labeling using GitHub Actions and a configuration file. --- .github/labeler.yml | 22 ++++++++++++++++++++++ .github/workflows/labeler.yml | 15 +++++++++++++++ 2 files changed, 37 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..882546d --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,22 @@ +# Configuration for GitHub PR Labeler +# https://github.com/actions/labeler + +conduit: + - changed-files: + - any-glob-to-any-file: "apps/conduit/**/*" + +www: + - changed-files: + - any-glob-to-any-file: "apps/www/**/*" + +docs: + - changed-files: + - any-glob-to-any-file: ["**/*.md"] + +tests: + - changed-files: + - any-glob-to-any-file: ["**/*.test.ts", "**/*.test.tsx"] + +"github actions": + - changed-files: + - any-glob-to-any-file: "**/.github/**/*" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..103768f --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,15 @@ +name: "Pull Request Labeler" + +on: +- pull_request_target + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v6 + with: + sync-labels: true From d381b1d597c1c1a4cccf2bdd620422f4839d82c2 Mon Sep 17 00:00:00 2001 From: Yam C Borodetsky Date: Sun, 18 Jan 2026 00:48:03 +0500 Subject: [PATCH 2/2] ci: simplify glob pattern for GitHub Actions labeler. --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 882546d..57b17c6 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -19,4 +19,4 @@ tests: "github actions": - changed-files: - - any-glob-to-any-file: "**/.github/**/*" + - any-glob-to-any-file: ".github/**/*"