mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-29 22:41:02 +00:00
feat: added author nicknames
This commit is contained in:
6
.github/workflows/beta.yml
vendored
6
.github/workflows/beta.yml
vendored
@@ -102,6 +102,7 @@ jobs:
|
|||||||
if [ ${#commit_messages} -gt $max_length ]; then
|
if [ ${#commit_messages} -gt $max_length ]; then
|
||||||
commit_messages="${commit_messages:0:$max_length}... (truncated)"
|
commit_messages="${commit_messages:0:$max_length}... (truncated)"
|
||||||
fi
|
fi
|
||||||
|
authors=$(echo "$COMMIT_LOG" | grep -oP '~\K[^\n]+' | sort -u | sed 's/^/◗ **/' | sed 's/$/**/' | paste -sd '\n' -)
|
||||||
discord_data=$(jq -nc \
|
discord_data=$(jq -nc \
|
||||||
--arg field_value "$commit_messages" \
|
--arg field_value "$commit_messages" \
|
||||||
--arg footer_text "Version $VERSION" \
|
--arg footer_text "Version $VERSION" \
|
||||||
@@ -118,6 +119,11 @@ jobs:
|
|||||||
"name": "Commits:",
|
"name": "Commits:",
|
||||||
"value": $field_value,
|
"value": $field_value,
|
||||||
"inline": true
|
"inline": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Developers:",
|
||||||
|
"value": $author_value,
|
||||||
|
"inline": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"footer": {
|
"footer": {
|
||||||
|
|||||||
Reference in New Issue
Block a user