File: changelog.md

package info (click to toggle)
python-inline-snapshot 0.23.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,116 kB
  • sloc: python: 6,888; makefile: 34; sh: 28
file content (21 lines) | stat: -rw-r--r-- 388 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21


``` python exec="1"
from pathlib import Path
from subprocess import run
import re

new_changes = list(Path.cwd().glob("changelog.d/*.md"))

if new_changes:
    print("# upcomming changes")

for file in new_changes:
    print(file.read_text())

full_changelog = Path("CHANGELOG.md").read_text()

full_changelog = re.sub("^#", "##", full_changelog, flags=re.M)

print(full_changelog)
```