From d9394234b979f92a3572b7d0d509902662ff060c Mon Sep 17 00:00:00 2001 From: Harshit Bansal Date: Wed, 28 Nov 2018 04:26:25 +0530 Subject: [PATCH] Update SDK to include `head_commit` in `PushPayload`. (#131) --- gitea/hook.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gitea/hook.go b/gitea/hook.go index 80a5192..ee6e2b7 100644 --- a/gitea/hook.go +++ b/gitea/hook.go @@ -371,6 +371,7 @@ type PushPayload struct { After string `json:"after"` CompareURL string `json:"compare_url"` Commits []*PayloadCommit `json:"commits"` + HeadCommit *PayloadCommit `json:"head_commit"` Repo *Repository `json:"repository"` Pusher *User `json:"pusher"` Sender *User `json:"sender"`