2024-10-25 19:25:03 +08:00
|
|
|
name: Issue processing
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types:
|
2024-10-25 21:36:00 +08:00
|
|
|
- labeled
|
2024-10-25 19:25:03 +08:00
|
|
|
jobs:
|
|
|
|
process-blazor-issue:
|
2024-10-25 21:36:00 +08:00
|
|
|
if: github.event.label.name == 'blazor/subsvc'
|
2024-10-25 19:25:03 +08:00
|
|
|
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"]
|
|
|
|
})
|