Implement a Github Workflow for Issues and PR Auto-comment #38
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: PR Comment | |
on: | |
pull_request: | |
types: [opened] | |
jobs: | |
add_comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Add a "Thank you" comment to new PR | |
uses: actions-ecosystem/action-add-comment@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
issue_number: ${{ github.event.pull_request.number }} | |
comment: '🎉 Thank you for your contribution! Your pull request has been submitted successfully. A maintainer from DearDiary team will review it as soon as possible. We appreciate your support in making this project better.' |