定期イベント更新時の通知を、イベント作成者ではなく更新者から通知が送られるように変更 #6394
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
on: | |
pull_request: | |
types: [review_requested, review_request_removed, edited, closed] | |
jobs: | |
post_pr_event: | |
runs-on: ubuntu-latest | |
steps: | |
- name: post review requested pr event | |
run: | | |
curl -f -X POST https://fjord-choice.herokuapp.com/api/pulls \ | |
-H 'Content-Type: application/json' \ | |
-H 'Authorization: Token ${{ secrets.FJORD_CHOICE_TOKEN }}' \ | |
-d '{"title": ${{ toJson(github.event.pull_request.title) }}, | |
"number": ${{ github.event.pull_request.number }}, | |
"state": ${{ toJson(github.event.pull_request.state) }}, | |
"reviewer_uids": ${{ toJson(github.event.pull_request.requested_reviewers.*.id) }} | |
}' |