Skip to content

fix: resolve 3 bugs in samdev-pulse #312

fix: resolve 3 bugs in samdev-pulse

fix: resolve 3 bugs in samdev-pulse #312

Workflow file for this run

name: PR Merged Congratulator
on:
pull_request_target:
types: [closed]
jobs:
congratulate:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Post Congratulatory Comment
uses: actions/github-script@v7
with:
script: |
const prNumber = context.payload.pull_request.number;
const creator = context.payload.pull_request.user.login;
const commentBody = `πŸŽ‰ **Congratulations @${creator}!** πŸŽ‰
Your pull request has been successfully merged into **samdev-pulse**! Thank you so much for your valuable contribution and effort. Every single improvement helps make samdev-pulse a better profile experience for everyone! πŸ™Œ
πŸš€ **What's Next?**
- **Keep the momentum going!** Feel free to browse through our open **[Issues](https://github.com/${context.repo.owner}/${context.repo.repo}/issues)** and grab another one that interests you!
- **Support the Project:** If you enjoyed contributing to samdev-pulse, **please take a second to [star our repository](https://github.com/${context.repo.owner}/${context.repo.repo})**! It helps increase the project's visibility and supports our community. ⭐
πŸ’¬ **Stay Connected:**
Have any questions, want feedback, or just want to discuss further contributions? Feel free to reach out directly to the maintainer on Discord: **dot_notsam**
Thank you again, and keep up the amazing work! πŸ’»βœ¨`;
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
body: commentBody
});