From b55fa79836c63eab81e884e6ec1d7e4ae5c7f9b5 Mon Sep 17 00:00:00 2001 From: John McBride Date: Mon, 15 Feb 2021 10:48:09 -0700 Subject: [PATCH] Add PR labeler with pull_request_target (#1338) * Add PR labeler with pull_request_target --- .github/labeler.yml | 16 ++++++++++++++++ .github/workflows/labeler.yml | 12 ++++++++++++ 2 files changed, 28 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 00000000..bd2b3bf5 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,16 @@ +# changes to documentation generation +"area/doc-gen": doc/**/* + +# changes to the core Go cobra lib package +"area/lib": ./*.go + +# changes to the Cobra CLI +"area/cli": cobra/**/* + +# changes to Github workflows +"area/github": .github/**/* + +# changes to shell completions +"area/*sh completion": + - ./*completions* + diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..ce4fc1fd --- /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@v3 + with: + repo-token: "${{ github.token }}" +