From d7c4e9f67b67782236a5f98516409fbb612427c3 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 27 Jun 2019 11:01:08 +0100 Subject: [PATCH] `forced` does not exist; data["forced"] instead --- modules/git_webhooks/github.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py index 6a7af631..534d2a14 100644 --- a/modules/git_webhooks/github.py +++ b/modules/git_webhooks/github.py @@ -187,8 +187,8 @@ class GitHub(object): range_url = self._short_url( COMMIT_RANGE_URL % (full_name, first_id, last_id)) - return self._format_push(branch, author, data["commits"], forced, - range_url) + return self._format_push(branch, author, data["commits"], + data["forced"], range_url) def _format_push(self, branch, author, commits, forced, range_url): outputs = []