Skip to content

Commit 24279cc

Browse files
author
Dean Karn
authored
Merge pull request #46 from xackery/v5
Added runner to gitlab
2 parents 3fda9e7 + 4708dcb commit 24279cc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

gitlab/payload.go

+9-1
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,18 @@ type Build struct {
177177
When string `json:"when"`
178178
Manual bool `json:"manual"`
179179
User User `json:"user"`
180-
Runner string `json:"runner"`
180+
Runner Runner `json:"runner"`
181181
ArtifactsFile ArtifactsFile `json:"artifactsfile"`
182182
}
183183

184+
// Runner represents a runner agent
185+
type Runner struct {
186+
ID int64 `json:"id"`
187+
Description string `json:"description"`
188+
Active bool `json:"active"`
189+
IsShared bool `json:"is_shared"`
190+
}
191+
184192
// ArtifactsFile contains all of the GitLab artifact information
185193
type ArtifactsFile struct {
186194
Filename string `json:"filename"`

0 commit comments

Comments
 (0)