1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-30 04:23:07 +03:00

Invoke changelog_head from outside the pushd

so we know the relative path is right
This commit is contained in:
David Baker
2016-12-09 19:19:40 +00:00
parent ebda89d1ae
commit 67e75fb7af
2 changed files with 5 additions and 3 deletions

View File

@ -1,13 +1,14 @@
#!/usr/bin/env python
"""
Outputs the body of the first entry of changelog file CHANGELOG.md
Outputs the body of the first entry of changelog file on stdin
"""
import re
import sys
found_first_header = False
for line in open("CHANGELOG.md"):
for line in sys.stdin:
line = line.strip()
if re.match(r"^Changes in \[.*\]", line):
if found_first_header: