Skip to content

feat: improved and corrected existing github workflows #3

feat: improved and corrected existing github workflows

feat: improved and corrected existing github workflows #3

name: Auto Comment on PR Merge
on:
pull_request:
types: [closed]
permissions:
issues: write
pull-requests: write
jobs:
comment:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Add Comment to PR
uses: actions/github-script@v7
with:
script: |
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.name,
issue_number: context.issue.number,
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! 🚀'
});