Skip to content

Add review body to automatic reviews #22

Add review body to automatic reviews

Add review body to automatic reviews #22

Workflow file for this run

# yamllint disable rule:line-length
# yamllint disable rule:braces
name: PR Approval
on:
pull_request:
env:
LINES: >
"Whatever you say!"
"Isn't this exciting? I know I'm excited!"
"I have a good feeling about this! It's going to be great!"
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 }} |
gh pr review ${{ github.event.pull_request.html_url }} --approve --body-file -