Skip to content

Commit c7c68d7

Browse files
committed
feat: add a comment on opening PRs as an instruction for deploying review apps
1 parent 3d21797 commit c7c68d7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Add helper Comment on PR creation
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
comment-on-pr:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/github-script@v6
12+
with:
13+
script: |
14+
github.rest.issues.createComment({
15+
issue_number: context.issue.number,
16+
owner: context.repo.owner,
17+
repo: context.repo.repo,
18+
body: "Hi 👋 To deploy a review app, please comment `/deploy-review-app`"
19+
})

0 commit comments

Comments
 (0)