From 8c329060766be66fdbe1d6a0ab2c9b59356fc8da Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Fri, 13 Dec 2013 08:39:49 +0800 Subject: [PATCH] Add welcome_message.py to patchset-created trigger This patch adds the welcome message script to the patchset-created trigger in gerrit. In theory it should post a lovely message to any committer making a patchset for the first time. However, it has not been tested, and review-dev is not available. So, this patch uses the --dry-run option of welcome_message.py so that it will hopefully post useful information to the log, but won't cause catastrophic failures. Change-Id: I4f04fcd2bd43f680f0d5032fc613194be8dd2586 --- .../openstack_project/templates/gerrit_patchset-created.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/openstack_project/templates/gerrit_patchset-created.erb b/modules/openstack_project/templates/gerrit_patchset-created.erb index 03ec96d834..1851e28356 100755 --- a/modules/openstack_project/templates/gerrit_patchset-created.erb +++ b/modules/openstack_project/templates/gerrit_patchset-created.erb @@ -9,3 +9,6 @@ timeout -k 2m 10m /usr/local/bin/trivial-rebase \ --whitespace \ --private-key-path=<%= ssh_host_key %> \ --role-user=<%= trivial_rebase_role_id %> "$@" +timeout -k 2m 10m /usr/local/bin/welcome-message patchset-created --dryrun \ + --private-key-path=<%= ssh_host_key %> \ + --role-user=<%= trivial_rebase_role_id %> "$@"