summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn L. Villalovos <john.l.villalovos@intel.com>2017-01-06 09:07:42 -0800
committerJohn L. Villalovos <john.l.villalovos@intel.com>2017-01-09 21:50:20 -0800
commit033a83b870dcd2f31d557f514b31e60a073b4945 (patch)
tree3272c7f025ba903aa9429c0158725e3f69458fa7
parent91d908b807c94bc20498232afce63aa4125215fa (diff)
For patch submitted/merged, announce the branch0.3.0
When announcing that a patch has been submitted or merged, also announce the branch that the patch is against. Change-Id: I5b325951bdc1b0fca37d8579a14747a4da3b558e
Notes
Notes (review): Code-Review+1: Ian Cordasco <sigmavirus24@gmail.com> Code-Review+2: Ian Wienand <iwienand@redhat.com> Code-Review+2: Jeremy Stanley <fungi@yuggoth.org> Workflow+1: Jeremy Stanley <fungi@yuggoth.org> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Fri, 20 Jan 2017 00:46:24 +0000 Reviewed-on: https://review.openstack.org/417450 Project: openstack-infra/gerritbot Branch: refs/heads/master
-rwxr-xr-xgerritbot/bot.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gerritbot/bot.py b/gerritbot/bot.py
index 18f6fef..6db4462 100755
--- a/gerritbot/bot.py
+++ b/gerritbot/bot.py
@@ -183,9 +183,10 @@ class Gerrit(threading.Thread):
183 time.sleep(1) 183 time.sleep(1)
184 184
185 def patchset_created(self, channel, data): 185 def patchset_created(self, channel, data):
186 msg = '%s proposed %s: %s %s' % ( 186 msg = '%s proposed %s %s: %s %s' % (
187 data['patchSet']['uploader']['name'], 187 data['patchSet']['uploader']['name'],
188 data['change']['project'], 188 data['change']['project'],
189 data['change']['branch'],
189 data['change']['subject'], 190 data['change']['subject'],
190 data['change']['url']) 191 data['change']['url'])
191 self.log.info('Compiled Message %s: %s' % (channel, msg)) 192 self.log.info('Compiled Message %s: %s' % (channel, msg))
@@ -255,8 +256,9 @@ class Gerrit(threading.Thread):
255 self.ircbot.send(channel, msg) 256 self.ircbot.send(channel, msg)
256 257
257 def change_merged(self, channel, data): 258 def change_merged(self, channel, data):
258 msg = 'Merged %s: %s %s' % ( 259 msg = 'Merged %s %s: %s %s' % (
259 data['change']['project'], 260 data['change']['project'],
261 data['change']['branch'],
260 data['change']['subject'], 262 data['change']['subject'],
261 data['change']['url']) 263 data['change']['url'])
262 self.log.info('Compiled Message %s: %s' % (channel, msg)) 264 self.log.info('Compiled Message %s: %s' % (channel, msg))