Skip to content

Commit

Permalink
Add untracked file during workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shijl0925 authored and actions-user committed Dec 11, 2024
1 parent 84d169c commit c0edce8
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
6 changes: 5 additions & 1 deletion sonarqube/alm_integrations/alm_integrations_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ type ListAzureProjectsResponse struct {

// ListBitbucketserverProjectsRequest List the Bitbucket Server projects<br/>Requires the 'Create Projects' permission
type ListBitbucketserverProjectsRequest struct {
AlmSetting string `url:"almSetting"` // DevOps Platform setting key
AlmSetting string `url:"almSetting"` // DevOps Platform setting key
PageSize string `url:"pageSize,omitempty"` // Number of items to return.
Start string `url:"start,omitempty"` // Start number for the page (inclusive). If not passed, the first page is assumed.
}

// ListBitbucketserverProjectsResponse is the response for ListBitbucketserverProjectsRequest
Expand Down Expand Up @@ -133,8 +135,10 @@ type SearchBitbucketcloudReposResponseAll struct {
// SearchBitbucketserverReposRequest Search the Bitbucket Server repositories with REPO_ADMIN access<br/>Requires the 'Create Projects' permission
type SearchBitbucketserverReposRequest struct {
AlmSetting string `url:"almSetting"` // DevOps Platform setting key
PageSize string `url:"pageSize,omitempty"` // Number of items to return.
ProjectName string `url:"projectName,omitempty"` // Project name filter
RepositoryName string `url:"repositoryName,omitempty"` // Repository name filter
Start string `url:"start,omitempty"` // Start number for the page (inclusive). If not passed, the first page is assumed.
}

// SearchBitbucketserverReposResponse is the response for SearchBitbucketserverReposRequest
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 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
6 changes: 6 additions & 0 deletions sonarqube/projects/projects_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ type SearchResponseAll struct {
} `json:"components,omitempty"`
}

// SetContainsAiCodeRequest Sets if the project passed as parameter contains or not AI code according to the value of the contains_ai_code parameter.<br/>Requires 'Administer' rights on the specified project.
type SetContainsAiCodeRequest struct {
ContainsAiCode string `form:"contains_ai_code"` // Flag to set whether the project contains AI code or not.
Project string `form:"project"` // Project key
}

// UpdateKeyRequest Update a project all its sub-components keys.<br>Requires 'Administer' permission on the project.
type UpdateKeyRequest struct {
From string `form:"from"` // Project key
Expand Down
17 changes: 17 additions & 0 deletions sonarqube/projects_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,23 @@ func (s *Projects) SearchAll(ctx context.Context, r projects.SearchRequest) (*pr
return response, nil
}

// SetContainsAiCode - Sets if the project passed as parameter contains or not AI code according to the value of the contains_ai_code parameter.
// Requires 'Administer' rights on the specified project.
// Since 10.8
// Changelog:
//
// 2025.1: Make endpoint public
func (s *Projects) SetContainsAiCode(ctx context.Context, r projects.SetContainsAiCodeRequest) (*http.Response, error) {
u := fmt.Sprintf("%s/set_contains_ai_code", s.path)

resp, err := s.client.Call(ctx, "POST", u, nil, r)
if err != nil {
return resp, err
}

return resp, nil
}

// UpdateKey - Update a project all its sub-components keys.
// Requires 'Administer' permission on the project.
// Since 6.1
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_security_hotspots</li><li>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>alert_status</li><li>security_hotspots</li><li>new_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>new_security_hotspots</li><li>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>alert_status</li><li>security_hotspots</li><li>new_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 c0edce8

Please sign in to comment.