Skip to content

Commit 54e2196

Browse files
authored
Blazor issue/PR automation (#34230)
1 parent 2117fd2 commit 54e2196

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

โ€Ž.github/workflows/blazor-issue-processing.ymlโ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ jobs:
2222
issue_number: context.issue.number,
2323
owner: context.repo.owner,
2424
repo: context.repo.repo,
25-
body: `### ๐Ÿ‚๐ŸŽƒ๐Ÿฎ *Autumn Skies and Pumpkin Pies!* ๐Ÿฅงโ˜•๐Ÿ‚
26-
Stand by! A green dinosaur ๐Ÿฆ– will arrive shortly to assist.`
25+
body: `### ๐Ÿ‚๐ŸŽƒ๐Ÿฎ *OOF: Back on Monday, 12/2* ๐Ÿฅงโ˜•๐Ÿ‚
26+
Stand by! We're out of the office for the Thanksgiving holiday ๐Ÿฆƒ.
27+
28+
A green dinosaur ๐Ÿฆ– will be back on Monday (12/2) to assist.`
2729
})
2830
await github.rest.issues.addLabels({
2931
issue_number: context.issue.number,
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: PR processing
2+
on:
3+
pull_request:
4+
types:
5+
[review_requested]
6+
jobs:
7+
process-blazor-pr:
8+
if: ${{ github.event.requested_reviewer.login == 'guardrex' }}
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
steps:
13+
- uses: actions/github-script@v6
14+
with:
15+
script: |
16+
await github.rest.issues.createComment({
17+
issue_number: context.issue.number,
18+
owner: context.repo.owner,
19+
repo: context.repo.repo,
20+
body: `### ๐Ÿ‚๐ŸŽƒ๐Ÿฎ *OOF: Back on Monday, 12/2* ๐Ÿฅงโ˜•๐Ÿ‚
21+
Stand by! We're out of the office for the Thanksgiving holiday ๐Ÿฆƒ.
22+
23+
A green dinosaur ๐Ÿฆ– will be back on Monday (12/2) to assist.`
24+
})

0 commit comments

Comments
ย (0)