Skip to content

Commit 1266fa4

Browse files
authored
Add auto-reply (#55)
2 parents 81b8e09 + bae73ff commit 1266fa4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/auto-reply.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Auto Reply to New PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
welcome:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write # Grant write permission for creating comments
12+
steps:
13+
- name: Post Welcome Message
14+
uses: actions/github-script@v5
15+
with:
16+
github-token: ${{ secrets.GITHUB_TOKEN }}
17+
script: |
18+
github.rest.issues.createComment({
19+
issue_number: context.issue.number,
20+
owner: context.repo.owner,
21+
repo: context.repo.repo,
22+
body: "Thank you for opening this Pull Request! This repository is for demo purposes only. It's not maintained and there is no CI or merge rules. If you have permissions, you're free to merge the PR without review. If you'd like a review, please explicitly request it."
23+
})

0 commit comments

Comments
 (0)