-
-
-
-
-
- package structs
-
-
- type Identity struct {
- Name string `json:"name" binding:"MaxSize(100)"`
-
- Email string `json:"email" binding:"MaxSize(254)"`
- }
-
-
- type CommitMeta struct {
- URL string `json:"url"`
- SHA string `json:"sha"`
- }
-
-
- type CommitUser struct {
- Identity
- Date string `json:"date"`
- }
-
-
- type RepoCommit struct {
- URL string `json:"url"`
- Author *CommitUser `json:"author"`
- Committer *CommitUser `json:"committer"`
- Message string `json:"message"`
- Tree *CommitMeta `json:"tree"`
- }
-
-
- type Commit struct {
- *CommitMeta
- HTMLURL string `json:"html_url"`
- RepoCommit *RepoCommit `json:"commit"`
- Author *User `json:"author"`
- Committer *User `json:"committer"`
- Parents []*CommitMeta `json:"parents"`
- }
|