From 7040587b50f4844fa098f69e3c1775f5ed9325d7 Mon Sep 17 00:00:00 2001 From: Gnought <1684105+gnought@users.noreply.github.com> Date: Sat, 13 Mar 2021 12:27:27 +0800 Subject: [PATCH] Add workflow for labeling PRs by their content (#595) --- .github/labeler.yml | 7 +++++++ .github/workflows/labeler.yml | 10 ++++++++++ 2 files changed, 17 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..a7b3074d --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,7 @@ +# PRs that only touch the docs folder +documentation: + - all: ["docs/**/*"] + +# PRs that only touch type files +typescript: + - all: ["**/*[.|-]d.ts"] diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..d1b07822 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,10 @@ +name: "Pull Request Labeler" +on: pull_request_target + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"