From d898576997c197830ba1fef4de8470df0cc6841d Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Tue, 24 Mar 2026 20:31:59 -0400 Subject: [PATCH 1/4] Add labeler config for auto-labeling PRs by path --- .github/labeler.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..7c5644c558 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,18 @@ +# Configuration for actions/labeler +# Auto-applies labels based on which files a PR changes. + +cuda.bindings: + - changed-files: + - any-glob-to-any-file: 'cuda_bindings/**' + +cuda.core: + - changed-files: + - any-glob-to-any-file: 'cuda_core/**' + +cuda.pathfinder: + - changed-files: + - any-glob-to-any-file: 'cuda_pathfinder/**' + +CI/CD: + - changed-files: + - any-glob-to-any-file: '.github/**' From 530e85228376364ddbc1fd7aef049c4525b47386 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Tue, 24 Mar 2026 20:32:06 -0400 Subject: [PATCH 2/4] Add auto-label workflow using actions/labeler v6 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/pr-auto-label.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pr-auto-label.yml diff --git a/.github/workflows/pr-auto-label.yml b/.github/workflows/pr-auto-label.yml new file mode 100644 index 0000000000..7b86455b2d --- /dev/null +++ b/.github/workflows/pr-auto-label.yml @@ -0,0 +1,23 @@ +# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +name: "CI: Auto-label PRs by path" + +on: + pull_request_target: + types: + - opened + - synchronize + +jobs: + auto-label: + name: Auto-label by changed paths + if: github.repository_owner == 'NVIDIA' + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - name: Apply labels + uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1 From 42d5e5c1fe9d9db212dadbb3380e7749fa2a856e Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Tue, 24 Mar 2026 20:43:21 -0400 Subject: [PATCH 3/4] Add ci/ folder to CI/CD label mapping --- .github/labeler.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 7c5644c558..2cdde6224d 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -15,4 +15,6 @@ cuda.pathfinder: CI/CD: - changed-files: - - any-glob-to-any-file: '.github/**' + - any-glob-to-any-file: + - '.github/**' + - 'ci/**' From cf63f328bdfc469060ff9a014b54f6d5b50db2cb Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Tue, 24 Mar 2026 21:01:50 -0400 Subject: [PATCH 4/4] Add SPDX header to labeler.yml to fix pre-commit check --- .github/labeler.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/labeler.yml b/.github/labeler.yml index 2cdde6224d..9d1ed4e1d9 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + # Configuration for actions/labeler # Auto-applies labels based on which files a PR changes.