name: Triage new issues on: issues: types: [opened] permissions: issues: write env: DO_NOT_TRACK: "1" KTX_TELEMETRY_DISABLED: "1" NEXT_TELEMETRY_DISABLED: "1" jobs: label-external: name: Add needs-triage to external issues runs-on: ubuntu-latest if: | github.event.issue.author_association != 'OWNER' && github.event.issue.author_association != 'MEMBER' && github.event.issue.author_association != 'COLLABORATOR' steps: - name: Apply needs-triage label uses: actions/github-script@v9 with: script: | await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, labels: ['needs-triage'], });