Skip to content

Commit

Permalink
Update greetings.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jinx-vi-0 authored Oct 16, 2024
1 parent 2a98a3c commit e14a8d4
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,19 @@ jobs:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "πŸ‘‹ Thank you for raising an issue! We appreciate your effort in helping us improve. Our DDoL team will review it shortly. Stay tuned!"
pr-message: "πŸŽ‰ Thank you for your contribution! Your pull request has been submitted successfully. A maintainer from DDoL team will review it as soon as possible. We appreciate your support in making this project better."
issue-message: "πŸ‘‹ Hey there, rockstar! Thanks for dropping an issue! The BlogLog team is on it like pineapple on pizza (love it or hate it). Stick around, magic's about to happen!"
pr-message: "πŸŽ‰ Boom! Your pull request just flew into the BlogLog HQ. High fives all around! Our team of tech wizards will check it out and get back to you faster than you can say 'code ninja!' Thanks for leveling up the project!"

congratulate:
if: github.event.action == 'closed' && github.event.issue != null
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Comment on the closed issue
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const issueNumber = context.payload.issue.number;
const message = `
πŸŽ‰ Congratulations on closing the issue! Thank you for your contribution to the project.
If you enjoy working with us, consider giving us a star on GitHub ⭐ and following us on our socials!
`;
await github.issues.createComment({
...context.repo,
issue_number: issueNumber,
body: message,
});
- name: Congratulate on Issue Closure
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments \
-d '{"body": "πŸŽ‰ Congratulations @'${{ github.event.issue.user.login }}'! Your issue has been successfully closed! Thanks for your contribution! If you enjoyed contributing, please consider giving us a ⭐ and following us for updates!"}'

0 comments on commit e14a8d4

Please sign in to comment.