summaryrefslogtreecommitdiffstats
path: root/modules/structs/hook.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/structs/hook.go')
-rw-r--r--modules/structs/hook.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/structs/hook.go b/modules/structs/hook.go
index b722e32ca0..df5da6790f 100644
--- a/modules/structs/hook.go
+++ b/modules/structs/hook.go
@@ -352,6 +352,7 @@ type IssuePayload struct {
Issue *Issue `json:"issue"`
Repository *Repository `json:"repository"`
Sender *User `json:"sender"`
+ CommitID string `json:"commit_id"`
}
// JSONPayload encodes the IssuePayload to JSON, with an indentation of two spaces.
@@ -386,6 +387,7 @@ type PullRequestPayload struct {
PullRequest *PullRequest `json:"pull_request"`
Repository *Repository `json:"repository"`
Sender *User `json:"sender"`
+ CommitID string `json:"commit_id"`
Review *ReviewPayload `json:"review"`
}