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.
2 parents eaf443b + 2d4eb61 commit fa1e124Copy full SHA for fa1e124
checks/check_pr_description.py
@@ -6,7 +6,8 @@ def check_description(description):
6
Checks if the PR description contains a work item link.
7
Returns True if valid, False otherwise.
8
"""
9
- regex = r"(^|\s|\[)(https:\/\/app\.devrev\.ai\/devrev\/works\/)?(ISS|TKT|TASK)-\d+\b"
+ # More flexible regex that handles markdown formatting
10
+ regex = r"(?:^|[\s\[\(\-\*\>\.]|:\s)(https:\/\/app\.devrev\.ai\/devrev\/works\/)?(ISS|TKT|TASK)-\d+\b"
11
return bool(re.search(regex, description, re.IGNORECASE))
12
13
def check_description_cli(description):
0 commit comments