From 448d6b94431f80a052eb48142a42680da68655d9 Mon Sep 17 00:00:00 2001 From: Archie Jaskowicz Date: Fri, 22 Sep 2023 20:04:02 +0100 Subject: [PATCH] feat: added an auto-labeller for documentation PRs. (#877) --- .github/labeler.yml | 5 +++++ .github/workflows/labeler.yml | 22 ++++++++++++++++++++++ 2 files changed, 27 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 0000000000..34cb5824bf --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,5 @@ +documentation: +- '**Doxyfile' +- '**docpages/**' +- '**/*.h' +- '**/documentation.yml' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..2a70c1b9ac --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,22 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +permissions: + contents: read + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Harden Runner + uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 + with: + egress-policy: audit + + - uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}