added a timer for better user exp #18
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: Thank You on Pull Request | |
on: | |
pull_request: | |
types: | |
- opened | |
jobs: | |
thankyou: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Thank You Message | |
run: | | |
PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") | |
COMMENT="Thank you for making the pull request, @${{ github.actor }}! Your contribution is appreciated. 🙌" | |
curl -sSL -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"body":"'"$COMMENT"'"}' -H "Content-Type: application/json" -X POST "https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments" |