Commit 492b5b34 authored by Zaq? Wiedmann's avatar Zaq? Wiedmann

(jobs) support `pipeline` in jobs response

Ref: https://docs.gitlab.com/ce/api/jobs.html#get-a-single-job
parent f9a0483f
...@@ -46,8 +46,14 @@ type Job struct { ...@@ -46,8 +46,14 @@ type Job struct {
FinishedAt *time.Time `json:"finished_at"` FinishedAt *time.Time `json:"finished_at"`
ID int `json:"id"` ID int `json:"id"`
Name string `json:"name"` Name string `json:"name"`
Ref string `json:"ref"` Pipeline struct {
Runner struct { ID int `json:"id"`
Ref string `json:"ref"`
Sha string `json:"sha"`
Status string `json:"status"`
} `json:"pipeline"`
Ref string `json:"ref"`
Runner struct {
ID int `json:"id"` ID int `json:"id"`
Description string `json:"description"` Description string `json:"description"`
Active bool `json:"active"` Active bool `json:"active"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment