Skip to content

Commit f514f2a

Browse files
authored
Merge pull request #37 from sleclercq/feature-project-sharedrunners
feat(project) expose shared_runners_enabled property
2 parents b519866 + 4e4ce3d commit f514f2a

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

examples/projects/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ func main() {
113113
fmt.Printf(format, "wall enabled", strconv.FormatBool(project.WallEnabled))
114114
fmt.Printf(format, "wiki enabled", strconv.FormatBool(project.WikiEnabled))
115115
fmt.Printf(format, "created at", project.CreatedAtRaw)
116+
fmt.Printf(format, "shared runners enabled", strconv.FormatBool(project.SharedRunners))
116117
//fmt.Printf(format, "namespace", project.Namespace)
117118

118119
case "branches":

projects.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ type Project struct {
5555
SshRepoUrl string `json:"ssh_url_to_repo"`
5656
HttpRepoUrl string `json:"http_url_to_repo"`
5757
WebUrl string `json:"web_url"`
58+
SharedRunners bool `json:"shared_runners_enabled"`
5859
}
5960

6061
func projects(u string, g *Gitlab) ([]*Project, error) {

stubs/projects/index.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"snippets_enabled": false,
2525
"created_at": "2013-09-30T13: 46: 02Z",
2626
"last_activity_at": "2013-09-30T13: 46: 02Z",
27+
"shared_runners_enabled": true,
2728
"namespace": {
2829
"created_at": "2013-09-30T13: 46: 02Z",
2930
"description": "",
@@ -59,6 +60,7 @@
5960
"snippets_enabled": false,
6061
"created_at": "2013-09-30T13:46:02Z",
6162
"last_activity_at": "2013-09-30T13:46:02Z",
63+
"shared_runners_enabled": false,
6264
"namespace": {
6365
"created_at": "2013-09-30T13:46:02Z",
6466
"description": "",

stubs/projects/show.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"snippets_enabled": false,
2424
"created_at": "2013-09-30T13: 46: 02Z",
2525
"last_activity_at": "2013-09-30T13: 46: 02Z",
26+
"shared_runners_enabled": true,
2627
"namespace": {
2728
"created_at": "2013-09-30T13: 46: 02Z",
2829
"description": "",

0 commit comments

Comments
 (0)