Skip to content

Commit

Permalink
adding version to changelog gen
Browse files Browse the repository at this point in the history
  • Loading branch information
freyamade committed Nov 12, 2024
1 parent 73bee5e commit cd8407a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion changelog_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@

# Open the changelog file, split it on <script> tag, use the 0th element

with open('frontend/.env') as f:
version = f.read().replace('"', '').split('=')[1]

with open('frontend/src/components/modals/changelog.vue') as f:
template = f.read().split('<script>')[0]

soup = BeautifulSoup(template, features='html.parser')

lines = []
lines = [f'# {version}']
dividers = soup.select('div.divider')

for div in dividers:
Expand Down

0 comments on commit cd8407a

Please sign in to comment.