Override commit message length validation to 72 chars

By default Gerrit's commit validation plugin is set to check commit
message for max length of 70 however Openstack documentation[1]
says max commit message length should be 72.  Configure Openstack's
gerrit to match documentation.

[1] https://wiki.openstack.org/wiki/GitCommitMessages#Summary_of_Git_commit_message_structure

depends-on: Id7aff7d6d7250da804c690fbe6ff5b81f408d113
Change-Id: I6571fe4e894c973a4b74857118e726b70e89e2a4
This commit is contained in:
Khai Do 2016-05-13 09:56:17 -07:00
parent a26987ca7f
commit 082c70205c
1 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,7 @@ class openstack_project::gerrit (
$download = {},
$receive_max_object_size_limit = '100 m',
$commentlinks = [],
$commitmessage_params = {},
) {
class { 'jeepyb::openstackwatch':
@ -177,6 +178,10 @@ class openstack_project::gerrit (
index_threads => $index_threads,
download => $download,
receive_max_object_size_limit => $receive_max_object_size_limit,
commitmessage_params =>
{
maxLineLength => '72',
},
}
mysql_backup::backup_remote { 'gerrit':