From a1ac95f47e043c83848a232274166f1f6a5983b2 Mon Sep 17 00:00:00 2001 From: laurentsimon Date: Wed, 23 Mar 2022 22:51:17 +0000 Subject: [PATCH] updates --- cron/format/json_raw_results.go | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/cron/format/json_raw_results.go b/cron/format/json_raw_results.go index 96e24f7c0fc3..293c6b046606 100644 --- a/cron/format/json_raw_results.go +++ b/cron/format/json_raw_results.go @@ -48,16 +48,16 @@ type jsonTool struct { } type jsonBranchProtectionSettings struct { - RequiredApprovingReviewCount *int `json:"required-reviewer-count"` - AllowsDeletions *bool `json:"allows-deletions"` - AllowsForcePushes *bool `json:"allows-force-pushes"` - RequiresCodeOwnerReviews *bool `json:"requires-code-owner-review"` - RequiresLinearHistory *bool `json:"required-linear-history"` - DismissesStaleReviews *bool `json:"dismisses-stale-reviews"` - EnforcesAdmins *bool `json:"enforces-admin"` - RequiresStatusChecks *bool `json:"requires-status-checks"` - RequiresUpToDateBranchBeforeMerging *bool `json:"requires-updated-branches-to-merge"` - StatusCheckContexts []string `json:"status-checks-contexts"` + RequiredApprovingReviewCount *int `json:"requiredReviewerCount"` + AllowsDeletions *bool `json:"allowsDeletions"` + AllowsForcePushes *bool `json:"allowsForcePushes"` + RequiresCodeOwnerReviews *bool `json:"requiresCodeOwnerReview"` + RequiresLinearHistory *bool `json:"requiredLinearHistory"` + DismissesStaleReviews *bool `json:"dismissesStaleReviews"` + EnforcesAdmins *bool `json:"enforcesAdmin"` + RequiresStatusChecks *bool `json:"requiresStatusChecks"` + RequiresUpToDateBranchBeforeMerging *bool `json:"requiresUpdatedBranchesToMerge"` + StatusCheckContexts []string `json:"statusChecksContexts"` } type jsonBranchProtection struct { @@ -85,8 +85,8 @@ type jsonMergeRequest struct { type jsonDefaultBranchCommit struct { // ApprovedReviews *jsonApprovedReviews `json:"approved-reviews"` Committer jsonUser `json:"committer"` - MergeRequest *jsonMergeRequest `json:"merge-request"` - CommitMessage string `json:"commit-message"` + MergeRequest *jsonMergeRequest `json:"mergeRequest"` + CommitMessage string `json:"commitMessage"` SHA string `json:"sha"` // TODO: check runs, etc. @@ -100,19 +100,19 @@ type jsonDatabaseVulnerability struct { } type jsonRawResults struct { - DatabaseVulnerabilities []jsonDatabaseVulnerability `json:"database-vulnerabilities"` + DatabaseVulnerabilities []jsonDatabaseVulnerability `json:"databaseVulnerabilities"` // List of binaries found in the repo. Binaries []jsonFile `json:"binaries"` // List of security policy files found in the repo. // Note: we return one at most. - SecurityPolicies []jsonFile `json:"security-policies"` + SecurityPolicies []jsonFile `json:"securityPolicies"` // List of update tools. // Note: we return one at most. - DependencyUpdateTools []jsonTool `json:"dependency-update-tools"` + DependencyUpdateTools []jsonTool `json:"dependencyUpdateTools"` // Branch protection settings for development and release branches. - BranchProtections []jsonBranchProtection `json:"branch-protections"` + BranchProtections []jsonBranchProtection `json:"branchProtections"` // Commits. - DefaultBranchCommits []jsonDefaultBranchCommit `json:"default-branch-commits"` + DefaultBranchCommits []jsonDefaultBranchCommit `json:"defaultBranchCommits"` } //nolint:unparam