We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be68283 commit 444a8fdCopy full SHA for 444a8fd
packages/slackBotFunction/app/utils/handler_utils.py
@@ -144,7 +144,7 @@ def strip_mentions(message_text: str) -> str:
144
return re.sub(r"<@[UW][A-Z0-9]+(\|[^>]+)?>", "", message_text or "").strip()
145
146
147
-def extract_pull_request_id(text: str) -> str:
+def extract_pull_request_id(text: str) -> Tuple[str, str]:
148
# Regex: '#pr' + optional space + number + space + rest of text
149
pattern = re.escape(constants.PULL_REQUEST_PREFIX) + r"\s*(\d+)\s+(.+)"
150
match = re.match(pattern, text)
0 commit comments