Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ci/check-pr-issue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ if repo.lower() != "nvidia/nvcf":
sys.exit(1)

body = os.environ.get("PR_BODY", "")
# GitHub stores PR bodies with CRLF line endings (web UI and bot edits), so
# normalize to LF before matching; the ## Issues heading regex expects a bare
# newline and would otherwise fail to find the section on a CRLF body.
body = body.replace("\r\n", "\n").replace("\r", "\n")
visible = re.sub(r"<!--.*?(?:-->|$)", "", body, flags=re.S)

section_match = re.search(
Expand Down
Loading