Commit c6c685a3 authored by Simon Chabot's avatar Simon Chabot
Browse files

feat: improve the PARSE_ISSUE regex to match more patterns

parent cdb51dd0bacf
...@@ -58,7 +58,15 @@ class Change: ...@@ -58,7 +58,15 @@ class Change:
RE_PARSE_TITLE = re.compile(r"^(\[(?P<scope>.+?)\])? *:? *(?P<title>.*)$") RE_PARSE_TITLE = re.compile(r"^(\[(?P<scope>.+?)\])? *:? *(?P<title>.*)$")
RE_PARSE_ISSUE = re.compile(r"related *: *(?P<issue>.+)", re.IGNORECASE) RE_PARSE_ISSUE = re.compile(
r"\b((?:clos(?:e[sd]?|ing)|"
r"\bfix(?:e[sd]|ing)?|"
r"\bresolv(?:e[sd]?|ing)|"
r"\brelat(?:e[sd]?|ing)|"
r"\bimplement(?:s|ed|ing)?)(:?))"
r"(?P<issue>.+)",
re.IGNORECASE,
)
RE_PARSE_BREAKING_CHANGE = re.compile( RE_PARSE_BREAKING_CHANGE = re.compile(
r"BREAKING CHANGE *: *(?P<breaking_change>.+)", re.IGNORECASE r"BREAKING CHANGE *: *(?P<breaking_change>.+)", re.IGNORECASE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment