From a86d5dd9063463a70a02d1aca9d15dea13360bc2 Mon Sep 17 00:00:00 2001 From: Joseph <68436579+jolorunyomi@users.noreply.github.com> Date: Mon, 8 Feb 2021 16:46:13 -0600 Subject: [PATCH] Auto-label PRs based on their content (#7044) This PR adds the GitHub action [PR Labeler](https://github.com/actions/labeler) to auto-label PRs based on their content. Labeling is managed with a configuration file `.github/labeler.yml` using the following [options](https://github.com/actions/labeler#usage). Authors: - Joseph (@jolorunyomi) - Mike Wendt (@mike-wendt) Approvers: - AJ Schmidt (@ajschmidt8) - Keith Kraus (@kkraus14) - Mike Wendt (@mike-wendt) URL: https://github.com/rapidsai/cudf/pull/7044 --- .github/labeler.yml | 21 +++++++++++++++++++++ .github/workflows/labeler.yml | 11 +++++++++++ 2 files changed, 32 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..41fd3802d55 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,21 @@ +# Documentation for config - https://github.com/actions/labeler#common-examples + +cuDF (Python): + - 'python/**' + - 'notebooks/**' + +libcudf: + - 'cpp/**' + +CMake: + - '**/CMakeLists.txt' + - '**/cmake/**' + +cuDF (Java): + - 'java/**' + +gpuCI: + - 'ci/**' + +conda: + - 'conda/**' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000000..23956a02fbd --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,11 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"