parses github deployment hooks for #1144 into build objects

This commit is contained in:
Brad Rydzewski 2015-10-26 17:29:29 -07:00
parent 10d305200d
commit 001c06bb2c
3 changed files with 35 additions and 3 deletions

View file

@ -29,7 +29,39 @@ type pushHook struct {
Sender struct {
Login string `json:"login"`
Avatar string `json:"avatar_url"`
}
} `json:"sender"`
Repo struct {
Owner struct {
Login string `json:"login"`
Name string `json:"name"`
} `json:"owner"`
Name string `json:"name"`
FullName string `json:"full_name"`
Language string `json:"language"`
Private bool `json:"private"`
HTMLURL string `json:"html_url"`
CloneURL string `json:"clone_url"`
DefaultBranch string `json:"default_branch"`
} `json:"repository"`
}
type deployHook struct {
Deployment struct {
ID int64 `json:"id"`
Sha string `json:"sha"`
Ref string `json:"ref"`
Task string `json:"task"`
Env string `json:"environment"`
Url string `json:"url"`
Desc string `json:"description"`
} `json:"deployment"`
Sender struct {
Login string `json:"login"`
Avatar string `json:"avatar_url"`
} `json:"sender"`
Repo struct {
Owner struct {

View file

@ -10,7 +10,7 @@
border-radius: 0px;
border-top: 1px solid #eceeef;
text-decoration: none;
color: 2b303b;
color: #2b303b;
.card-header
background: #FFF;
border: none;

View file

@ -88,7 +88,7 @@ input[type=range]:focus::-ms-fill-upper { background: #367ebd; }
.timeline { padding-left: 50px; position: relative; margin-top: 10px; margin-bottom: 40px; }
.timeline .card { display: flex; border: none; border-radius: 0px; border-top: 1px solid #eceeef; text-decoration: none; color: 2b303b; }
.timeline .card { display: flex; border: none; border-radius: 0px; border-top: 1px solid #eceeef; text-decoration: none; color: #2b303b; }
.timeline .card .card-header { background: #FFF; border: none; padding: 0px; width: 50px; min-width: 50px; max-width: 50px; padding-top: 30px; }