diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..9d1ed4e1d9 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,24 @@ +# 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. + +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/**' + - 'ci/**' 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