Many fixes on code quality and CI #129
Reference in New Issue
Block a user
No description provided.
Delete Branch "develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request introduces multiple updates across the codebase, including workflow enhancements, dependency updates, and refactoring for consistency and maintainability. The changes primarily focus on improving CI/CD workflows, updating Go and SonarQube configurations, and standardizing naming conventions in the
labelstructs
package.Workflow Enhancements
.github/workflows/go-test.yaml
to include additional pull request event types (opened
,synchronize
,reopened
) and expanded branch support formain
andreleases/**
.1.23
to1.24
and replaced the SonarCloud action with SonarQube (sonarqube-scan-action@v5.2.0
) while adding permissions forcontents
andpull-requests
. [1] [2]Code Refactoring
labelStructs
tolabelstructs
across multiple files for consistency in naming conventions. [1] [2] [3] [4] [5] [6] [7]Dependency and Permission Updates
0o755
) withutils.DirectoryPermission
for better maintainability. [1] [2]SONAR_HOST_URL
environment variable to usevars.SONAR_HOST_URL
for better configuration management.Bug Fixes and Improvements
cmd/katenary/main.go
by trimming whitespace fromgivenAppVersion
before checking its length.generator/converter.go
by replacingappend([]byte(fmt.Sprintf(...)))
withfmt.Appendf(nil, ...)
for improved performance.Documentation Updates
doc/docs/packages/generator/labels.md
to clarify the purpose of thelabels
package.