Skip to content

Commit

Permalink
Merge pull request #105 from Asymtode712/PRMergeFeat
Browse files Browse the repository at this point in the history
added auto commenting feat for PR Merged
  • Loading branch information
PatilHarshh authored May 19, 2024
2 parents 42bba09 + abd0ded commit 3e37c79
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/autocomment-pr-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Auto Comment on PR Merge

on:
pull_request:
types: [closed]

jobs:
notify:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest

steps:
- name: Post merge comment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -H "Authorization: token $GITHUB_TOKEN" \
-X POST \
-d '{"body":"🎉 Your pull request has been successfully merged! 🎉 Thank you for your valuable contribution to our project. Your efforts are greatly appreciated. Feel free to reach out if you have any more contributions or if there's anything else we can assist you with. Keep up the fantastic work! 🚀"}' \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"

0 comments on commit 3e37c79

Please sign in to comment.