From 0380d611c1cfa6083d251e255b731e21655b8a02 Mon Sep 17 00:00:00 2001 From: John McBride Date: Fri, 5 Feb 2021 17:59:46 +0000 Subject: [PATCH] Add PR labeler with pull_request_target --- .github/labeler.yml | 13 +++++++++++++ .github/workflows/labeler.yml | 12 ++++++++++++ 2 files changed, 25 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 000000000..64e9b2262 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,13 @@ +# changes to documentation +"area/documentation": doc/**/* + +# changes to the core lib package +"area/lib": ./*.go + +# changes to the zsh completion +"area/*sh completion": + - ./zsh_* + - ./shell_* + - ./powershell_* + - ./bash_* + diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..232807c81 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,12 @@ +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 }}" +