Skip to content

Commit

Permalink
Merge pull request #26 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 Nov 15, 2024
2 parents 0fe7ab5 + 01c6e95 commit adddead
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 26 deletions.
16 changes: 8 additions & 8 deletions sonarqube/issues/issues_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ type BulkChangeRequest struct {
Issues string `form:"issues"` // Comma-separated list of issue keys
RemoveTags string `form:"remove_tags,omitempty"` // Remove tags
SendNotifications string `form:"sendNotifications,omitempty"` // Since 4.0;
SetSeverity string `form:"set_severity,omitempty"` // Deprecated since 10.2;To change the severity of the list of issues
SetType string `form:"set_type,omitempty"` // Since 5.5;Deprecated since 10.2;To change the type of the list of issues
SetSeverity string `form:"set_severity,omitempty"` // To change the severity of the list of issues
SetType string `form:"set_type,omitempty"` // Since 5.5;To change the type of the list of issues
}

// BulkChangeResponse is the response for BulkChangeRequest
Expand Down Expand Up @@ -522,19 +522,19 @@ type SearchRequest struct {
PciDss40 string `url:"pciDss-4.0,omitempty"` // Since 9.6;Comma-separated list of PCI DSS v4.0 categories.
PrioritizedRule string `url:"prioritizedRule,omitempty"` // To match issues with prioritized rule or not
PullRequest string `url:"pullRequest,omitempty"` // Since 7.1;Pull request id. Not available in the community edition.
Resolutions string `url:"resolutions,omitempty"` // Deprecated since 10.4;Comma-separated list of resolutions
Resolutions string `url:"resolutions,omitempty"` // Comma-separated list of resolutions
Resolved string `url:"resolved,omitempty"` // To match resolved or unresolved issues
Rules string `url:"rules,omitempty"` // Comma-separated list of coding rule keys. Format is <repository>:<rule>
S string `url:"s,omitempty"` // Sort field
SansTop25 string `url:"sansTop25,omitempty"` // Since 7.3;Deprecated since 10.0;Comma-separated list of SANS Top 25 categories.
Scopes string `url:"scopes,omitempty"` // Comma-separated list of scopes. Available since 8.5
Severities string `url:"severities,omitempty"` // Deprecated since 10.4;Comma-separated list of severities
Severities string `url:"severities,omitempty"` // Comma-separated list of severities
SonarsourceSecurity string `url:"sonarsourceSecurity,omitempty"` // Since 7.8;Comma-separated list of SonarSource security categories. Use 'others' to select issues not associated with any category
Statuses string `url:"statuses,omitempty"` // Deprecated since 10.4;Comma-separated list of statuses
StigASDV5R3 string `url:"stig-ASD_V5R3,omitempty"` // Since 10.7;Comma-separated list of STIG V5R3 categories.
Tags string `url:"tags,omitempty"` // Comma-separated list of tags.
TimeZone string `url:"timeZone,omitempty"` // Since 8.6;To resolve dates passed to 'createdAfter' or 'createdBefore' (does not apply to datetime) and to compute creation date histogram
Types string `url:"types,omitempty"` // Since 5.5;Deprecated since 10.4;Comma-separated list of types.
Types string `url:"types,omitempty"` // Since 5.5;Comma-separated list of types.
}

// SearchResponse is the response for SearchRequest
Expand Down Expand Up @@ -738,10 +738,10 @@ type SearchResponseAll struct {
}

// SetSeverityRequest Change severity.<br/>Requires the following permissions:<ul> <li>'Authentication'</li> <li>'Browse' rights on project of the specified issue</li> <li>'Administer Issues' rights on project of the specified issue</li></ul>
// Deprecated: this action has been deprecated since version 10.2
type SetSeverityRequest struct {
Issue string `form:"issue"` // Issue key
Severity string `form:"severity"` // New severity
Impact string `form:"impact,omitempty"` // Override of impact severity for the rule. Cannot be used as the same time as 'severity'
Issue string `form:"issue"` // Issue key
Severity string `form:"severity,omitempty"` // New severity
}

