mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-06 13:07:47 +00:00
Added python script to parse changelog
This commit is contained in:
parent
1e413d034f
commit
29d3a0f1dd
2
.github/workflows/changelog.py
vendored
2
.github/workflows/changelog.py
vendored
@ -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):
|
||||
|
3
.github/workflows/create_nightly_release.yml
vendored
3
.github/workflows/create_nightly_release.yml
vendored
@ -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'}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user