Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Commit fb6196d

Browse files
authored
Merge pull request #1090 from sirlatrom/fix-1089
Add build_coverage_regex to Project struct
2 parents 560acc5 + 61ff69e commit fb6196d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

projects.go

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ type Project struct {
118118
CIDefaultGitDepth int `json:"ci_default_git_depth"`
119119
CustomAttributes []*CustomAttribute `json:"custom_attributes"`
120120
ComplianceFrameworks []string `json:"compliance_frameworks"`
121+
BuildCoverageRegex string `json:"build_coverage_regex"`
121122
}
122123

123124
// ContainerExpirationPolicy represents the container expiration policy.

projects_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ func TestGetProjectByID(t *testing.T) {
219219
"name_regex_keep": null,
220220
"next_run_at": "2020-01-07T21:42:58.658Z"
221221
},
222-
"packages_enabled": false
222+
"packages_enabled": false,
223+
"build_coverage_regex": "Total.*([0-9]{1,3})%"
223224
}`)
224225
})
225226

@@ -231,7 +232,8 @@ func TestGetProjectByID(t *testing.T) {
231232
Cadence: "7d",
232233
NextRunAt: &wantTimestamp,
233234
},
234-
PackagesEnabled: false,
235+
PackagesEnabled: false,
236+
BuildCoverageRegex: `Total.*([0-9]{1,3})%`,
235237
}
236238

237239
project, _, err := client.Projects.GetProject(1, nil)

0 commit comments

Comments
 (0)