Skip to content

Commit

Permalink
chore: add validation for PR description and checklist
Browse files Browse the repository at this point in the history
  • Loading branch information
oCHRISo committed Oct 9, 2024
1 parent 2c32577 commit fc62bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/validate_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

# Check if the first two checklist items are selected
# This pattern allows for optional spaces and both lowercase/uppercase x between brackets
contrib_checked = re.search(r"- \[\s*[xX]\s*\] I have read the \[`CONTRIBUTING`\] document", pr_body)
contrib_checked = re.search(r"- \[\s*[xX]\s*\] I have read the \[`CONTRIBUTING`\]\(https://github.com/nginx/agent/blob/main/docs/CONTRIBUTING\.md\)", pr_body)
install_checked = re.search(r"- \[\s*[xX]\s*\] I have run `make install-tools`", pr_body)

if not contrib_checked:
Expand Down

0 comments on commit fc62bdd

Please sign in to comment.