parses github deployment hooks for #1144 into build objects
This commit is contained in:
parent
10d305200d
commit
001c06bb2c
3 changed files with 35 additions and 3 deletions
|
@ -29,7 +29,39 @@ type pushHook struct {
|
||||||
Sender struct {
|
Sender struct {
|
||||||
Login string `json:"login"`
|
Login string `json:"login"`
|
||||||
Avatar string `json:"avatar_url"`
|
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 {
|
Repo struct {
|
||||||
Owner struct {
|
Owner struct {
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
border-top: 1px solid #eceeef;
|
border-top: 1px solid #eceeef;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: 2b303b;
|
color: #2b303b;
|
||||||
.card-header
|
.card-header
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
border: none;
|
border: none;
|
||||||
|
|
|
@ -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 { 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; }
|
.timeline .card .card-header { background: #FFF; border: none; padding: 0px; width: 50px; min-width: 50px; max-width: 50px; padding-top: 30px; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue