Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Francesco Witz
Changelog Generator
Commits
2d57f390
Commit
2d57f390
authored
Feb 13, 2022
by
Francesco Witz
Browse files
Merge branch 'fix' into 'main'
fix: regex pattern matching for formated commit scrapping See merge request
!7
parents
feb6d53a
8deffd3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
git_scrapper.py
View file @
2d57f390
...
...
@@ -43,7 +43,7 @@ def get_formatted_commits(version: str) -> list[Commit]:
if
not
'Merge'
in
line
:
elem
=
line
.
split
(
'/'
)
# Splitting element
format_pattern
=
re
.
compile
(
"[a-z]+:(\s|\S)(?:[a-z]+(\s|\S))+"
)
if
format_pattern
.
match
(
elem
):
if
format_pattern
.
match
(
elem
[
1
]
):
temp
=
elem
[
1
].
split
(
':'
)
# Splitting commit type and commit subject
if
len
(
temp
)
==
2
:
elem
[
1
]
=
temp
[
0
]
...
...
Write
Preview
Supports
Markdown
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