Skip to content

Commit a65c46f

Browse files
authored
Release 4.5.1 (#1294)
1 parent 8f43d5b commit a65c46f

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88

99
### Fixed
1010

11+
## [4.5.1] - 2024-07-17
12+
13+
### Added
14+
- Added webhook proxy logic to skip requests with the ref id starting with "refs/notes/" ([#1288](https://github.com/opendevstack/ods-core/pull/1288))
15+
16+
### Changed
17+
- Update SonarQube to 9.9.6 ([#1292](https://github.com/opendevstack/ods-core/pull/1292))
18+
1119
## [4.5.0] - 2024-06-06
1220

1321
### Added

configuration-sample/ods-core.env.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ SONAR_EDITION=community
135135
# See Dockerhub https://hub.docker.com/_/sonarqube/tags
136136
# Officially supported is:
137137
# - 9.9 (LTS release)
138-
SONAR_VERSION=9.9.5
138+
SONAR_VERSION=9.9.6
139139

140140
# SonarQube memory and CPU resources
141141
SONARQUBE_CPU_REQUEST=200m

jenkins/webhook-proxy/main.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,16 @@ func (s *Server) HandleRoot() http.HandlerFunc {
392392
return
393393
}
394394

395+
// Skip requests with where the ref id is starting with "refs/notes/"
396+
// Reference 1: https://community.atlassian.com/t5/Bitbucket-questions/disable-quot-git-notes-add-quot-behaviour-for-semantic-release/qaq-p/1837322
397+
// Reference 2: https://github.com/semantic-release/semantic-release/discussions/2017#discussioncomment-995308
398+
if len(req.Changes) > 0 && strings.Contains(req.Changes[0].Ref.DisplayID, "refs/notes/") {
399+
log.Println(requestID, "Skipping request with refs/notes/ prefix in ref id")
400+
// Return 200 OK to Bitbucket to avoid retries
401+
http.Error(w, "OK", http.StatusOK)
402+
return
403+
}
404+
395405
if req.EventKey == "repo:refs_changed" {
396406
repo = req.Repository.Slug
397407
if component == "" {

sonarqube/chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ version: 1.1.0
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "9.9.5"
24+
appVersion: "9.9.6"

sonarqube/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
66
ODS_CORE_DIR=${SCRIPT_DIR%/*}
77
ODS_CONFIGURATION_DIR="${ODS_CORE_DIR}/../ods-configuration"
88

9-
SONAR_VERSION=9.9.4
9+
SONAR_VERSION=9.9.6
1010
SONAR_EDITION="community"
1111

1212
function usage {

0 commit comments

Comments
 (0)