2024-01-19 21:25:11 +08:00
|
|
|
name: Issue processing
|
|
|
|
on:
|
|
|
|
issues:
|
|
|
|
types:
|
|
|
|
- labeled
|
|
|
|
jobs:
|
2024-01-19 22:38:47 +08:00
|
|
|
process-grpc-issue:
|
|
|
|
if: github.event.label.name == 'grpc/subsvc'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
issues: write
|
|
|
|
steps:
|
|
|
|
- uses: actions/github-script@v6
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
await github.rest.issues.addLabels({
|
|
|
|
issue_number: context.issue.number,
|
|
|
|
owner: context.repo.owner,
|
|
|
|
repo: context.repo.repo,
|
|
|
|
labels: ["gRPC"]
|
|
|
|
})
|
|
|
|
|
|
|
|
process-signalr-issue:
|
|
|
|
if: github.event.label.name == 'aspnetcore-signalr/subsvc'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
issues: write
|
|
|
|
steps:
|
|
|
|
- uses: actions/github-script@v6
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
await github.rest.issues.addLabels({
|
|
|
|
issue_number: context.issue.number,
|
|
|
|
owner: context.repo.owner,
|
|
|
|
repo: context.repo.repo,
|
|
|
|
labels: ["SignalR"]
|
|
|
|
})
|