From 53de09d6ec7b5170ccfeca4f7a9d822c037ce7ec Mon Sep 17 00:00:00 2001 From: Jacob Wujciak-Jens Date: Wed, 11 Jan 2023 23:50:53 +0100 Subject: [PATCH 1/3] update pr template --- .github/pull_request_template.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index f136f8fd499..62878045451 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,3 @@ -# Which issue does this PR close? -Closes # -# Rationale for this change +### Rationale for this change -# What changes are included in this PR? +### What changes are included in this PR? -# Are these changes tested? +### Are these changes tested? -# Are there any user-facing changes? +### Are there any user-facing changes? ) from the pull request description. + body = re.sub(r"<--.*-->", "", self.body) # avoid github user name references by inserting a space after @ body = re.sub(r"@(\w+)", "@ \\1", self.body) commit_message_chunks.append(body) From 7ff903db50f7f770aff4af39e92cb854be573f5e Mon Sep 17 00:00:00 2001 From: Jacob Wujciak-Jens Date: Mon, 16 Jan 2023 01:40:16 +0100 Subject: [PATCH 3/3] fix regex --- dev/merge_arrow_pr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/merge_arrow_pr.py b/dev/merge_arrow_pr.py index c325ddd9d09..dbfa58df9ee 100755 --- a/dev/merge_arrow_pr.py +++ b/dev/merge_arrow_pr.py @@ -582,7 +582,7 @@ def extract_co_authors(commit): commit_message_chunks = [] if self.body is not None: # Remove comments (i.e. <-- comment -->) from the pull request description. - body = re.sub(r"<--.*-->", "", self.body) + body = re.sub(r"", "", self.body) # avoid github user name references by inserting a space after @ body = re.sub(r"@(\w+)", "@ \\1", self.body) commit_message_chunks.append(body)