From 28d228939926d73091d96f759c4ab82cc2cee9b8 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Mon, 23 Mar 2020 19:21:19 -0400 Subject: [PATCH] ENH: Add Label PR GitHub Action Applies a PR based the title prefix, which defaults to the commit prefix for single-commit topics. --- .github/labeler.yml | 17 +++++++++++++++++ .github/workflows/label-pr.yml | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label-pr.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000000..1019adfaa23 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,17 @@ +type:Compiler: + title: "^COMP:.*" + +type:Bug: + title: "^BUG:.*" + +area:Documentation: + title: "^DOC:.*" + +type:Enhancement: + title: "^ENH:.*" + +type:Performance: + title: "^PERF:.*" + +type:Style: + title: "^STYLE:.*" diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml new file mode 100644 index 00000000000..dc355fa24b9 --- /dev/null +++ b/.github/workflows/label-pr.yml @@ -0,0 +1,13 @@ +name: Label PRs + +on: + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: srvaroa/labeler@master + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"