Skip to content
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

Improve readability of long commit messages by automatically adding line breaks or punctuation #195

Open
1 task
ismi-abbas opened this issue Apr 10, 2023 · 3 comments
Labels
bug Something isn't working pending triage

Comments

@ismi-abbas
Copy link

Bug description

For long generated commit message that contain 2 or more sentences, it should automatically add new line or a dot for the end of a sentences.

◇  Changes analyzed
│
◆  Use this commit message?
◇  Use this commit message?

   Add Rust projects for guessing game and hello worldExplanation: This commit adds two new Rust projects, guessing game and hello world, along with their respective files and dependencies

│  Yes
│
└  ✔ Successfully committed!

aicommits version

v1.6.0

Environment

System:
    OS: macOS 13.3.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 98.70 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
Binaries:
    Node: 18.14.2 - ~/.nvm/versions/node/v18.14.2/bin/node
    Yarn: 3.4.1 - /opt/homebrew/bin/yarn
    npm: 9.5.0 - ~/.nvm/versions/node/v18.14.2/bin/npm
    Watchman: 2023.03.06.00 - /opt/homebrew/bin/watchman

Can you contribute a fix?

  • I’m interested in opening a pull request for this issue.
@ismi-abbas ismi-abbas added bug Something isn't working pending triage labels Apr 10, 2023
@rocktimsaikia
Copy link
Contributor

rocktimsaikia commented Apr 10, 2023

I think #194 addresses this in a way.

@ismi-abbas
Copy link
Author

Maybe can add 'fullstop' and a space after each sentences. Make it neater

@mefengl
Copy link

mefengl commented Apr 14, 2023

I think #194 addresses this in a way.

The length is limited, so a better solution would be to use git -m "title" -m "detail" instead.

The detail can be separated by line breaks and even presented in list format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage
Projects
None yet
Development

No branches or pull requests

3 participants