Skip to content

Commit

Permalink
Merge pull request #39 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 Jan 12, 2025
2 parents 013900c + 79b0b78 commit 7094951
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
11 changes: 6 additions & 5 deletions sonarqube/alm_settings/alm_settings_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,12 @@ type ListDefinitionsResponse struct {

// SetAzureBindingRequest Bind a Azure DevOps instance to a project.<br/>If the project was already bound to a previous Azure DevOps instance, the binding will be updated to the new one.Requires the 'Administer' permission on the project
type SetAzureBindingRequest struct {
AlmSetting string `form:"almSetting"` // Azure DevOps setting key
Monorepo string `form:"monorepo"` // Since 8.7;Is this project part of a monorepo
Project string `form:"project"` // SonarQube project key
ProjectName string `form:"projectName"` // Since 8.6;Azure project name
RepositoryName string `form:"repositoryName"` // Since 8.6;Azure repository name
AlmSetting string `form:"almSetting"` // Azure DevOps setting key
InlineAnnotationsEnabled string `form:"inlineAnnotationsEnabled,omitempty"` // Since 2025.1;Enable inline annotations during Pull Request decoration for this project
Monorepo string `form:"monorepo"` // Since 8.7;Is this project part of a monorepo
Project string `form:"project"` // SonarQube project key
ProjectName string `form:"projectName"` // Since 8.6;Azure project name
RepositoryName string `form:"repositoryName"` // Since 8.6;Azure repository name
}

// SetBitbucketBindingRequest Bind a Bitbucket instance to a project.<br/>If the project was already bound to a previous Bitbucket instance, the binding will be updated to the new one.Requires the 'Administer' permission on the project
Expand Down
4 changes: 4 additions & 0 deletions sonarqube/alm_settings_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func (s *AlmSettings) DeleteBinding(ctx context.Context, r alm_settings.DeleteBi
// Since 8.1
// Changelog:
//
// 2025.1: Azure binding now contains a inlineAnnotationsEnabled flag for inline annotations feature
// 10.1: Permission needed changed from 'Administer' to 'Browse'
// 8.7: Azure binding now contains a monorepo flag for monorepo feature in Enterprise Edition and above
// 8.6: Azure binding now contains the project and repository names
Expand Down Expand Up @@ -196,6 +197,9 @@ func (s *AlmSettings) ListDefinitions(ctx context.Context, r alm_settings.ListDe
// SetAzureBinding - Bind a Azure DevOps instance to a project.
// If the project was already bound to a previous Azure DevOps instance, the binding will be updated to the new one.Requires the 'Administer' permission on the project
// Since 8.1
// Changelog:
//
// 2025.1: Add inline annotations parameter
func (s *AlmSettings) SetAzureBinding(ctx context.Context, r alm_settings.SetAzureBindingRequest) (*http.Response, error) {
u := fmt.Sprintf("%s/set_azure_binding", s.path)

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 reliability_issues, new_maintainability_issues, new_security_issues, new_reliability_issues, security_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 security_issues, maintainability_issues, reliability_issues, new_maintainability_issues, new_security_issues, new_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>security_hotspots</li><li>new_security_hotspots</li><li>alert_status</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_security_hotspots</li><li>alert_status</li><li>security_hotspots</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 @@ -288,6 +288,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>new_security_hotspots</li><li>alert_status</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_security_hotspots</li><li>alert_status</li><li>security_hotspots</li></ul>
Op string `form:"op,omitempty"` // Condition operator:<br/><ul><li>LT = is lower than</li><li>GT = is greater than</li></ul>
}

0 comments on commit 7094951

Please sign in to comment.