2023-04-06 18:10:42 +08:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
# This script can be used to reformat the release notes generated by
|
|
|
|
# GitHub releases into a format slightly more appropriate for our
|
|
|
|
# project (ie. we don't really need to mention the author of every PR)
|
|
|
|
#
|
|
|
|
# eg. in: * OpenTelemetry by @dbkr in https://github.com/vector-im/element-call/pull/961
|
|
|
|
# out: * OpenTelemetry (https://github.com/vector-im/element-call/pull/961)
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import re
|
|
|
|
|
|
|
|
for line in sys.stdin:
|
2023-04-07 00:59:48 +08:00
|
|
|
matches = re.match(r'^\* (.*) by (\S+) in (\S+)$', line.strip())
|
2023-04-06 18:10:42 +08:00
|
|
|
print("* %s (%s)" % (matches[1], matches[3]))
|