
After extensive fixing from Jeremey and the Infrastructure team, welcome message now detects newbies correctly. The code has been run for a week in dry-run mode, and has been verified to produce no false positives. This patch removes the dry run option from the hook, to enable welcome message to post welcoming messages on reviews from first- time contributors. Change-Id: I5dd072d36480294eefc23aa6376ae0a686621b08
19 lines
833 B
Plaintext
Executable File
19 lines
833 B
Plaintext
Executable File
#!/bin/sh
|
|
|
|
# Use timeout to kill any process running longer than 10 minutes.
|
|
timeout -k 2m 10m /usr/local/bin/update-blueprint patchset-created "$@"
|
|
timeout -k 2m 10m /usr/local/bin/update-bug patchset-created "$@"
|
|
timeout -k 2m 10m /usr/local/bin/notify-impact patchset-created "$@" --impact SecurityImpact --dest-address 'openstack-security@lists.openstack.org'
|
|
<% if trivial_rebase_role_id -%>
|
|
timeout -k 2m 10m /usr/local/bin/trivial-rebase \
|
|
patchset-created \
|
|
--whitespace \
|
|
--private-key-path=<%= ssh_host_key %> \
|
|
--role-user=<%= trivial_rebase_role_id %> "$@"
|
|
<% end -%>
|
|
<% if $ssh_welcome_rsa_key_contents != "" -%>
|
|
timeout -k 2m 10m /usr/local/bin/welcome-message patchset-created \
|
|
--verbose welcome-message@review.openstack.org \
|
|
/home/gerrit2/review_site/etc/ssh_welcome_rsa_key "$@"
|
|
<% end -%>
|