index : matrix-js-sdk

My fork of matrix-js-sdk

path: root/scripts
diff options
context:
space:
mode:
authorDavid Baker <[email protected]>2016-12-09 17:34:11 +0000
committerDavid Baker <[email protected]>2016-12-09 17:34:11 +0000
commitebda89d1aef95471bd5f2fbe920fd0decb2c477d (patch)
tree37833175882deaf1cabc651f3689c768e1d74346 /scripts
parent5ce5299651dcebab0698d45510dc934ef7980396 (diff)
downloadmatrix-js-sdk-ebda89d1aef95471bd5f2fbe920fd0decb2c477d.tar.gz
Add changelog_head.py
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/changelog_head.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/changelog_head.py b/scripts/changelog_head.py
new file mode 100755
index 00000000..0c2a6bb1
--- /dev/null
+++ b/scripts/changelog_head.py
@@ -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