From b540faa556ed9e7eb3c1487123ef36931be77742 Mon Sep 17 00:00:00 2001 From: Ben Evans <49054298+bsanevans@users.noreply.github.com> Date: Sat, 25 Nov 2023 13:44:01 +0900 Subject: [PATCH] Update assign-feedback-to-project.yml --- .../workflows/assign-feedback-to-project.yml | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/assign-feedback-to-project.yml b/.github/workflows/assign-feedback-to-project.yml index 5fd2d7033..292c28270 100644 --- a/.github/workflows/assign-feedback-to-project.yml +++ b/.github/workflows/assign-feedback-to-project.yml @@ -17,18 +17,32 @@ jobs: with: script: console.log(context) - uses: actions/github-script@v7.0.1 - if: contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.labels.*.name, '[Type] Bug') && contains(github.event.issue.body, '/content') + if: contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.body, '/content') with: script: | - github.rest.issues.removeLabel({ + github.rest.issues.addLabels({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - name: ["[Type] Bug"] + labels: ["Content Feedback"] }) + - uses: actions/github-script@v7.0.1 + if: contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.body, '/dev') + with: + script: | github.rest.issues.addLabels({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - labels: ["Content Feedback"] + labels: ["[Type] Bug"] + }) + - uses: actions/github-script@v7.0.1 + if: contains(github.event.issue.labels.*.name, 'Awaiting Triage') && contains(github.event.issue.body, '/handbook') + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["[Admin] Handbook"] })