From 201248e43678b30a31e0601deec44629754171f1 Mon Sep 17 00:00:00 2001 From: Marko Date: Wed, 1 Feb 2023 20:48:30 +0100 Subject: [PATCH] chore: add triage label (#14869) --- .github/issue_labeler.yml | 2 ++ .github/{labeler.yml => pr_labeler.yml} | 0 .github/workflows/issue_labeler.yml | 14 ++++++++++++++ .github/workflows/{labeler.yml => pr_labeler.yml} | 3 ++- 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/issue_labeler.yml rename .github/{labeler.yml => pr_labeler.yml} (100%) create mode 100644 .github/workflows/issue_labeler.yml rename .github/workflows/{labeler.yml => pr_labeler.yml} (77%) diff --git a/.github/issue_labeler.yml b/.github/issue_labeler.yml new file mode 100644 index 0000000000..cbf9afde2d --- /dev/null +++ b/.github/issue_labeler.yml @@ -0,0 +1,2 @@ +triage: # if no label is set then set triage + - '' diff --git a/.github/labeler.yml b/.github/pr_labeler.yml similarity index 100% rename from .github/labeler.yml rename to .github/pr_labeler.yml diff --git a/.github/workflows/issue_labeler.yml b/.github/workflows/issue_labeler.yml new file mode 100644 index 0000000000..94e28f04f0 --- /dev/null +++ b/.github/workflows/issue_labeler.yml @@ -0,0 +1,14 @@ +name: "Issue Labeler" +on: + issues: + types: [opened] + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v2.6 + if: join(github.event.issue.labels) == '' + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/issue_labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/pr_labeler.yml similarity index 77% rename from .github/workflows/labeler.yml rename to .github/workflows/pr_labeler.yml index 2d9b4acec7..885d8b47db 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/pr_labeler.yml @@ -14,4 +14,5 @@ jobs: steps: - uses: actions/labeler@main with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + configuration-path: .github/pr_labeler.yml + repo-token: "${{ secrets.GITHUB_TOKEN }}"