You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ! [[ -z "${BODY// }" ]] || [ "$DRAFT" = true ]; then
echo "PR is draft or description has length, skipping comment."
else
gh pr comment "$NUMBER" --body "$MESSAGE"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
DRAFT: ${{ github.event.pull_request.draft }}
BODY: ${{ github.event.pull_request.body }}
MESSAGE: >
It looks like you didn't add a description to your pull request. Please edit and add as much detail as possible for the reviewers. Pull requests require a description before they will be reviewed - thank you.