github.com/wtfutil/wtf@v0.43.0/modules/travisci/travis.go (about) 1 package travisci 2 3 type Builds struct { 4 Builds []Build `json:"builds"` 5 } 6 7 type Build struct { 8 ID int `json:"id"` 9 CreatedBy Owner `json:"created_by"` 10 Branch Branch `json:"branch"` 11 Number string `json:"number"` 12 Repository Repository `json:"repository"` 13 Commit Commit `json:"commit"` 14 State string `json:"state"` 15 } 16 17 type Owner struct { 18 Login string `json:"login"` 19 } 20 21 type Branch struct { 22 Name string `json:"name"` 23 } 24 25 type Repository struct { 26 Name string `json:"name"` 27 Slug string `json:"slug"` 28 } 29 30 type Commit struct { 31 Message string `json:"message"` 32 }