Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Mar 23, 2022
1 parent 0cdfb8c commit a1ac95f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions cron/format/json_raw_results.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit a1ac95f

Please sign in to comment.