From 332ee15c68756782d38fe917d88cd02ce7750c07 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Mon, 1 Nov 2021 16:28:31 -0400 Subject: [PATCH] Add action to label new issues and pull requests --- .github/labeler.yml | 11 +++++++++++ .github/workflows/triage.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/triage.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..75adb1d02 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +needs_triage: + - '.*' + - '.*/*' + - '*' + - '*/*' + +docs: + - docs/* + +test: + - 'test/*' diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml new file mode 100644 index 000000000..7ded537a4 --- /dev/null +++ b/.github/workflows/triage.yml @@ -0,0 +1,26 @@ +name: Triage + +permissions: + contents: read + pull-requests: write + issues: write + +on: + issues: + types: + - opened + + pull_request: + types: + - opened + +jobs: + triage: + runs-on: ubuntu-latest + name: Label + + steps: + - name: Apply labels + uses: actions/labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"