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"] })