@@ -294,37 +294,23 @@ def _sdk_core_release_notes(version: str, path: str) -> list[str]:
294294 f"Submodule { path !r} is not initialized; checkout with submodules"
295295 )
296296
297- log_args = [
298- "log" ,
299- "--format=%H%x00%h%x00%s" ,
300- "--reverse" ,
301- f"{ previous_commit } ..{ current_commit } " ,
302- ]
303297 try :
304- log_output = _git (log_args , cwd = submodule_path )
298+ notes = _sdk_core_changelog_entries (
299+ previous_commit ,
300+ current_commit ,
301+ submodule_path ,
302+ )
305303 except subprocess .CalledProcessError :
306304 _git (["fetch" , "--quiet" , "origin" , "main" ], cwd = submodule_path )
307- log_output = _git (log_args , cwd = submodule_path )
308- if not log_output :
305+ notes = _sdk_core_changelog_entries (
306+ previous_commit ,
307+ current_commit ,
308+ submodule_path ,
309+ )
310+ if not notes :
309311 return []
310312
311- lines = ["### SDK Core" , "" ]
312- changelog_entries = _sdk_core_changelog_entries (
313- previous_commit ,
314- current_commit ,
315- submodule_path ,
316- )
317- if changelog_entries :
318- lines .extend (["#### Changelog" , "" , * changelog_entries , "" ])
319- lines .extend (["#### Commits" , "" ])
320- for line in log_output .splitlines ():
321- full_hash , short_hash , subject = line .split ("\0 " , 2 )
322- subject = _link_sdk_core_prs (_clean_commit_subject (subject ))
323- lines .append (
324- f"- [`{ short_hash } `](https://github.com/temporalio/sdk-rust/commit/"
325- f"{ full_hash } ) { subject } "
326- )
327- return lines
313+ return ["### SDK Core" , "" , * notes ]
328314
329315
330316def changelog_notes (args : argparse .Namespace ) -> None :
0 commit comments