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

Comment when there are too many Similar Commit Messages #13

Open
julesdepoi opened this issue Oct 14, 2020 · 0 comments
Open

Comment when there are too many Similar Commit Messages #13

julesdepoi opened this issue Oct 14, 2020 · 0 comments

Comments

@julesdepoi
Copy link

Very similar Commit Messages in a MR may not always be ideal.

Note: We should consider if commit message analysis belongs in an MR specific bot? There does not seems to be another more appropriate event.

Research

Good use of similar commit messages

  • update: add unit tests to feature_branch_1
  • update: add unit tests to feature_branch_2
  • chore: remove commented-out code from dev
  • chore: rebase local branch from dev

Bad use of similar commit messages

  • remove files
  • remove tests
  • working code?
  • working test?

Notice: One is indicative of a sense of order and parallelism. The other shows a lazy programmer using the same type of commit messages for a variety of loosely related scenarios`.

A few approaches that might work

  1. Check whether any commit message contains any other commit message
  2. Calculate the string distance between the two closes strings
  3. Calculate the average pairwise string distance between every string.
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

No branches or pull requests

1 participant