// SetSeverityResponse is the response for SetSeverityRequest
Expand Down
15 changes: 14 additions & 1 deletion 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: The response fields 'severity' and 'type' are not deprecated anymore.
// 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.
Expand All @@ -43,6 +44,7 @@ func (s *Issues) AddComment(ctx context.Context, r issues.AddCommentRequest) (*i
// Since 3.6
// Changelog:
//
// 10.8: The response fields 'severity' and 'type' are not deprecated anymore.
// 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.
Expand Down Expand Up @@ -88,6 +90,7 @@ func (s *Issues) Authors(ctx context.Context, r issues.AuthorsRequest) (*issues.
// Since 3.7
// Changelog:
//
// 10.8: The parameters 'set_severity' and 'set_type' are not deprecated anymore.
// 10.4: Transitions 'wontfix' and 'confirm' are now deprecated. Use transition 'accept' instead. The transition 'unconfirm' is deprecated too.
// 10.4: Transition 'accept' is now supported.
// 10.2: Parameters 'set_severity' and 'set_type' are now deprecated.
Expand All @@ -111,6 +114,7 @@ func (s *Issues) BulkChange(ctx context.Context, r issues.BulkChangeRequest) (*i
// Since 4.1
// Changelog:
//
// 10.8: 'severity' and 'type' keys are not deprecated anymore.
// 10.4: 'issueStatus' key is added in the differences
// 10.4: 'status', 'resolution', 'severity' and 'type' keys are now deprecated in the differences
// 9.7: 'externalUser' and 'webhookSource' information added to the answer
Expand All @@ -132,6 +136,7 @@ func (s *Issues) Changelog(ctx context.Context, r issues.ChangelogRequest) (*iss
// Since 3.6
// Changelog:
//
// 10.8: The response fields 'severity' and 'type' are not deprecated anymore.
// 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 @@ -163,6 +168,7 @@ func (s *Issues) DeleteComment(ctx context.Context, r issues.DeleteCommentReques
// Since 3.6
// Changelog:
//
// 10.8: The response fields 'severity' and 'type' are not deprecated anymore.
// 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'.
Expand Down Expand Up @@ -194,6 +200,7 @@ func (s *Issues) DoTransition(ctx context.Context, r issues.DoTransitionRequest)
// Since 3.6
// Changelog:
//
// 10.8: The response fields 'severity' and 'type' are not deprecated anymore.
// 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.
Expand Down Expand Up @@ -253,6 +260,9 @@ func (s *Issues) Reindex(ctx context.Context, r issues.ReindexRequest) (*http.Re
// Since 3.6
// Changelog:
//
// 10.8: The response fields 'severity' and 'type' are not deprecated anymore..
// 10.8: The fields 'severity' and 'type' are not deprecated anymore.
// 10.8: The parameters 'severities' and 'types' are not deprecated anymore.
// 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'.
Expand Down Expand Up @@ -365,9 +375,11 @@ func (s *Issues) SearchAll(ctx context.Context, r issues.SearchRequest) (*issues
// * 'Administer Issues' rights on project of the specified issue
//
// Since 3.6
// Deprecated since 10.2
// Changelog:
//
// 10.8: Add 'impact' parameter to the request.
// 10.8: Parameter 'severity' is now optional.
// 10.8: This endpoint is not deprecated anymore.
// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead.
// 10.4: Add 'issueStatus' field to the response.
// 10.2: This endpoint is now deprecated.
Expand All @@ -393,6 +405,7 @@ func (s *Issues) SetSeverity(ctx context.Context, r issues.SetSeverityRequest) (
// Since 5.1
// Changelog:
//
// 10.8: The response fields 'severity' and 'type' are not deprecated anymore.
// 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.
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_security_issues, new_reliability_issues, security_issues, maintainability_issues, reliability_issues, new_maintainability_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
3 changes: 3 additions & 0 deletions sonarqube/measures_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Measures service
// Since 5.4
// Changelog:
//
// 10.8: The following metrics are not deprecated anymore: 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues', 'new_blocker_violations', 'new_critical_violations', 'new_major_violations', 'new_minor_violations', 'new_info_violations', 'blocker_violations', 'critical_violations', 'major_violations', 'minor_violations', 'info_violations'
// 10.8: Added new accepted values for the 'metricKeys' param: 'software_quality_blocker_issues', 'software_quality_high_issues', 'software_quality_info_issues', 'software_quality_medium_issues', 'software_quality_low_issues', 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_blocker_issues', 'new_software_quality_high_issues', 'new_software_quality_info_issues', 'new_software_quality_medium_issues', 'new_software_quality_low_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues'
// 10.8: The metrics 'maintainability_issues', 'reliability_issues', 'security_issues', 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' are now deprecated. Use 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues' instead.
// 10.7: Added new accepted values for the 'metricKeys' param: 'software_quality_maintainability_debt_ratio', 'software_quality_maintainability_rating', 'software_quality_reliability_rating', 'software_quality_security_rating', 'software_quality_maintainability_remediation_effort', 'software_quality_reliability_remediation_effort', 'software_quality_security_remediation_effort', 'effort_to_reach_software_quality_maintainability_rating_a', 'new_software_quality_maintainability_debt_ratio', 'new_software_quality_maintainability_rating', 'new_software_quality_reliability_rating', 'new_software_quality_security_rating', 'new_software_quality_maintainability_remediation_effort', 'new_software_quality_reliability_remediation_effort', 'new_software_quality_security_remediation_effort'
Expand Down Expand Up @@ -61,6 +62,7 @@ func (s *Measures) Component(ctx context.Context, r measures.ComponentRequest) (
// Since 5.4
// Changelog:
//
// 10.8: The following metrics are not deprecated anymore: 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues', 'new_blocker_violations', 'new_critical_violations', 'new_major_violations', 'new_minor_violations', 'new_info_violations', 'blocker_violations', 'critical_violations', 'major_violations', 'minor_violations', 'info_violations'
// 10.8: Added new accepted values for the 'metricKeys' param: 'software_quality_blocker_issues', 'software_quality_high_issues', 'software_quality_info_issues', 'software_quality_medium_issues', 'software_quality_low_issues', 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_blocker_issues', 'new_software_quality_high_issues', 'new_software_quality_info_issues', 'new_software_quality_medium_issues', 'new_software_quality_low_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues'
// 10.8: The metrics 'maintainability_issues', 'reliability_issues', 'security_issues', 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' are now deprecated. Use 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues' instead.
// 10.7: Number of metric keys is limited to 25
Expand Down Expand Up @@ -132,6 +134,7 @@ func (s *Measures) ComponentTreeAll(ctx context.Context, r measures.ComponentTre
// Since 6.3
// Changelog:
//
// 10.8: The following metrics are not deprecated anymore: 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues', 'new_blocker_violations', 'new_critical_violations', 'new_major_violations', 'new_minor_violations', 'new_info_violations', 'blocker_violations', 'critical_violations', 'major_violations', 'minor_violations', 'info_violations'
// 10.8: Added new accepted values for the 'metricKeys' param: 'software_quality_blocker_issues', 'software_quality_high_issues', 'software_quality_info_issues', 'software_quality_medium_issues', 'software_quality_low_issues', 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_blocker_issues', 'new_software_quality_high_issues', 'new_software_quality_info_issues', 'new_software_quality_medium_issues', 'new_software_quality_low_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues'
// 10.8: The metrics 'maintainability_issues', 'reliability_issues', 'security_issues', 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' are now deprecated. Use 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues' instead.
// 10.7: Added new accepted values for the 'metricKeys' param: 'software_quality_maintainability_debt_ratio', 'software_quality_maintainability_rating', 'software_quality_reliability_rating', 'software_quality_security_rating', 'software_quality_maintainability_remediation_effort', 'software_quality_reliability_remediation_effort', 'software_quality_security_remediation_effort', 'effort_to_reach_software_quality_maintainability_rating_a', 'new_software_quality_maintainability_debt_ratio', 'new_software_quality_maintainability_rating', 'new_software_quality_reliability_rating', 'new_software_quality_security_rating', 'new_software_quality_maintainability_remediation_effort', 'new_software_quality_reliability_remediation_effort', 'new_software_quality_security_remediation_effort'
Expand Down
1 change: 1 addition & 0 deletions sonarqube/project_badges_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func (s *ProjectBadges) AiCodeAssurance(ctx context.Context, r project_badges.Ai
// Since 7.1
// Changelog:
//
// 10.8: The following metric keys are not deprecated anymore: bugs, code_smells, security_hotspots, vulnerabilities
// 10.4: The following metric keys are now deprecated: bugs, code_smells, security_hotspots, vulnerabilities
func (s *ProjectBadges) Measure(ctx context.Context, r project_badges.MeasureRequest) (*project_badges.MeasureResponse, *http.Response, error) {
u := fmt.Sprintf("%s/measure", s.path)
Expand Down
1 change: 1 addition & 0 deletions sonarqube/projects_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ func (s *Projects) Delete(ctx context.Context, r projects.DeleteRequest) (*http.
// Since 9.1
// Changelog:
//
// 10.8: 'type' and 'severity' fields are not deprecated anymore.
// 10.4: 'status' and 'resolution' fields are now deprecated for issues. Use 'issueStatus' instead. Note that both fields remain available for 'type=SECURITY_HOTSPOT'.
// 10.4: Add 'issueStatus' field to the response
// 10.4: 'type' and 'severity' fields are now deprecated for issues. Use 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields instead. Note that 'type' remains available for 'type=SECURITY_HOTSPOT'.
Expand Down
Loading

0 comments on commit adddead

Please sign in to comment.