diff options
author | Simo Fält <simo.falt@qt.io> | 2023-05-25 11:19:39 +0300 |
---|---|---|
committer | Simo Fält <simo.falt@qt.io> | 2023-05-25 11:19:39 +0300 |
commit | 40fdea15e6545292212ea6c4acc78c3b2975cbd8 (patch) | |
tree | a2209393036458904f52cc418c708a20abcc1fac /tools/create_changelog.py | |
parent | d8f02ce77a4143aa4e7e6c4f7892e6a943c46b3c (diff) | |
parent | 63d49d3651257452b9be3982cac573971995e230 (diff) |
Merge tag 'v5.15.6-lts' into tqtc/lts-5.15-opensourcev5.15.6-lts-lgpl
Qt For Python Release 5.15.6
Change-Id: I7a6874dfca79fbc46f5a6101e713b0c1dde9a640
Diffstat (limited to 'tools/create_changelog.py')
-rw-r--r-- | tools/create_changelog.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/create_changelog.py b/tools/create_changelog.py index 8f5ea7ad0..7fbff8bed 100644 --- a/tools/create_changelog.py +++ b/tools/create_changelog.py @@ -196,12 +196,13 @@ def extract_change_log(commit_message: List[str]) -> Tuple[str, List[str]]: result = [] component = 'pyside' within_changelog = False + task_nr = '' for line in commit_message: if within_changelog: if line: result.append(' ' + line.strip()) else: - break + within_changelog = False else: if line.startswith('[ChangeLog]'): log_line = line[11:] @@ -210,8 +211,16 @@ def extract_change_log(commit_message: List[str]) -> Tuple[str, List[str]]: if end > 0: component = log_line[1:end] log_line = log_line[end + 1:] - result.append(' * ' + log_line.strip()) + result.append(log_line.strip()) within_changelog = True + elif line.startswith("Fixes: ") or line.startswith("Task-number: "): + task_nr = line.split(":")[1].strip() + if result: + first_line = ' - ' + if task_nr: + first_line += "[{}] ".format(task_nr) + first_line += result[0] + result[0] = first_line return (component, result) |