opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

Commit message longer than 74 characters

Open Nianmi opened this issue 2 years ago • 4 comments
trafficstars

Description

My commit messages are often longer than 74 characters.

Suggested Solution

I have noticed that the prompt requests messages not exceed 74 characters. Would it be sensible to implement a check that, if a message is longer than 74 characters, prompts the chat to shorten it until it meets this character limit?

Alternatives

No response

Additional Context

No response

Nianmi avatar Nov 08 '23 20:11 Nianmi

Stale issue message

github-actions[bot] avatar Dec 18 '23 21:12 github-actions[bot]

reopening, will take a look at this

di-sukharev avatar Feb 28 '24 06:02 di-sukharev

@Nianmi do you want to send a PR with revised prompt? we should not rely on an LLM, we should just add a line break to the output and structure commit message programatically

@malpou @sebastienfi maybe you guys want to tackle this?

di-sukharev avatar Mar 03 '24 11:03 di-sukharev

I couldn't find an official standard, but GitKraken provides some guidelines. I don't think this can be achieved with just a line break.

To be honest, LLM development has been progressing at such a rapid pace. Since the introduction of Copilot X, this repo has become somewhat obsolete for me personally. So, please don't feel pressured to fix this on my account. However, I wish you all the best of success.

Nianmi avatar Mar 04 '24 19:03 Nianmi