pvillard31 commented on code in PR #11103:
URL: https://github.com/apache/nifi/pull/11103#discussion_r3033525696
##########
.github/workflows/build.yml:
##########
@@ -56,10 +56,79 @@ permissions:
pull-requests: read
jobs:
+ validate-pull-request:
Review Comment:
Thoughts about having the check post a comment on the PR in case of
validation failure?
```yml
- name: Validate Title
id: validate-title
continue-on-error: true
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
.github/scripts/build/validate-title.sh 2>&1 | tee -a
/tmp/validation-errors.txt || true
# ... similar for other steps ...
- name: Comment on Pull Request
if: ${{ contains(steps.*.outcome, 'failure') }}
env:
GH_TOKEN: ${{ github.token }}
run: |
BODY=$(cat /tmp/validation-errors.txt)
gh pr comment "${{ github.event.pull_request.number }}" \
--repo "${{ github.repository }}" \
--body "## Pull Request Validation Failed
The following issues were found:
${BODY}
Please address these issues and update your pull request."
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]