Skip to content

Commit

Permalink
Merge pull request #22 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 21, 2024
2 parents 653bdc6 + 73696f6 commit 57ff967
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
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 security_issues, new_reliability_issues, new_security_issues, new_maintainability_issues, reliability_issues, maintainability_issues metrics are supported
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
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>security_hotspots</li><li>alert_status</li><li>software_quality_maintainability_rating</li><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></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>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>
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>security_hotspots</li><li>alert_status</li><li>software_quality_maintainability_rating</li><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></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>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>
Op string `form:"op,omitempty"` // Condition operator:<br/><ul><li>LT = is lower than</li><li>GT = is greater than</li></ul>
}
11 changes: 6 additions & 5 deletions sonarqube/qualityprofiles/qualityprofiles_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ type ChangeParentRequest struct {
QualityProfile string `form:"qualityProfile"` // Quality profile name.
}

// ChangelogRequest Get the history of changes on a quality profile: rule activation/deactivation, change in parameters/severity. Events are ordered by date in descending order (most recent first).
// ChangelogRequest Get the history of changes on a quality profile: rule activation/deactivation, change in parameters/severity/impacts. Events are ordered by date in descending order (most recent first).
type ChangelogRequest struct {
Language string `url:"language"` // Quality profile language.
QualityProfile string `url:"qualityProfile"` // Quality profile name.
Since string `url:"since,omitempty"` // Start date for the changelog (inclusive). <br>Either a date (server timezone) or datetime can be provided.
To string `url:"to,omitempty"` // End date for the changelog (exclusive, strictly before). <br>Either a date (server timezone) or datetime can be provided.
FilterMode string `url:"filterMode,omitempty"` // Since 10.8;If specified, will return changelog events related to MQR or STANDARD mode. If not specified, all the events are returned
Language string `url:"language"` // Quality profile language.
QualityProfile string `url:"qualityProfile"` // Quality profile name.
Since string `url:"since,omitempty"` // Start date for the changelog (inclusive). <br>Either a date (server timezone) or datetime can be provided.
To string `url:"to,omitempty"` // End date for the changelog (exclusive, strictly before). <br>Either a date (server timezone) or datetime can be provided.
}

// ChangelogResponse is the response for ChangelogRequest
Expand Down
3 changes: 2 additions & 1 deletion sonarqube/qualityprofiles_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@ func (s *Qualityprofiles) ChangeParent(ctx context.Context, r qualityprofiles.Ch
return resp, nil
}

// Changelog - Get the history of changes on a quality profile: rule activation/deactivation, change in parameters/severity. Events are ordered by date in descending order (most recent first).
// Changelog - Get the history of changes on a quality profile: rule activation/deactivation, change in parameters/severity/impacts. Events are ordered by date in descending order (most recent first).
// Since 5.2
// Changelog:
//
// 10.8: Added parameter 'filterMode'
// 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

0 comments on commit 57ff967

Please sign in to comment.