Skip to content

Commit

Permalink
Reformat release notes generation
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorPopelyaev committed Mar 14, 2024
1 parent 47861b4 commit 5885464
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions scripts/release/build-changelogs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions scripts/release/templates/audience.md.tera
Original file line number Diff line number Diff line change
@@ -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 -%}

Expand Down

0 comments on commit 5885464

Please sign in to comment.