1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
wtf/travisci/travis.go
Anand Sudhir Prayaga 568276343c Make the travisci module interactive
* Add ability to select and open builds
* Add commit message (oneline style) to text displayed in the widget
* Add documentation on the new keyboard shortcuts
* Cleanup some duplicate code
2018-08-03 15:42:24 +02:00

33 lines
614 B
Go

package travisci
type Builds struct {
Builds []Build `json:"builds"`
}
type Build struct {
ID int `json:"id"`
CreatedBy Owner `json:"created_by"`
Branch Branch `json:"branch"`
Number string `json:"number"`
Repository Repository `json:"repository"`
Commit Commit `json:"commit"`
State string `json:"state"`
}
type Owner struct {
Login string `json:"login"`
}
type Branch struct {
Name string `json:"name"`
}
type Repository struct {
Name string `json:"name"`
Slug string `json:"slug"`
}
type Commit struct {
Message string `json:"message"`
}