From 7df3f4312864421be74a6f7026c866c732a61730 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Tue, 22 Sep 2026 13:49:57 +0000 Subject: [PATCH 1/2] Add a PR auto-labeler workflow Adds a GitHub Actions workflow (actions/labeler v5) that labels PRs from the paths they touch, driven by a glob->label map in .github/labeler.yml. New label mappings are added by editing that file. Runs on pull_request_target so it can label fork PRs, with minimal permissions (contents: read, pull-requests: write) and scoped to main. It never checks out or runs PR code, and sync-labels is off so it only adds labels, never removing manually-applied ones. Co-authored-by: Isaac --- .github/labeler.yml | 34 ++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 68 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 00000000000..6e1edc0a995 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,34 @@ +# Configuration for the "PR Labeler" workflow (.github/workflows/labeler.yml). +# +# Maps a label to the file globs that, when matched by a PR's diff, cause the +# label to be applied. Uses the actions/labeler v5 config format, documented at +# https://github.com/actions/labeler/blob/v5.0.0/README.md +# +# To add a new mapping, copy the block below. The label MUST already exist in +# the repository (labeler does not create labels), and globs use minimatch +# syntax where `**` matches nested paths: +# +#