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
51ec4db1
Commit
51ec4db1
authored
Feb 13, 2022
by
Francesco Witz
Browse files
Merge branch 'fix' into 'main'
Minor fixes See merge request
!9
parents
22a7b412
83d80654
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
51ec4db1
...
...
@@ -2,11 +2,11 @@
All changes made will be listed in this file.
## [0.1.0]
03 March 202
1
## [0.1.0]
- 2021-03-0
1
### Added
*
Setup script
## [0.0.0]
02 March 2021
## [0.0.0]
- 2021-03-02
Project Created
\ No newline at end of file
chlog.py
View file @
51ec4db1
...
...
@@ -216,7 +216,10 @@ def check_formating(project_path: str, before_gen: bool):
os
.
chdir
(
project_path
)
with
open
(
'chlog.json'
,
'r'
)
as
file
:
chlog
=
json
.
load
(
file
)
version
:
str
=
chlog
[
'version'
]
if
before_gen
:
version
:
str
=
chlog
[
'last'
]
else
:
version
:
str
=
chlog
[
'version'
]
commits
:
list
[
list
[
str
]]
=
get_raw_commits
(
version
)
format_pattern
=
re
.
compile
(
"[a-z]+:(\s|\S)(?:[a-z]+(\s|\S))+"
)
...
...
file_generator.py
View file @
51ec4db1
...
...
@@ -16,7 +16,7 @@ class File():
with
open
(
self
.
__path
,
'r'
)
as
file
:
lines
:
list
[
str
]
=
file
.
readlines
()
# Creating regex to find section title
version_pattern
=
re
.
compile
(
"[0-9]+
.
[0-9]+
.
[0-9]+"
)
version_pattern
=
re
.
compile
(
"
## \[[0-9].[0-9].[0-9]\] -
[0-9]+
-
[0-9]+
-
[0-9]+"
)
# Checking the lines one by one
for
l
in
lines
:
# If we find a section title, return line index
...
...
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