Enhance PR comments #524
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: Trigger pull_request_review | |
on: | |
- pull_request | |
jobs: | |
required_version: | |
runs-on: ubuntu-latest | |
name: pull_request_review | |
steps: | |
- name: Trigger pull_request_review event | |
run: | | |
cat >review.json <<EOF | |
{ | |
"body": "Triggering pull_request_review event...", | |
"event": "COMMENT" | |
} | |
EOF | |
curl \ | |
--request POST \ | |
-H "Authorization: token ${{ secrets.REVIEW_GITHUB_TOKEN }}" \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
-H "User-Agent: terraform-github-actions" \ | |
-H "Content-Type: application/json" \ | |
--data-binary @review.json \ | |
${{ github.event.pull_request.url }}/reviews |