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 }}