From 1579dd7ff9b28fd96d45e0ab5a06a6ffec5e9015 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Mon, 15 Nov 2021 13:56:00 -0600 Subject: [PATCH] Automatically add PR labels (#1835) * chore: add PR labeler * chore: update labeler config * chore: add action label * refactor: use terse syntax --- .github/labeler.yml | 21 +++++++++++++++++++++ .github/workflows/label.yml | 12 ++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..0f39cc3ebd --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,21 @@ +# See https://github.com/actions/labeler + +example: +- examples/**/* + +action: +- .github/workflows/** + +docs: +- docs/** + +www: +- www/** + +i18n: +- any: + - 'docs/src/pages/*/**' + - '!docs/src/pages/core-concepts/**' + - '!docs/src/pages/guides/**' + - '!docs/src/pages/migration/**' + - '!docs/src/pages/reference/**' diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000000..39929e9bc0 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,12 @@ +name: Label PRs + +on: + - pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"