Skip to content

Commit cc844fd

Browse files
authored
Improve release note layout: make it shorter with collapsable sections (netobserv#1146)
1 parent 24dfa40 commit cc844fd

File tree

2 files changed

+33
-7
lines changed

2 files changed

+33
-7
lines changed

Makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -493,12 +493,15 @@ test-workflow: ## Run some tests on this Makefile and the github workflow
493493
.PHONY: related-release-notes
494494
related-release-notes: ## Grab release notes for related components (to be inserted in operator's release note upstream, cf RELEASE.md)
495495
echo -e "## Related components\n\n" > /tmp/related.md
496-
echo -e "### eBPF Agent\n\n" >> /tmp/related.md
497-
curl -s https://api.github.com/repos/netobserv/netobserv-ebpf-agent/releases/tags/$(BPF_VERSION) | jq -r .body | xargs -0 printf "%b" | sed -r "s/##/####/" >> /tmp/related.md
498-
echo -e "### Flowlogs-Pipeline\n\n" >> /tmp/related.md
499-
curl -s https://api.github.com/repos/netobserv/flowlogs-pipeline/releases/tags/$(FLP_VERSION) | jq -r .body | xargs -0 printf "%b" | sed -r "s/##/####/" >> /tmp/related.md
500-
echo -e "### Console Plugin\n\n" >> /tmp/related.md
501-
curl -s https://api.github.com/repos/netobserv/network-observability-console-plugin/releases/tags/$(PLG_VERSION) | jq -r .body | xargs -0 printf "%b" | sed -r "s/##/####/" >> /tmp/related.md
496+
echo -e "<details><summary><b>eBPF Agent</b></summary>\n\n" >> /tmp/related.md
497+
curl -s https://api.github.com/repos/netobserv/netobserv-ebpf-agent/releases/tags/$(BPF_VERSION) | jq -r .body | xargs -0 printf "%b" | sed -r "s/##/###/" >> /tmp/related.md
498+
echo -e "</details>\n" >> /tmp/related.md
499+
echo -e "<details><summary><b>Flowlogs-Pipeline</b></summary>\n\n" >> /tmp/related.md
500+
curl -s https://api.github.com/repos/netobserv/flowlogs-pipeline/releases/tags/$(FLP_VERSION) | jq -r .body | xargs -0 printf "%b" | sed -r "s/##/###/" >> /tmp/related.md
501+
echo -e "</details>\n" >> /tmp/related.md
502+
echo -e "<details><summary><b>Console Plugin</b></summary>\n\n" >> /tmp/related.md
503+
curl -s https://api.github.com/repos/netobserv/network-observability-console-plugin/releases/tags/$(PLG_VERSION) | jq -r .body | xargs -0 printf "%b" | sed -r "s/##/###/" >> /tmp/related.md
504+
echo -e "</details>\n" >> /tmp/related.md
502505
wl-copy < /tmp/related.md
503506
cat /tmp/related.md
504507
echo -e "\nText has been copied to the clipboard.\n"

RELEASE.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ When the last release candidate is accepted and the final release tag is pushed
2525

2626
Click the "Auto-generate release note" button.
2727

28+
If you think the "Dependencies" section is too long, you can surround it in a `<details>` block, to make it collapsed. E.g:
29+
30+
```yaml
31+
<details>
32+
<summary><b>Dependencies</b></summary>
33+
34+
* Bump [...] from [...] by @dependabot in...
35+
* ...
36+
</details>
37+
```
38+
39+
2840
### Operator
2941

3042
Once all sub-components are released (or have a release candidate), we can proceed with the operator.
@@ -73,7 +85,18 @@ Grab related components release notes by running:
7385
make related-release-notes
7486
```
7587

76-
Then paste content following the auto-generated release note in GitHub.
88+
The script should fetch and copy the content in the clipboard. Paste it at the end of the auto-generated release note in GitHub.
89+
90+
If you think the "Dependencies" section is too long, you can surround it in a `<details>` block, to make it collapsed. E.g:
91+
92+
```yaml
93+
<details>
94+
<summary><b>Dependencies</b></summary>
95+
96+
* Bump github.com/netobserv/flowlogs-pipeline from [...] by @dependabot in...
97+
* ...
98+
</details>
99+
```
77100

78101
Check the "Create a discussion for this release" option, in category "Announcements".
79102

0 commit comments

Comments
 (0)