Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Chabot
hg-autochangelog
Commits
4e683be04122
Commit
c6c685a3
authored
Mar 18, 2021
by
Simon Chabot
Browse files
feat: improve the PARSE_ISSUE regex to match more patterns
parent
cdb51dd0bacf
Changes
1
Hide whitespace changes
Inline
Side-by-side
hg_autochangelog/main.py
View file @
4e683be0
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment