Skip to content

Add review body to automatic reviews #16

Add review body to automatic reviews

Add review body to automatic reviews #16

Workflow file for this run

# yamllint disable rule:line-length
# yamllint disable rule:braces
name: PR Approval
on:
pull_request:
env:
LINES: ('Cool' 'Nice')
jobs:
approve_pr:
name: Automatic Approval
runs-on: ubuntu-latest
if: github.actor == github.repository_owner
steps:
- name: Approve PR
env:
GH_TOKEN: ${{ github.token }}
run: |
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 -