From 4708dcb9f1ef24b608232366451c5ab45b0be872 Mon Sep 17 00:00:00 2001 From: Xackery Xtal Date: Fri, 19 Oct 2018 18:28:45 -0700 Subject: [PATCH] Added runner to gitlab --- gitlab/payload.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gitlab/payload.go b/gitlab/payload.go index 86eaebc..c4b9238 100644 --- a/gitlab/payload.go +++ b/gitlab/payload.go @@ -177,10 +177,18 @@ type Build struct { When string `json:"when"` Manual bool `json:"manual"` User User `json:"user"` - Runner string `json:"runner"` + Runner Runner `json:"runner"` ArtifactsFile ArtifactsFile `json:"artifactsfile"` } +// Runner represents a runner agent +type Runner struct { + ID int64 `json:"id"` + Description string `json:"description"` + Active bool `json:"active"` + IsShared bool `json:"is_shared"` +} + // ArtifactsFile contains all of the GitLab artifact information type ArtifactsFile struct { Filename string `json:"filename"`