Summarize review state and set outputs.
Aggregate latest review for each reviewer.
Usually set ${{ secret.GITHUB_TOKEN }}.
Or set your personal access token.
Number of approves.
Number of comments.
Number of change requests.
Number of pending.
on:
pull_request_review:
types:
- submitted
jobs:
test:
runs-on: ubuntu-latest
name: test
steps:
- name: review
uses: buildsville/review-summary@v1
id: summary
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: print review summary
run: |
echo "APPROVE: ${{ steps.summary.outputs.approved }}"
echo "REQUEST_CHANGES: ${{ steps.summary.outputs.changes_requested }}"
echo "COMMENT: ${{ steps.summary.outputs.commented }}"
echo "PENDING: ${{ steps.summary.outputs.pending }}"
- name: print if more than 2 approve
if: steps.summary.outputs.approved > 2
run: |
echo "Got more than 2 approve!!!"