From 76e4e31b5abc30352ec4cf6e9bc4607894efcced Mon Sep 17 00:00:00 2001 From: Dora Do <140831752+doradocodes@users.noreply.github.com> Date: Thu, 7 May 2026 10:39:53 -0400 Subject: [PATCH] Refactor issue labeling workflow Updated workflow to use 'label_issue' job name and added GitHub token for label addition. --- .github/workflows/label-new-issues | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/label-new-issues diff --git a/.github/workflows/label-new-issues b/.github/workflows/label-new-issues new file mode 100644 index 0000000000..a97812f0e6 --- /dev/null +++ b/.github/workflows/label-new-issues @@ -0,0 +1,21 @@ +name: Label New Issues + +on: + issues: + types: [opened] + +jobs: + label_issue: + runs-on: ubuntu-latest + steps: + - name: Add "Awaiting Maintainer Approval" label + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + await github.rest.issues.addLabels({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: context.issue.number, + labels: ['Awaiting Maintainer Approval'] + })