Add 'push' and 'tag' github webhook events.

Change-Id: Ie7ea0f4e264beac530d8eeda13919342a9c9eb58
Co-Authored-By: Jan Hruban <jan.hruban@gooddata.com>
This commit is contained in:
Wayne
2015-06-11 17:14:13 -07:00
committed by Jesse Keating
parent 40f4004425
commit 1a78c61a48
7 changed files with 131 additions and 6 deletions

View File

@@ -34,9 +34,11 @@ class GithubTrigger(BaseTrigger):
for trigger in self._toList(trigger_config):
types = trigger.get('event', None)
actions = trigger.get('action')
refs = trigger.get('refs')
f = EventFilter(trigger=self,
types=self._toList(types),
actions=self._toList(actions))
actions=self._toList(actions),
refs=self._toList(refs))
efilters.append(f)
return efilters
@@ -51,8 +53,10 @@ def getSchema():
github_trigger = {
v.Required('event'):
toList(v.Any('pull_request')),
toList(v.Any('pull_request',
'push')),
'action': toList(str),
'ref': toList(str),
}
return github_trigger