Skip to content

Commit 7dad134

Browse files
committed
build: release: re-order component updates
1 parent f053c9c commit 7dad134

1 file changed

Lines changed: 20 additions & 17 deletions

File tree

.github/workflows/maven-central.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ jobs:
109109
--json title,number \
110110
--jq '.[] | "- \(.title) #\(.number)"' > other_issues.md
111111
112-
# 4.5 Fetch Component Summary (Group, Count, and Link Labels)
113-
# We grab labels and issue numbers, filter structural labels, group them,
114-
# count them, join the issue numbers, and output a Markdown table.
112+
# 5. Fetch Component Summary (Group, Count, and Link Labels)
115113
gh issue list \
116114
--repo ${{ github.repository }} \
117115
--search "milestone:\"$VERSION_NUM\"" \
@@ -136,50 +134,55 @@ jobs:
136134
end
137135
' > label_summary.md
138136
139-
# 5. Initialize the changelog file
137+
# 6. Initialize the changelog file
140138
> changelog.md
141139
142-
# 6. Conditionally add "Breaking Changes"
140+
# 7. Conditionally add "Breaking Changes"
143141
if [ -s breaking_issues.md ]; then
144142
echo "## ⚠️ Breaking Changes" >> changelog.md
145143
echo "" >> changelog.md
146144
cat breaking_issues.md >> changelog.md
147145
echo "" >> changelog.md
148146
fi
149147
150-
# 7. Conditionally add "What's New"
148+
# 8. Conditionally add "What's New"
151149
if [ -s new_issues.md ]; then
152150
echo "## 🚀 What's New" >> changelog.md
153151
echo "" >> changelog.md
154152
cat new_issues.md >> changelog.md
155153
echo "" >> changelog.md
156154
fi
157155
158-
# 7.5 Conditionally add "Component Summary" Table
159-
if [ -s label_summary.md ]; then
160-
echo "## 📊 Component Updates" >> changelog.md
161-
echo "" >> changelog.md
162-
cat label_summary.md >> changelog.md
163-
echo "" >> changelog.md
164-
fi
165-
166-
# 8. Conditionally add "Other Changes"
156+
# 9. Conditionally add "Other Changes"
167157
if [ -s other_issues.md ]; then
168158
echo "## 🛠️ Changes" >> changelog.md
169159
echo "" >> changelog.md
170160
cat other_issues.md >> changelog.md
171161
echo "" >> changelog.md
172162
fi
173163
174-
# 9. Conditionally add "Deprecated"
164+
# 10. Conditionally add "Deprecated"
175165
if [ -s deprecated_issues.md ]; then
176166
echo "## 🗑️ Deprecated" >> changelog.md
177167
echo "" >> changelog.md
178168
cat deprecated_issues.md >> changelog.md
179169
echo "" >> changelog.md
180170
fi
181171
182-
# 10. Build the rest of the changelog (Links & Sponsors)
172+
# 11. Conditionally add "Component Summary" Table inside a collapsible section
173+
if [ -s label_summary.md ]; then
174+
echo "## 📊 Component Updates" >> changelog.md
175+
echo "" >> changelog.md
176+
echo "<details>" >> changelog.md
177+
echo "<summary><strong>Click to expand component details</strong></summary>" >> changelog.md
178+
echo "" >> changelog.md
179+
cat label_summary.md >> changelog.md
180+
echo "" >> changelog.md
181+
echo "</details>" >> changelog.md
182+
echo "" >> changelog.md
183+
fi
184+
185+
# 12. Build the rest of the changelog (Links & Sponsors)
183186
cat << EOF >> changelog.md
184187
## 🔗 Links & Resources
185188
- [$CURRENT_TAG](https://github.com/jooby-project/jooby/tree/$CURRENT_TAG)

0 commit comments

Comments
 (0)