File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 55 types : [opened, edited, reopened]
66
77jobs :
8- validate-pr-description :
9- name : Validate Description
8+ validate-pr-description :
109 runs-on : ubuntu-latest
1110 steps :
1211 - name : Set up workspace
1312 uses : actions/checkout@v2
1413
15- - name : Validate
14+ - name : Validate description
1615 run : |
17- # Ensure jq is installed
18- # sudo apt-get install jq
19-
20- # Fetch PR description using jq
16+ # Fetch PR description from env with jq
2117 PR_DESCRIPTION=$(jq -r ".pull_request.body" "$GITHUB_EVENT_PATH")
2218 KEYWORD="REQUIRED_KEYWORD"
2319
24- # Users should remove the welcome comment
20+ # Ensure PR author removed the welcome comment
2521 if [[ $PR_DESCRIPTION = *"<!--"* ]] || [[ $PR_DESCRIPTION = *"-->"* ]]; then
2622 echo "FAILED: Please remove the welcome comment from your PR description."
2723 exit 1
24+ else
25+ echo "OK: Welcome comment is removed your PR description."
2826 fi
27+
28+ echo "PASS: All checks OK!"
You can’t perform that action at this time.
0 commit comments