Skip to content

✨ improve commit parsing and update workflow outputs#7

Merged
AliRezaTaleghani merged 1 commit into
mainfrom
improveChangeCheck
Nov 18, 2025
Merged

✨ improve commit parsing and update workflow outputs#7
AliRezaTaleghani merged 1 commit into
mainfrom
improveChangeCheck

Conversation

@AliRezaTaleghani

Copy link
Copy Markdown
Contributor
  • Use ASCII record separator in git log formatting to reliably split
    commits even when commit bodies contain blank lines. Format each
    record as \1e\x1e<body and reconstruct commit entries by
    pairing subject and body fields. This prevents incorrect splitting
    when bodies include empty lines and preserves commit.

  • Replace direct exec commands with a singleCmd that uses the
    new pretty=format string, handling both the case with and without a
    previous tag. Trim and reassemble subject/body into the original
    commit string layout.

  • Return early with an empty slice when git log outputs nothing.

  • Update GitHub Actions release workflow to stop using the deprecated
    ::set-output command. Write outputs to the GITHUB_OUTPUT file instead
    for should_release and new_version, ensuring compatibility with the
    current Actions runner.

- Use ASCII record separator in git log formatting to reliably split
  commits even when commit bodies contain blank lines. Format each
  record as \1e<subject>\x1e<body and reconstruct commit entries by
  pairing subject and body fields. This prevents incorrect splitting
  when bodies include empty lines and preserves commit.

- Replace direct exec commands with a singleCmd that uses the
  new pretty=format string, handling both the case with and without a
  previous tag. Trim and reassemble subject/body into the original
  commit string layout.

- Return early with an empty slice when git log outputs nothing.

- Update GitHub Actions release workflow to stop using the deprecated
  ::set-output command. Write outputs to the GITHUB_OUTPUT file instead
  for should_release and new_version, ensuring compatibility with the
  current Actions runner.
@AliRezaTaleghani AliRezaTaleghani merged commit a5ea161 into main Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant