From 7d2f7abfb00d668a482a8cbd1efdee7e86d5c9e4 Mon Sep 17 00:00:00 2001 From: Yi Lin Date: Wed, 6 Dec 2023 03:00:27 +0000 Subject: [PATCH] Add an action that labels new issues for triage. --- .github/workflows/auto-label-new-issues.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/auto-label-new-issues.yml diff --git a/.github/workflows/auto-label-new-issues.yml b/.github/workflows/auto-label-new-issues.yml new file mode 100644 index 0000000000..fbd7ddb50f --- /dev/null +++ b/.github/workflows/auto-label-new-issues.yml @@ -0,0 +1,16 @@ +name: Auto Label New Issues + +on: + issues: + types: [opened, edited] + +jobs: + automate-issues-labels: + runs-on: ubuntu-latest + steps: + - name: Add F-triage for new issues if there is no priority label assigned. + uses: matthamil/labeler@main + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + required-label-prefixes: 'P-' + default-labels: 'F-triage'