Skip to content

Commit

Permalink
Update greetings.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-dpkg authored Oct 12, 2024
1 parent aa03199 commit 6146b4a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { context } = require('@actions/github');
const prNumber = context.payload.pull_request.number;
const prAuthor = context.payload.pull_request.user.login; // Get the username of the PR author
const message = `
🎉 Congratulations @${prAuthor} on getting your pull request merged! Thank you for your contribution to the project.
🎉 Congratulations on getting your pull request merged! 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.rest.issues.createComment({
await github.pulls.createReviewComment({
...context.repo,
issue_number: prNumber,
pull_number: prNumber,
body: message,
});

0 comments on commit 6146b4a

Please sign in to comment.