discourse-release: title topics by repo and tag, not release name

Release names differ between projects (some repeat the tag, some carry the
product name in capitals); '<repo> <tag> released' reads the same for all.
This commit is contained in:
jcoffey-dev committed 2026-09-26 17:56:51 -07:00
1 parent 6245815b09
commit 3e48cb0cb9
1 file changed
+3 -2
+3 -2
View File
@@ -22,9 +22,10 @@ payload=$(jq -n --arg repo "$REPO" --argjson category "$category_id" --arg ext "
--slurpfile ev "$EVENT_PATH" '
($ev[0].release) as $r
| ($repo | split("/") | last) as $name
| ($r.name // "" | if . == "" then $r.tag_name else . end) as $title
| {
title: "\($name) \($title) released",
# repo + tag, not the release name: names vary by project (some repeat
# the tag, some carry a product name in capitals), tags do not.
title: "\($name) \($r.tag_name) released",
category: $category,
external_id: $ext,
raw: (