name: Issue processing on: issues: types: - labeled jobs: process-blazor-issue: if: github.event.label.name == 'blazor/subsvc' runs-on: ubuntu-latest permissions: issues: write steps: - uses: actions/github-script@v6 with: script: | await github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, body: `### ๐Ÿ‚๐ŸŽƒ๐Ÿฎ *Autumn Skies and Pumpkin Pies!* ๐Ÿฅงโ˜•๐Ÿ‚ Stand by! A green dinosaur ๐Ÿฆ– will arrive shortly to assist.` }) await github.rest.issues.addLabels({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, labels: ["Blazor"] }) await github.rest.issues.addAssignees({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, assignees: ["guardrex"] }) await github.rest.issues.removeLabel({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, name: [":watch: Not Triaged"] })