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'] + })