From d04a2383fe70635b6aa26ed8b44fe2f3d0f24a7e Mon Sep 17 00:00:00 2001 From: "Daniel (dB.) Doubrovkine" Date: Wed, 15 Feb 2023 13:51:37 -0500 Subject: [PATCH] Added untriaged issue workflow. (#317) * Created untriaged issue workflow. Signed-off-by: dblock * Rebasing with main and fixing spotless errors Signed-off-by: Joshua Palis --------- Signed-off-by: dblock Signed-off-by: Joshua Palis Co-authored-by: Joshua Palis --- .github/workflows/add-untriaged.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/add-untriaged.yml diff --git a/.github/workflows/add-untriaged.yml b/.github/workflows/add-untriaged.yml new file mode 100644 index 00000000..15b9a556 --- /dev/null +++ b/.github/workflows/add-untriaged.yml @@ -0,0 +1,19 @@ +name: Apply 'untriaged' label during issue lifecycle + +on: + issues: + types: [opened, reopened, transferred] + +jobs: + apply-label: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v6 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ['untriaged'] + })