Skip to content

Commit 28860c6

Browse files
Merge pull request #65 from Zunairah-k/add-pr-bot
Add GitHub Auto-Response for New Pull Requests
2 parents 2a169ff + 2955f8f commit 28860c6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Auto-Respond to New Pull Requests
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
pr_response:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Post automated comment on new PR
13+
uses: actions/github-script@v6
14+
with:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
16+
script: |
17+
github.issues.createComment({
18+
issue_number: context.payload.pull_request.number,
19+
owner: context.repo.owner,
20+
repo: context.repo.repo,
21+
body: "🚀 Thank you for submitting a Pull Request!\n\nWe appreciate your contribution. Our team will review your PR shortly. Please ensure your PR follows the repository guidelines, includes a clear description of the changes, and references the related issue number.\n\nIf there are any merge conflicts, please resolve them before the PA reviews your PR.\n\nYour effort helps improve this project — happy coding! 🌟"
22+
});

0 commit comments

Comments
 (0)