File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2121 echo "${COMMITS_JSON:-[]}" > commits.json
2222 echo "${HEAD_JSON:-null}" > head.json
2323
24- # Combine commits + head_commit , de-dup by id , sort by timestamp
24+ # Combine commits + head , de-dup, sort by timestamp
2525 jq -cs '
2626 (.[0] // []) as $c |
2727 (.[1] // null) as $h |
@@ -39,15 +39,14 @@ jobs:
3939 login="$(jq -r '.author.username // empty' <<< "$c")"
4040 [ -z "$login" ] && login="$ACTOR_FALLBACK"
4141
42- # Fallback-safe time ; Discord timestamp must be UTC ISO
42+ # Ensure valid timestamp ; Discord uses this to render "Today at HH:MM"
4343 if [ -z "$ts" ] || ! date -d "$ts" >/dev/null 2>&1; then ts="$(date -Iseconds)"; fi
4444 iso_utc="$(date -u -d "$ts" +"%Y-%m-%dT%H:%M:%SZ")"
45- time_str="$(date -d "$ts" +"%-H:%M")"
4645
4746 jq -n \
4847 --arg login "$login" \
4948 --arg msg "$msg" \
50- --arg foot "$repo_short - $BRANCH • $time_str " \
49+ --arg foot "$repo_short - $BRANCH" \
5150 --arg iso "$iso_utc" \
5251 '{
5352 username: "GitHub",
You can’t perform that action at this time.
0 commit comments