File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- name : PR Description Validator
1+ name : PR Description
22
33on :
44 pull_request :
55 types : [opened, edited, reopened]
66
77jobs :
88 validate-pr-description :
9- name : Validate PR Description
9+ name : Validate Description
1010 runs-on : ubuntu-latest
1111 steps :
1212 - name : Set up workspace
1313 uses : actions/checkout@v2
1414
15- - name : Validate PR Description
15+ - name : Validate
1616 run : |
1717 # Ensure jq is installed
18- sudo apt-get install jq
18+ # sudo apt-get install jq
1919
2020 # Fetch PR description using jq
2121 PR_DESCRIPTION=$(jq -r ".pull_request.body" "$GITHUB_EVENT_PATH")
2222 KEYWORD="REQUIRED_KEYWORD"
2323
24- # Check for the required keyword in the PR description
24+ # Users should remove the welcome comment
2525 if [[ $PR_DESCRIPTION = *"<!--"* ]] || [[ $PR_DESCRIPTION = *"-->"* ]]; then
26- echo "Please remove the welcome comment from your PR description."
26+ echo "FAILED: Please remove the welcome comment from your PR description."
2727 exit 1
2828 fi
You can’t perform that action at this time.
0 commit comments