Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add review body to automatic reviews #141

Merged
merged 17 commits into from
Feb 17, 2024
8 changes: 7 additions & 1 deletion .github/workflows/autoapprove.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ name: PR Approval
on:
pull_request:

env:
LINES: "'Cool' 'Nice'"

jobs:
approve_pr:
name: Automatic Approval
Expand All @@ -16,4 +19,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr review ${{ github.event.pull_request.html_url }} --approve
shuf -n 1 -e ${{ env.LINES }}
shuf -n 1 -e "${LINES[@]}"
shuf -n 1 -e "${LINES[@]}" |
gh pr review ${{ github.event.pull_request.html_url }} --approve --body -
Loading