From e8cab2ce7e2a8a341217172ee0713ff8907d25fb Mon Sep 17 00:00:00 2001 From: mpoke Date: Fri, 1 Dec 2023 12:11:05 +0100 Subject: [PATCH] add workflow for adding issue labels --- .github/issue_labeler.yml | 2 ++ .github/workflows/issue_labeler.yml | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .github/issue_labeler.yml create mode 100644 .github/workflows/issue_labeler.yml diff --git a/.github/issue_labeler.yml b/.github/issue_labeler.yml new file mode 100644 index 0000000000..cd0e25488a --- /dev/null +++ b/.github/issue_labeler.yml @@ -0,0 +1,2 @@ +needs-triage: # if no label is set then set triage + - '' diff --git a/.github/workflows/issue_labeler.yml b/.github/workflows/issue_labeler.yml new file mode 100644 index 0000000000..cc3e78fe99 --- /dev/null +++ b/.github/workflows/issue_labeler.yml @@ -0,0 +1,15 @@ +name: "Issue Labeler" +on: + issues: + types: [opened] + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v3.3 + if: join(github.event.issue.labels) == '' + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/issue_labeler.yml + enable-versioned-regex: 0