2015-09-30 01:21:17 +00:00
|
|
|
package model
|
|
|
|
|
2016-03-31 06:24:47 +00:00
|
|
|
// swagger:model build
|
2015-06-23 03:45:08 +00:00
|
|
|
type Build struct {
|
2015-09-30 01:21:17 +00:00
|
|
|
ID int64 `json:"id" meddler:"build_id,pk"`
|
|
|
|
RepoID int64 `json:"-" meddler:"build_repo_id"`
|
|
|
|
Number int `json:"number" meddler:"build_number"`
|
|
|
|
Event string `json:"event" meddler:"build_event"`
|
|
|
|
Status string `json:"status" meddler:"build_status"`
|
2015-10-01 21:35:25 +00:00
|
|
|
Enqueued int64 `json:"enqueued_at" meddler:"build_enqueued"`
|
2015-09-30 01:21:17 +00:00
|
|
|
Created int64 `json:"created_at" meddler:"build_created"`
|
|
|
|
Started int64 `json:"started_at" meddler:"build_started"`
|
|
|
|
Finished int64 `json:"finished_at" meddler:"build_finished"`
|
2015-10-27 20:03:37 +00:00
|
|
|
Deploy string `json:"deploy_to" meddler:"build_deploy"`
|
2015-09-30 01:21:17 +00:00
|
|
|
Commit string `json:"commit" meddler:"build_commit"`
|
|
|
|
Branch string `json:"branch" meddler:"build_branch"`
|
|
|
|
Ref string `json:"ref" meddler:"build_ref"`
|
|
|
|
Refspec string `json:"refspec" meddler:"build_refspec"`
|
|
|
|
Remote string `json:"remote" meddler:"build_remote"`
|
|
|
|
Title string `json:"title" meddler:"build_title"`
|
|
|
|
Message string `json:"message" meddler:"build_message"`
|
2015-10-01 21:35:25 +00:00
|
|
|
Timestamp int64 `json:"timestamp" meddler:"build_timestamp"`
|
2015-09-30 01:21:17 +00:00
|
|
|
Author string `json:"author" meddler:"build_author"`
|
|
|
|
Avatar string `json:"author_avatar" meddler:"build_avatar"`
|
|
|
|
Email string `json:"author_email" meddler:"build_email"`
|
|
|
|
Link string `json:"link_url" meddler:"build_link"`
|
2016-05-11 01:48:02 +00:00
|
|
|
Signed bool `json:"signed" meddler:"build_signed"`
|
|
|
|
Verified bool `json:"verified" meddler:"build_verified"`
|
2015-09-30 01:21:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type BuildGroup struct {
|
|
|
|
Date string
|
|
|
|
Builds []*Build
|
|
|
|
}
|