-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Commit messages should be checked as part of the Pull Request #851
Comments
We've been iterating on org-wide docs. I think I want to thin out the ones in this repo and start pointing to the ones in https://github.com/opensearch-project/.github like in #853. Let's see what @CEHENKLE says. |
I propose the following to maintain a good code commit history hygiene:
To uphold this, it may require some vigilantism (maintainers/contributors giving feedback to other maintainers) for some time, but we should be progressing in right direction. |
For me, personally, I try my best to write a good commit message (pretty much following everything described in this blog: https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) and then force push my PRs to contain a single commit so that the default squash will take my commit and message verbatim. I don't love the idea of using the PR description in the commit message as I see them as two different things: The PR is a proposal. It's editable and more conversational (e.g. "I don't love the way I solved x here, looking for feedback on better ideas"), whereas the actual commit and its message is what I'm proposing to commit to the permanent and immutable record. |
Maintainers responsibility should be added right away I guess irrespective of what we decide with PR templates and repo settings: opensearch-project/.github#194 Also, I think that the idea of 1/ This way, less chances of the commit trail being pushed as commit messages, but, but, but, we would still need some maintainers (can't enforce this, it can only be voluntarily) to provide feedback on any violations to uphold the good commit hygiene. |
@sandeshkr419 I guess the thing I don't love about this is that every PR merge will require hand-editing the commit message, because the maintainer doing the merge will have to delete everything from the PR description that wasn't in the "Proposed commit message" section. With the current configuration, assuming the contributor force pushes to their PR branch to keep the PR to a single commit and writes a good commit message, then the maintainer doesn't have to do anything except click merge. |
…x servers (opensearch-project#851) Signed-off-by: Vacha Shah <[email protected]>
Is your feature request related to a problem? Please describe.
Many commits to main have been committed without any message or with a messy unreadable message. Prior to the fork, Elasticsearch's commit messages are normally helpful for understanding the reasons for a given commit. Recently I noticed a severe degradation in this respect, in the OpenSearch repo. For example, see commits #829, #712, #818 (there are many more across the project, in opensearch-dashboards and various plugin repositories as well).
Describe the solution you'd like
In
CONTRIBUTING.md
add the following:Additional context
Discussion in OpenSearch forum - https://discuss.opendistrocommunity.dev/t/missing-commit-messages-and-changelogs/
The text was updated successfully, but these errors were encountered: