|
| 1 | +package github |
| 2 | + |
| 3 | +import "time" |
| 4 | + |
| 5 | +type CommitAuthor struct { |
| 6 | + Date time.Time `json:"date,omitempty"` |
| 7 | + Name string `json:"name,omitempty"` |
| 8 | + Email string `json:"email,omitempty"` |
| 9 | +} |
| 10 | + |
| 11 | +type User struct { |
| 12 | + Login string `json:"login,omitempty"` |
| 13 | + Name string `json:"name,omitempty"` |
| 14 | + Company string `json:"company,omitempty"` |
| 15 | + Email string `json:"email,omitempty"` |
| 16 | +} |
| 17 | + |
| 18 | +type SignatureVerification struct { |
| 19 | + Verified bool `json:"verified,omitempty"` |
| 20 | + Reason string `json:"reason,omitempty"` |
| 21 | + Signature string `json:"signature,omitempty"` |
| 22 | + Payload string `json:"payload,omitempty"` |
| 23 | +} |
| 24 | + |
| 25 | +type Commit struct { |
| 26 | + SHA string `json:"sha,omitempty"` |
| 27 | + Author CommitAuthor `json:"author,omitempty"` |
| 28 | + Committer CommitAuthor `json:"committer,omitempty"` |
| 29 | + Message string `json:"message,omitempty"` |
| 30 | + Parents []Commit `json:"parents,omitempty"` |
| 31 | + Verification SignatureVerification `json:"verification,omitempty"` |
| 32 | +} |
| 33 | + |
| 34 | +type RepositoryCommit struct { |
| 35 | + SHA string `json:"sha,omitempty"` |
| 36 | + Commit Commit `json:"commit,omitempty"` |
| 37 | + Author User `json:"author,omitempty"` |
| 38 | + Committer User `json:"committer,omitempty"` |
| 39 | + Parents []Commit `json:"parents,omitempty"` |
| 40 | + HTMLURL string `json:"html_url,omitempty"` |
| 41 | + URL string `json:"url,omitempty"` |
| 42 | + CommentsURL string `json:"comments_url,omitempty"` |
| 43 | +} |
0 commit comments