1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2025-04-21 18:03:02 -04:00

tools: make-a-release: Changelog, not ChangeLog

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2025-02-12 00:28:03 +00:00
parent 2bbe0e64c9
commit cd4a25c995
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -99,13 +99,13 @@ for commit in our_commits:
elif line.startswith('Merge pull request #'):
related_issues.append(int(line.split()[3][1:]))
changelog = [i for i, line in enumerate(lines) if line.startswith('ChangeLog:')]
changelog = [i for i, line in enumerate(lines) if line.startswith('Changelog:')]
if len(changelog) > 1:
print('WARN: Multiple Changelog lines')
if not changelog:
continue
line = changelog[0] + 1
changelog = lines[changelog[0]].removeprefix('ChangeLog:')
changelog = lines[changelog[0]].removeprefix('Changelog:')
while line < len(lines) and lines[line].strip() != '':
changelog += ' ' + lines[line]
line += 1