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:
1 parent
6245815b09
commit
3e48cb0cb9
1 file changed
+3
-2
@@ -22,9 +22,10 @@ payload=$(jq -n --arg repo "$REPO" --argjson category "$category_id" --arg ext "
|
|||||||
--slurpfile ev "$EVENT_PATH" '
|
--slurpfile ev "$EVENT_PATH" '
|
||||||
($ev[0].release) as $r
|
($ev[0].release) as $r
|
||||||
| ($repo | split("/") | last) as $name
|
| ($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,
|
category: $category,
|
||||||
external_id: $ext,
|
external_id: $ext,
|
||||||
raw: (
|
raw: (
|
||||||
|
|||||||
Reference in new issue
Block a user