From e81531105e9ecf96a0484f3cd4de5d2161471e85 Mon Sep 17 00:00:00 2001 From: Ian Maddaus Date: Thu, 14 Dec 2023 16:21:23 -0500 Subject: [PATCH] Add labeler action for docs Signed-off-by: Ian Maddaus --- .github/labeler.yml | 2 ++ .github/workflows/labeler.yml | 17 +++++++++++++++++ 2 files changed, 19 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..1abade11f --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,2 @@ +documentation: + - 'docs-chef-io/**/*' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..7ac4d8359 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,17 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +permissions: + contents: read + +jobs: + triage: + permissions: + contents: read # for actions/labeler to determine modified files + pull-requests: write # for actions/labeler to add labels to PRs + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"