Skip to content

Commit

Permalink
Merge pull request #23 from shijl0925/create-pull-request/patch
Browse files Browse the repository at this point in the history
Changes by create-pull-request action
  • Loading branch information
shijl0925 authored Oct 22, 2024
2 parents 57ff967 + 7eb56c6 commit 54f82f0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
8 changes: 8 additions & 0 deletions sonarqube/issues_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Issues service
// Since 3.6
// Changelog:
//
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead.
// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead.
// 10.4: Add 'issueStatus' field to the response.
Expand All @@ -42,6 +43,7 @@ func (s *Issues) AddComment(ctx context.Context, r issues.AddCommentRequest) (*i
// Since 3.6
// Changelog:
//
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead.
// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead.
// 10.4: Add 'issueStatus' field to the response.
Expand Down Expand Up @@ -161,6 +163,7 @@ func (s *Issues) DeleteComment(ctx context.Context, r issues.DeleteCommentReques
// Since 3.6
// Changelog:
//
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 10.4: The transitions 'wontfix' and 'confirm' are deprecated. Please use 'accept' instead. The transition 'unconfirm' is deprecated too.
// 10.4: Add transition 'accept'.
// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead.
Expand Down Expand Up @@ -191,6 +194,7 @@ func (s *Issues) DoTransition(ctx context.Context, r issues.DoTransitionRequest)
// Since 3.6
// Changelog:
//
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead.
// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead.
// 10.4: Add 'issueStatus' field to the response.
Expand Down Expand Up @@ -249,6 +253,9 @@ func (s *Issues) Reindex(ctx context.Context, r issues.ReindexRequest) (*http.Re
// Since 3.6
// Changelog:
//
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'impactSeverities' of 'facets' have been added.
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 10.8: Parameter 'severities' now supports values: 'INFO','BLOCKER'.
// 10.7: Facet 'casa' has been added
// 10.7: Param 'casa' has been added
// 10.7: Facet 'stig-ASD_V5R3' has been added
Expand Down Expand Up @@ -386,6 +393,7 @@ func (s *Issues) SetSeverity(ctx context.Context, r issues.SetSeverityRequest) (
// Since 5.1
// Changelog:
//
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead.
// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead.
// 10.4: Add 'issueStatus' field to the response.
Expand Down
2 changes: 1 addition & 1 deletion sonarqube/measures/measures_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type ComponentTreeRequest struct {
Asc string `url:"asc,omitempty"` // Ascending sort
Branch string `url:"branch,omitempty"` // Since 6.6;Branch key. Not available in the community edition.
Component string `url:"component"` // Component key. The search is based on this component.
MetricKeys string `url:"metricKeys"` // Comma-separated list of metric keys. Types DISTRIB are not allowed. For type DATA only new_reliability_issues, new_security_issues, new_maintainability_issues, reliability_issues, maintainability_issues, security_issues metrics are supported
MetricKeys string `url:"metricKeys"` // Comma-separated list of metric keys. Types DISTRIB are not allowed. For type DATA only new_maintainability_issues, new_security_issues, new_reliability_issues, security_issues, maintainability_issues, reliability_issues metrics are supported
MetricPeriodSort string `url:"metricPeriodSort,omitempty"` // Since 5.5;Sort measures by leak period or not ?. The 's' parameter must contain the 'metricPeriod' value.
MetricSort string `url:"metricSort,omitempty"` // Metric key to sort by. The 's' parameter must contain the 'metric' or 'metricPeriod' value. It must be part of the 'metricKeys' parameter
MetricSortFilter string `url:"metricSortFilter,omitempty"` // Filter components. Sort must be on a metric. Possible values are: <ul><li>all: return all components</li><li>withMeasuresOnly: filter out components that do not have a measure on the sorted metric</li></ul>
Expand Down
4 changes: 2 additions & 2 deletions sonarqube/qualitygates/qualitygates_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type CreateResponse struct {
type CreateConditionRequest struct {
Error string `form:"error"` // Condition error threshold
GateName string `form:"gateName"` // Name of the quality gate
Metric string `form:"metric"` // Condition metric.<br/> Only metric of the following types are allowed:<ul><li>INT</li><li>MILLISEC</li><li>RATING</li><li>WORK_DUR</li><li>FLOAT</li><li>PERCENT</li><li>LEVEL</li></ul>Following metrics are forbidden:<ul><li>new_software_quality_maintainability_rating</li><li>new_security_hotspots</li><li>software_quality_security_rating</li><li>new_software_quality_security_rating</li><li>new_software_quality_reliability_rating</li><li>software_quality_security_remediation_effort</li><li>effort_to_reach_software_quality_maintainability_rating_a</li><li>new_software_quality_maintainability_remediation_effort</li><li>software_quality_maintainability_remediation_effort</li><li>new_software_quality_security_remediation_effort</li><li>software_quality_reliability_rating</li><li>software_quality_maintainability_debt_ratio</li><li>new_software_quality_reliability_remediation_effort</li><li>new_software_quality_maintainability_debt_ratio</li><li>software_quality_reliability_remediation_effort</li><li>security_hotspots</li><li>alert_status</li><li>software_quality_maintainability_rating</li></ul>
Metric string `form:"metric"` // Condition metric.<br/> Only metric of the following types are allowed:<ul><li>INT</li><li>MILLISEC</li><li>RATING</li><li>WORK_DUR</li><li>FLOAT</li><li>PERCENT</li><li>LEVEL</li></ul>Following metrics are forbidden:<ul><li>software_quality_maintainability_debt_ratio</li><li>software_quality_reliability_rating</li><li>new_software_quality_security_remediation_effort</li><li>software_quality_maintainability_remediation_effort</li><li>new_software_quality_maintainability_remediation_effort</li><li>effort_to_reach_software_quality_maintainability_rating_a</li><li>software_quality_security_remediation_effort</li><li>new_software_quality_reliability_rating</li><li>new_software_quality_security_rating</li><li>software_quality_security_rating</li><li>new_security_hotspots</li><li>new_software_quality_maintainability_rating</li><li>software_quality_maintainability_rating</li><li>alert_status</li><li>security_hotspots</li><li>software_quality_reliability_remediation_effort</li><li>new_software_quality_maintainability_debt_ratio</li><li>new_software_quality_reliability_remediation_effort</li></ul>
Op string `form:"op,omitempty"` // Condition operator:<br/><ul><li>LT = is lower than</li><li>GT = is greater than</li></ul>
}

Expand Down Expand Up @@ -281,6 +281,6 @@ type ShowResponse struct {
type UpdateConditionRequest struct {
Error string `form:"error"` // Condition error threshold
Id string `form:"id"` // Condition ID
Metric string `form:"metric"` // Condition metric.<br/> Only metric of the following types are allowed:<ul><li>INT</li><li>MILLISEC</li><li>RATING</li><li>WORK_DUR</li><li>FLOAT</li><li>PERCENT</li><li>LEVEL</li></ul>Following metrics are forbidden:<ul><li>new_software_quality_maintainability_rating</li><li>new_security_hotspots</li><li>software_quality_security_rating</li><li>new_software_quality_security_rating</li><li>new_software_quality_reliability_rating</li><li>software_quality_security_remediation_effort</li><li>effort_to_reach_software_quality_maintainability_rating_a</li><li>new_software_quality_maintainability_remediation_effort</li><li>software_quality_maintainability_remediation_effort</li><li>new_software_quality_security_remediation_effort</li><li>software_quality_reliability_rating</li><li>software_quality_maintainability_debt_ratio</li><li>new_software_quality_reliability_remediation_effort</li><li>new_software_quality_maintainability_debt_ratio</li><li>software_quality_reliability_remediation_effort</li><li>security_hotspots</li><li>alert_status</li><li>software_quality_maintainability_rating</li></ul>
Metric string `form:"metric"` // Condition metric.<br/> Only metric of the following types are allowed:<ul><li>INT</li><li>MILLISEC</li><li>RATING</li><li>WORK_DUR</li><li>FLOAT</li><li>PERCENT</li><li>LEVEL</li></ul>Following metrics are forbidden:<ul><li>software_quality_maintainability_debt_ratio</li><li>software_quality_reliability_rating</li><li>new_software_quality_security_remediation_effort</li><li>software_quality_maintainability_remediation_effort</li><li>new_software_quality_maintainability_remediation_effort</li><li>effort_to_reach_software_quality_maintainability_rating_a</li><li>software_quality_security_remediation_effort</li><li>new_software_quality_reliability_rating</li><li>new_software_quality_security_rating</li><li>software_quality_security_rating</li><li>new_security_hotspots</li><li>new_software_quality_maintainability_rating</li><li>software_quality_maintainability_rating</li><li>alert_status</li><li>security_hotspots</li><li>software_quality_reliability_remediation_effort</li><li>new_software_quality_maintainability_debt_ratio</li><li>new_software_quality_reliability_remediation_effort</li></ul>
Op string `form:"op,omitempty"` // Condition operator:<br/><ul><li>LT = is lower than</li><li>GT = is greater than</li></ul>
}
1 change: 1 addition & 0 deletions sonarqube/qualityprofiles_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func (s *Qualityprofiles) ChangeParent(ctx context.Context, r qualityprofiles.Ch
// Changelog:
//
// 10.8: Added parameter 'filterMode'
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added
// 10.3: Added fields 'cleanCodeAttributeCategory', 'impacts' to response
// 10.3: Added fields 'oldCleanCodeAttribute', 'newCleanCodeAttribute', 'oldCleanCodeAttributeCategory', 'newCleanCodeAttributeCategory' and 'impactChanges' to 'params' section of response
// 10.3: Added field 'sonarQubeVersion' to 'params' section of response
Expand Down
4 changes: 4 additions & 0 deletions sonarqube/rules_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ func (s *Rules) Repositories(ctx context.Context, r rules.RepositoriesRequest) (
// Since 4.4
// Changelog:
//
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'impactSeverities' of 'facets' have been added
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added
// 10.8: Parameter 'severities' now supports values: 'INFO','BLOCKER'
// 10.8: The field 'impacts' has been added to the response
// 10.6: Parameter 'prioritizedRule has been added
// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response
Expand Down Expand Up @@ -146,6 +149,7 @@ func (s *Rules) SearchAll(ctx context.Context, r rules.SearchRequest) (*rules.Se
// Since 4.2
// Changelog:
//
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response
// 10.2: The field 'severity' and 'type' in the response have been deprecated, use 'impacts' instead.
// 10.0: The deprecated field 'effortToFixDescription' has been removed, use 'gapDescription' instead.
Expand Down

0 comments on commit 54f82f0

Please sign in to comment.