You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-07-31 15:24:23 +03:00
Add changelog_head.py
This commit is contained in:
17
scripts/changelog_head.py
Executable file
17
scripts/changelog_head.py
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
Outputs the body of the first entry of changelog file CHANGELOG.md
|
||||
"""
|
||||
|
||||
import re
|
||||
|
||||
found_first_header = False
|
||||
for line in open("CHANGELOG.md"):
|
||||
line = line.strip()
|
||||
if re.match(r"^Changes in \[.*\]", line):
|
||||
if found_first_header:
|
||||
break
|
||||
found_first_header = True
|
||||
elif not re.match(r"^=+$", line) and len(line) > 0:
|
||||
print line
|
Reference in New Issue
Block a user