[Backport] Reformat release notes generation (#3759)

This PR backports small reformatting of the release notes templates.
This commit is contained in:
Egor_P
2024-03-21 10:00:40 +01:00
committed by GitHub
parent 7b6b061e32
commit 75074952a8
2 changed files with 3 additions and 4 deletions
+1
View File
@@ -48,6 +48,7 @@ for audience in "${audiences[@]}"; do
echo "Processing audience: $audience ($audience_id)"
export TARGET_AUDIENCE=$audience
tera -t "${TEMPLATE_AUDIENCE}" --env --env-key env "${CONTEXT_JSON}" > "$OUTPUT/relnote_${audience_id}.md"
cat "$OUTPUT/relnote_${audience_id}.md" >> "$OUTPUT/relnote_combined.md"
done
# Show the files
+2 -4
View File
@@ -1,11 +1,9 @@
## Release {{ env.PRODUCT }} {{ env.VERSION }}
Changelog for `{{ env.TARGET_AUDIENCE }}`.
### Changelog for `{{ env.TARGET_AUDIENCE }}`
{% for file in prdoc -%}
#### PR #{{file.doc_filename.number}}: {{ file.content.title }}
{% for doc_item in file.content.doc %}
{%- if doc_item.audience == env.TARGET_AUDIENCE %}
#### [#{{file.doc_filename.number}}]: {{ file.content.title }}
{{ doc_item.description }}
{% endif -%}