Adding new Game POP THE BALOON #1339
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Comment on PR Closure | |
on: | |
pull_request_target: | |
types: | |
- closed | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Comment on PR Closure | |
uses: actions/github-script@v4 | |
with: | |
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
script: | | |
const { owner, repo, number } = context.issue; | |
const commentAuthor = context.payload.pull_request.user.login; | |
const commentBody = `Thank you @${commentAuthor} , for your valuable time and contribution in our GameZone 💗. \n It’s our GameZone, so Let’s build this GameZone altogether !!🤝\n Hoping to see you soon with another PR again 😇 \n Wishing you all the best for your journey into Open Source🚀 | |
`; | |
await github.issues.createComment({ owner, repo, issue_number: number, body: commentBody }); | |
console.log(`Commented on the closed PR: ${commentBody}.`); |