Added python script to parse changelog

This commit is contained in:
jLynx 2022-04-04 09:00:41 +12:00
parent 1e413d034f
commit 29d3a0f1dd
2 changed files with 2 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import os
import re
import sys
raw_git = os.popen('git log next --since="5 days" --pretty=format:"- %h - {USERNAME}*+%al-%an*: %s"').read()
raw_git = os.popen('git log next --since="24 hours" --pretty=format:"- %h - {USERNAME}*+%al-%an*: %s"').read()
def compute_username(line):

View File

@ -55,8 +55,7 @@ jobs:
zip -r sdcard.zip sdcard
- name: Create changelog
run: |
# CHANGELOG=$(git log next --since="24 hours" --pretty=format:"- %h - @%an: %s") # Commented out as username are currently broken
CHANGELOG=$(git log next --since="24 hours" --pretty=format:"- %h - %s")
CHANGELOG=$(python3 .github/workflows/changelog.py)
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"