Skip to content

Commit

Permalink
Auto-Reply to PR
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteCorum committed May 4, 2024
1 parent 515d867 commit 2547459
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto-Reply to PR
on:
pull_request:
types: [opened]

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Reply to PR
uses: actions/github-script@v5
with:
script: |
const prComment = `
🖐️ Hello @${{ github.actor }}!
Thank you for your contribution. We will review your pull request soon. Please make sure you have followed our contributing guidelines.
`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: prComment
});

0 comments on commit 2547459

Please sign in to comment.