From 082c70205ccca4845d07294ed339e4059bd82fe8 Mon Sep 17 00:00:00 2001 From: Khai Do Date: Fri, 13 May 2016 09:56:17 -0700 Subject: [PATCH] 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 --- modules/openstack_project/manifests/gerrit.pp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/openstack_project/manifests/gerrit.pp b/modules/openstack_project/manifests/gerrit.pp index bf551226b2..b4a1e00160 100644 --- a/modules/openstack_project/manifests/gerrit.pp +++ b/modules/openstack_project/manifests/gerrit.pp @@ -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':