Fix github trigger when submitting a webhook without a head_commit
Fixes #2125
This commit is contained in:
parent
1346b7fb63
commit
69e2cfad70
3 changed files with 136 additions and 1 deletions
|
@ -443,5 +443,11 @@ class TestPrepareTrigger(unittest.TestCase):
|
|||
|
||||
self.assertSchema('github_webhook_deletedcommit', expected, gh_webhook, lookup_user=lookup_user)
|
||||
|
||||
def test_github_webhook_known_issue(self):
|
||||
def lookup_user(_):
|
||||
return None
|
||||
|
||||
self.assertSkipped('github_webhook_knownissue', gh_webhook, lookup_user=lookup_user)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
Reference in a new issue