Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 9da3bab

Browse files
committed
1 parent 8807a1d commit 9da3bab

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

gitea/hook.go

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,21 @@ type PayloadUser struct {
137137

138138
// PayloadCommit FIXME: consider use same format as API when commits API are added.
139139
type PayloadCommit struct {
140-
ID string `json:"id"`
141-
Message string `json:"message"`
142-
URL string `json:"url"`
143-
Author *PayloadUser `json:"author"`
144-
Committer *PayloadUser `json:"committer"`
145-
Timestamp time.Time `json:"timestamp"`
140+
ID string `json:"id"`
141+
Message string `json:"message"`
142+
URL string `json:"url"`
143+
Author *PayloadUser `json:"author"`
144+
Committer *PayloadUser `json:"committer"`
145+
Verification *PayloadCommitVerification `json:"verification"`
146+
Timestamp time.Time `json:"timestamp"`
147+
}
148+
149+
// PayloadCommitVerification represent the GPG verification part of a commit. FIXME: like PayloadCommit consider use same format as API when commits API are added.
150+
type PayloadCommitVerification struct {
151+
Verified bool `json:"verified"`
152+
Reason string `json:"reason"`
153+
Signature string `json:"signature"`
154+
Payload string `json:"payload"`
146155
}
147156

148157
var (

0 commit comments

Comments
 (0)