Skip to content

Conversation

apricote
Copy link
Owner

@apricote apricote commented Sep 8, 2024

GitLab generates commit messages of the pattern "scope: message\n" if no body is present. This throws up the conventional commits parser we use, and results in the error message "missing a blank line".

We now strings.TrimSpace() the commit message to avoid this problem.

Related to #4

GitLab generates commit messages of the pattern "scope: message\n" if no
body is present. This throws up the conventional commits parser we use,
and results in the error message "missing a blank line".

We now `strings.TrimSpace()` the commit message to avoid this problem.
@apricote apricote added the bug Something isn't working label Sep 8, 2024
@apricote apricote added this to the v1.0 milestone Sep 8, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 22.89%. Comparing base (ee5c7aa) to head (76e040a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #53   +/-   ##
=======================================
  Coverage   22.89%   22.89%           
=======================================
  Files          21       21           
  Lines        1293     1293           
=======================================
  Hits          296      296           
  Misses        979      979           
  Partials       18       18           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@apricote apricote merged commit 634eac3 into main Sep 8, 2024
5 checks passed
@apricote apricote deleted the parser-empty-line branch September 8, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants