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 0a8609d commit fe2df78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/validate_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
# Print the PR body for debugging (optional)
print("PR Body:", pr_body)

# Check for 'Proposed changes' section
proposed_changes_match = re.search(r"### Proposed changes\s*(.+?)\s*(### Checklist|$)", pr_body, re.DOTALL)
# Adjusted regex to only capture the text between "Proposed changes" and "Checklist"
proposed_changes_match = re.search(r"### Proposed changes\s+([\s\S]*?)\s*### Checklist", pr_body)
if proposed_changes_match:
proposed_changes_text = proposed_changes_match.group(1).strip()
print(f"Extracted 'Proposed changes' text: {proposed_changes_text}") # Debugging line
Expand Down

0 comments on commit fe2df78

Please sign in to comment.