From 4e4ce3df99be7dfd39dd69945d81b8069408540e Mon Sep 17 00:00:00 2001 From: Stephane Leclercq Date: Tue, 14 Jun 2016 18:27:35 +0200 Subject: [PATCH] feat(project) expose shared_runners_enabled property --- examples/projects/main.go | 1 + projects.go | 1 + stubs/projects/index.json | 2 ++ stubs/projects/show.json | 1 + 4 files changed, 5 insertions(+) diff --git a/examples/projects/main.go b/examples/projects/main.go index 8efc554..782dd0a 100644 --- a/examples/projects/main.go +++ b/examples/projects/main.go @@ -113,6 +113,7 @@ func main() { fmt.Printf(format, "wall enabled", strconv.FormatBool(project.WallEnabled)) fmt.Printf(format, "wiki enabled", strconv.FormatBool(project.WikiEnabled)) fmt.Printf(format, "created at", project.CreatedAtRaw) + fmt.Printf(format, "shared runners enabled", strconv.FormatBool(project.SharedRunners)) //fmt.Printf(format, "namespace", project.Namespace) case "branches": diff --git a/projects.go b/projects.go index 9b69f40..053d294 100644 --- a/projects.go +++ b/projects.go @@ -55,6 +55,7 @@ type Project struct { SshRepoUrl string `json:"ssh_url_to_repo"` HttpRepoUrl string `json:"http_url_to_repo"` WebUrl string `json:"web_url"` + SharedRunners bool `json:"shared_runners_enabled"` } func projects(u string, g *Gitlab) ([]*Project, error) { diff --git a/stubs/projects/index.json b/stubs/projects/index.json index 6528d6c..d1660bf 100644 --- a/stubs/projects/index.json +++ b/stubs/projects/index.json @@ -24,6 +24,7 @@ "snippets_enabled": false, "created_at": "2013-09-30T13: 46: 02Z", "last_activity_at": "2013-09-30T13: 46: 02Z", + "shared_runners_enabled": true, "namespace": { "created_at": "2013-09-30T13: 46: 02Z", "description": "", @@ -59,6 +60,7 @@ "snippets_enabled": false, "created_at": "2013-09-30T13:46:02Z", "last_activity_at": "2013-09-30T13:46:02Z", + "shared_runners_enabled": false, "namespace": { "created_at": "2013-09-30T13:46:02Z", "description": "", diff --git a/stubs/projects/show.json b/stubs/projects/show.json index cabb359..7a87710 100644 --- a/stubs/projects/show.json +++ b/stubs/projects/show.json @@ -23,6 +23,7 @@ "snippets_enabled": false, "created_at": "2013-09-30T13: 46: 02Z", "last_activity_at": "2013-09-30T13: 46: 02Z", + "shared_runners_enabled": true, "namespace": { "created_at": "2013-09-30T13: 46: 02Z", "description": "",