-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changelog helper tool updated #3459
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,8 @@ export GH_REPO=jamulussoftware/jamulus | |
|
||
PR_LIST_LIMIT=300 | ||
TRANSLATION_ENTRY_TEXT="GUI: Translations have been updated:" | ||
TRANSLATION_ENTRY_TEXT2="Translations updated from Hosted Weblate" | ||
BUNDLED_QT_UPDATE_TEXT="Build: Updated bundled Qt6" | ||
declare -A LANGS | ||
LANGS[de_DE]="German" | ||
LANGS[fr_FR]="French" | ||
|
@@ -112,32 +114,38 @@ group_entries() { | |
# Prepend a number to known categories in order to make their sorting position consistent: | ||
category_order=( | ||
"$TRANSLATION_ENTRY_TEXT" | ||
"GUI" | ||
"Accessibility" | ||
"Client" | ||
"Server" | ||
"Recorder" | ||
"Performance" | ||
"CLI" | ||
"Bug Fix" | ||
"Windows" | ||
"Installer" | ||
"Linux" | ||
"Mac" | ||
"Android" | ||
"iOS" | ||
"Translation" | ||
"Doc" | ||
"Website" | ||
"Github" | ||
"Build" | ||
"Autobuild" | ||
"Code" | ||
"Internal" | ||
"$TRANSLATION_ENTRY_TEXT2" | ||
"GUI:" | ||
"Accessibility:" | ||
"Client:" | ||
"Client/Server:" | ||
"Server:" | ||
"Recorder:" | ||
"Performance:" | ||
"CLI:" | ||
"Bug Fix:" | ||
"Windows:" | ||
"Installer:" | ||
"Linux:" | ||
"Mac:" | ||
"Android:" | ||
"iOS:" | ||
"Dependencies:" | ||
"Translation:" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should all the translations be together (i.e. up with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. There are some entries which are sorted by language. |
||
"Doc:" | ||
"Website:" | ||
"Github:" | ||
"$BUNDLED_QT_UPDATE_TEXT" | ||
"Build:" | ||
"Autobuild:" | ||
"Code:" | ||
"Internal:" | ||
) | ||
local index=0 | ||
for category in "${category_order[@]}"; do | ||
changelog=$(sed -re 's/^(- '"${category}"')/'"${index}"' \1/' <<< "${changelog}") | ||
# use | as delimiter, as category may contain / | ||
# also re-add stripped newline from last line, for correct sorting | ||
changelog=$(sed -re 's|^(- '"${category}"')|'"${index}"' \1|' <<< "${changelog}")$'\n' | ||
index=$((index + 1)) | ||
done | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a bunch of these defined in the bump dependencies workflow - it's probably worth covering all of them (separate groups). (It's
Build: Updated
+ thechangelog_name
value.)