mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 03:40:38 +08:00
clean
This commit is contained in:
@ -8,6 +8,7 @@ from pr_agent.log import get_logger
|
|||||||
# Compile the regex pattern once, outside the function
|
# Compile the regex pattern once, outside the function
|
||||||
GITHUB_TICKET_PATTERN = re.compile(r'(https://github[^/]+/[^/]+/[^/]+/issues/\d+)|(\b(\w+)/(\w+)#(\d+)\b)')
|
GITHUB_TICKET_PATTERN = re.compile(r'(https://github[^/]+/[^/]+/[^/]+/issues/\d+)|(\b(\w+)/(\w+)#(\d+)\b)')
|
||||||
|
|
||||||
|
|
||||||
def find_jira_tickets(text):
|
def find_jira_tickets(text):
|
||||||
# Regular expression patterns for JIRA tickets
|
# Regular expression patterns for JIRA tickets
|
||||||
patterns = [
|
patterns = [
|
||||||
|
Reference in New Issue
Block a user