You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We have a PR to raise (git-proxy) that gets rejected due to an empty commit message. However the commit message is NOT empty, it just doesn't end in a new line...
Describe the bug
We have a PR to raise (git-proxy) that gets rejected due to an empty commit message. However the commit message is NOT empty, it just doesn't end in a new line...
Log excerpt for a healthy commit:
Log excerpt for a commit that fails:
Note how the commitMessage does not end in a newline, where it does in the healthy commit(s). This causes formattedContent to be one element shorter.
I believe the message is then not retrieved due to this slice:
git-proxy/src/proxy/processors/push-action/parsePush.ts
Lines 102 to 104 in 38791bd
whose end is calculated based on the length of formatedContent. By changing it to:
this can be avoided.
Expected behavior
Commits that have messages should be parsed as having messages, even if they don't end in a newline
Additional context
I'll raise a PR to resolve this issue
The text was updated successfully, but these errors were encountered: