fix(release): include every curated changelog item
This commit is contained in:
@@ -261,15 +261,19 @@ content = open('$CHANGELOG_FILE').read()
|
|||||||
pattern = r'## .*?${VERSION}.*?\n(.*?)(?=\n## |\Z)'
|
pattern = r'## .*?${VERSION}.*?\n(.*?)(?=\n## |\Z)'
|
||||||
m = re.search(pattern, content, re.DOTALL)
|
m = re.search(pattern, content, re.DOTALL)
|
||||||
if m:
|
if m:
|
||||||
for line in m.group(1).strip().split('\n')[:10]:
|
for line in m.group(1).splitlines():
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if line:
|
if not line.startswith('- '):
|
||||||
print(line)
|
continue
|
||||||
|
text = line[2:].strip()
|
||||||
|
if text.lower().startswith('validation '):
|
||||||
|
continue
|
||||||
|
print(text)
|
||||||
" 2>/dev/null || echo "")
|
" 2>/dev/null || echo "")
|
||||||
if [ -n "$ENTRIES" ]; then
|
if [ -n "$ENTRIES" ]; then
|
||||||
CHANGELOG=$(echo "$ENTRIES" | python3 -c "
|
CHANGELOG=$(echo "$ENTRIES" | python3 -c "
|
||||||
import sys, json
|
import sys, json
|
||||||
lines = [l.strip().lstrip('- ') for l in sys.stdin if l.strip()]
|
lines = [l.strip() for l in sys.stdin if l.strip()]
|
||||||
print(json.dumps(lines))
|
print(json.dumps(lines))
|
||||||
")
|
")
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user