Product-PAGE responsiveness fixed #2
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 Pull Request Merge | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
comment: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: Thank the contributor | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.TOKEN }} | |
script: | | |
const issue_number = context.payload.pull_request.number; | |
const user = context.payload.pull_request.user.login; | |
const repo = context.repo.repo; | |
const owner = context.repo.owner; | |
await github.rest.issues.createComment({ | |
issue_number: issue_number, | |
owner: owner, | |
repo: repo, | |
body: `Thank you @${user} for contributing to **${repo}**! 🎉\nDon't forget to give the project a ⭐ if you found it helpful!` | |
}); |