File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -296,16 +296,16 @@ def build_gh_release_notes(release_info: ReleaseInfo) -> str:
296296 doc .add_line (f"- A huge 'Thank you!' to all sponsors across { _polar } , { _open_collective } and { _github_sponsors } !" )
297297
298298 doc .add_line ("## What's changed" )
299+ if features := release_info .pull_requests .get ("feat" ):
300+ doc .add_line ("\n ### New features 🚀" )
301+ doc .add_pr_descriptions (features )
302+ if fixes := release_info .pull_requests .get ("fix" ):
303+ doc .add_line ("\n ### Bugfixes 🐛" )
304+ doc .add_pr_descriptions (fixes )
299305 if release_info .first_time_prs :
300306 doc .add_line ("\n ## New contributors 🎉" )
301307 for pr in release_info .first_time_prs :
302308 doc .add_line (f"* @{ pr .user .login } made their first contribution in { pr .url } " )
303- if fixes := release_info .pull_requests .get ("fix" ):
304- doc .add_line ("\n ### Bugfixes 🐛" )
305- doc .add_pr_descriptions (fixes )
306- if features := release_info .pull_requests .get ("feat" ):
307- doc .add_line ("\n New features 🚀" )
308- doc .add_pr_descriptions (features )
309309
310310 ignore_sections = {"fix" , "feat" , "ci" , "chore" }
311311
You can’t perform that action at this time.
0 commit comments