Skip to content

Commit 3d43cdd

Browse files
committed
build: add deprecated section to release notes
1 parent fdbbc8c commit 3d43cdd

File tree

1 file changed

+32
-15
lines changed

1 file changed

+32
-15
lines changed

.github/workflows/maven-central.yml

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -78,57 +78,74 @@ jobs:
7878
--search "milestone:\"$VERSION_NUM\" label:break-change" \
7979
--state all \
8080
--limit 100 \
81-
--json title,url \
82-
--jq '.[] | "- [\(.title)](\(.url))"' > breaking_issues.md
81+
--json title,number \
82+
--jq '.[] | "- \(.title) #\(.number)"' > breaking_issues.md
8383
84-
# 2. Fetch NEW features (requires the 'feature' label)
84+
# 2. Fetch NEW features (requires 'feature', excludes 'break-change')
8585
gh issue list \
8686
--repo ${{ github.repository }} \
8787
--search "milestone:\"$VERSION_NUM\" label:feature -label:break-change" \
8888
--state all \
8989
--limit 100 \
90-
--json title,url \
91-
--jq '.[] | "- [\(.title)](\(.url))"' > new_issues.md
90+
--json title,number \
91+
--jq '.[] | "- \(.title) #\(.number)"' > new_issues.md
9292
93-
# 3. Fetch OTHER changes (excludes 'feature', 'break-change', and 'dependencies')
93+
# 3. Fetch DEPRECATED changes (requires 'deprecated', excludes 'break-change')
9494
gh issue list \
9595
--repo ${{ github.repository }} \
96-
--search "milestone:\"$VERSION_NUM\" -label:feature -label:break-change -label:dependencies" \
96+
--search "milestone:\"$VERSION_NUM\" label:deprecated -label:break-change" \
9797
--state all \
9898
--limit 100 \
99-
--json title,url \
100-
--jq '.[] | "- [\(.title)](\(.url))"' > other_issues.md
99+
--json title,number \
100+
--jq '.[] | "- \(.title) #\(.number)"' > deprecated_issues.md
101101
102-
# 4. Initialize the changelog file
102+
# 4. Fetch OTHER changes (excludes 'feature', 'break-change', 'deprecated', and 'dependencies')
103+
gh issue list \
104+
--repo ${{ github.repository }} \
105+
--search "milestone:\"$VERSION_NUM\" -label:feature -label:break-change -label:deprecated -label:dependencies" \
106+
--state all \
107+
--limit 100 \
108+
--json title,number \
109+
--jq '.[] | "- \(.title) #\(.number)"' > other_issues.md
110+
111+
# 5. Initialize the changelog file
103112
> changelog.md
104113
105-
# 5. Conditionally add "Breaking Changes" if breaking_issues.md has content (-s)
114+
# 6. Conditionally add "Breaking Changes"
106115
if [ -s breaking_issues.md ]; then
107116
echo "## ⚠️ Breaking Changes" >> changelog.md
108117
echo "" >> changelog.md
109118
cat breaking_issues.md >> changelog.md
110119
echo "" >> changelog.md
111120
fi
112121
113-
# 6. Conditionally add "What's New" if new_issues.md has content
122+
# 7. Conditionally add "What's New"
114123
if [ -s new_issues.md ]; then
115124
echo "## 🚀 What's New" >> changelog.md
116125
echo "" >> changelog.md
117126
cat new_issues.md >> changelog.md
118127
echo "" >> changelog.md
119128
fi
120129
121-
# 7. Conditionally add "Other Changes" if other_issues.md has content
130+
# 8. Conditionally add "Other Changes"
122131
if [ -s other_issues.md ]; then
123132
echo "## 🛠️ Changes" >> changelog.md
124133
echo "" >> changelog.md
125134
cat other_issues.md >> changelog.md
126135
echo "" >> changelog.md
127136
fi
128137
129-
# 8. Build the rest of the changelog (Links & Sponsors)
138+
# 9. Conditionally add "Deprecated"
139+
if [ -s deprecated_issues.md ]; then
140+
echo "## 🗑️ Deprecated" >> changelog.md
141+
echo "" >> changelog.md
142+
cat deprecated_issues.md >> changelog.md
143+
echo "" >> changelog.md
144+
fi
145+
146+
# 10. Build the rest of the changelog (Links & Sponsors)
130147
cat << EOF >> changelog.md
131-
### 🔗 Links & Resources
148+
## 🔗 Links & Resources
132149
- [$CURRENT_TAG](https://github.com/jooby-project/jooby/tree/$CURRENT_TAG)
133150
- [Closed Issues](https://github.com/jooby-project/jooby/milestone/$MILESTONE_ID?closed=1)
134151
- [Changelog](https://github.com/jooby-project/jooby/compare/$PREV_TAG...$CURRENT_TAG)

0 commit comments

Comments
 (0)