This is an automated email from the ASF dual-hosted git repository.

sereda pushed a commit to branch site
in repository https://gitbox.apache.org/repos/asf/calcite.git


The following commit(s) were added to refs/heads/site by this push:
     new d561dba  Site: Add commit message guidelines for contributors 
(Stamatis Zampetakis)
d561dba is described below

commit d561dba0e090aed361b416978944a5a46a410071
Author: Stamatis Zampetakis <[email protected]>
AuthorDate: Tue Jan 8 16:01:48 2019 +0100

    Site: Add commit message guidelines for contributors (Stamatis Zampetakis)
    
    Add guidelines for commit messages proposed by Julian Hyde in various 
discussions in the dev list.
---
 site/develop/index.md | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/site/develop/index.md b/site/develop/index.md
index 04f5ae3..2d863e3 100644
--- a/site/develop/index.md
+++ b/site/develop/index.md
@@ -83,6 +83,27 @@ If your change had multiple commits, use `git rebase -i 
master` to
 squash them into a single commit, and to bring your code up to date
 with the latest on the main line.
 
+In order to keep the commit history clean and uniform, you should 
+respect the following guidelines.
+ * Read the messages of previous commits, and follow their style.
+ * The first line of the commit message must be a concise and useful
+description of the change.
+ * The message is often, but not always, the same as the JIRA subject.
+If the JIRA subject is not clear, change it (perhaps move the original
+subject to the description of the JIRA case, if it clarifies).
+ * Start with a capital letter.
+ * Do not finish with a period.
+ * Use imperative mood ("Add a handler ...") rather than past tense
+("Added a handler ...") or present tense ("Adds a handler ...").
+ * If possible, describe the user-visible behavior that you changed
+("FooCommand now creates directory if it does not exist"), rather than
+the implementation ("Add handler for FileNotFound").
+ * If you are fixing a bug, it is sufficient to describe the bug
+ ("NullPointerException if user is unknown") and people will correctly
+ surmise that the purpose of your change is to fix the bug.
+ * If you are not a committer, add your name in parentheses at the end
+ of the message.
+
 Then push your commit(s) to GitHub, and create a pull request from
 your branch to the calcite master branch. Update the JIRA case
 to reference your pull request, and a committer will review your

Reply via email to