aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-27 11:01:08 +0100
committerGravatar jesopo2019-06-27 11:01:08 +0100
commitd7c4e9f67b67782236a5f98516409fbb612427c3 (patch)
tree3a7f143732ffb7dcd223b58ec4e25605d8ecea69
parentHTTP GET github PR commits url to get `syncronise` commit messages (diff)
signature
`forced` does not exist; data["forced"] instead
-rw-r--r--modules/git_webhooks/github.py4
1 files 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 = []