Skip to content

Commit c39251d

Browse files
450 workflow to automate weekly discussions from issues (#474)
1 parent f70ffbf commit c39251d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/weekly-issues-to-discussions.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ jobs:
150150
| {
151151
title: .content.title,
152152
url: (.content.url // ""),
153+
number: (.content.number // 0),
153154
repo: (.content.repository.name // "No Repo"),
154155
project: (.fieldValues.nodes[] | select(.field.id == $PROJECT_FIELD_ID) | .name // "No Project"),
155156
status: (.fieldValues.nodes[] | select(.field.id == $STATUS_FIELD_ID) | .name // "No Status")
@@ -168,7 +169,7 @@ jobs:
168169
"### " + (.[0].status) + "\n" +
169170
(map(
170171
"- [" + .repo + "] " + .title +
171-
(if .url != "" then " (" + .url + ")" else "" end)
172+
(if .url != "" and .number != 0 then " [#" + (.number | tostring) + "](" + .url + ")" else "" end)
172173
) | join("\n"))
173174
)
174175
| join("\n\n")
@@ -211,6 +212,6 @@ jobs:
211212
}
212213
}' \
213214
-f repoId="$REPO_ID" \
214-
-f title="Weekly issues report ($(date +%Y-%m-%d))" \
215+
-f title="CEDILLE Meeting - H25 ($(LC_TIME=fr_FR.UTF-8 date '+%d %B %Y'))" \
215216
-f body="$body" \
216217
-f category="$CATEGORY_ID"

0 commit comments

Comments
 (0)