Skip to content

Commit

Permalink
Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
saadmk11 committed Jul 15, 2022
1 parent 3dbd5eb commit 5abc9b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,5 @@ cython_debug/

# PyCharm
.idea/

try.py
6 changes: 4 additions & 2 deletions scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,9 @@ def parse_changelog(self, file_type: str, version: str, changes: list) -> str:

items_string = ""

for pull_request in new_changes:
pull_request_list = copy.deepcopy(new_changes)

for pull_request in pull_request_list:
# check if the pull request label matches with
# any label of the config
if any(
Expand All @@ -445,7 +447,7 @@ def parse_changelog(self, file_type: str, version: str, changes: list) -> str:
string_data += f"\n#### {config['title']}\n\n"
else:
string_data += (
f"\n{config['title']}\n" f"{'-' * len(config['title'])}\n\n"
f"\n{config['title']}\n {'-' * len(config['title'])}\n\n"
)
string_data += items_string

Expand Down

0 comments on commit 5abc9b2

Please sign in to comment.