Update Pipeline even with jobs

This commit is contained in:
Alan D. Cabrera
2019-05-19 22:46:55 -07:00
parent 2b63b487a9
commit a8ef7768a6
2 changed files with 31 additions and 9 deletions
+3 -3
View File
@@ -109,7 +109,7 @@ type PipelineEventPayload struct {
Project Project `json:"project"`
Commit Commit `json:"commit"`
ObjectAttributes ObjectAttributes `json:"object_attributes"`
Builds []Build `json:"builds"`
Jobs []Job `json:"jobs"`
}
// CommentEventPayload contains the information for GitLab's comment event
@@ -193,8 +193,8 @@ type Issue struct {
IID int64 `json:"iid"`
}
// Build contains all of the GitLab build information
type Build struct {
// Job contains all of the GitLab job information
type Job struct {
ID int64 `json:"id"`
Stage string `json:"stage"`
Name string `json:"name"`