Skip to content

chore: fix handling of multi-line COMMITS variable #662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brawncode
Copy link
Contributor

Please go through the following checklist

Rationale for this change

The COMMITS variable stores multiple lines, but it's passed into <<<, which can lead to incorrect handling of multi-line input. This could cause issues when processing commit messages.

What changes are included in this PR?

  • Replaced <<< "$COMMITS" with a while read loop using process substitution < <(...).
  • Ensures each commit message is processed correctly, avoiding potential line break issues.

Are these changes tested?

Yes, tested with different commit histories to confirm correct behavior. Let me know if further validation is needed! 🚀

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