mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
* 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
33 lines
614 B
Go
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"`
|
|
}
|