This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 6c4749ce1009bbb0024651db75312ccfea35cdea
Author: James Netherton <jamesnether...@gmail.com>
AuthorDate: Mon Jun 9 07:27:17 2025 +0100

    Fix report-build-status.groovy for when a branch name does not contain a 
hyphen
---
 tooling/scripts/report-build-status.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tooling/scripts/report-build-status.groovy 
b/tooling/scripts/report-build-status.groovy
index dd6ea84ca9..481e56eac0 100644
--- a/tooling/scripts/report-build-status.groovy
+++ b/tooling/scripts/report-build-status.groovy
@@ -37,7 +37,7 @@ final String STATUS = 
System.getProperty('status').toLowerCase(Locale.US)
 final String BUILD_ID = System.getProperty('buildId')
 final String REPO = System.getProperty('repo')
 final String BRANCH = System.getProperty('branch')
-final String BRANCH_NAME = "${BRANCH.split('-')[0].capitalize()} 
${BRANCH.split('-')[1].capitalize()}"
+final String BRANCH_NAME = BRANCH.contains('-') ? 
"${BRANCH.split('-')[0].capitalize()} ${BRANCH.split('-')[1].capitalize()}" : 
BRANCH
 final String BRANCH_COMMIT = System.getProperty('branch-commit') ?: 'Unknown'
 final String ACTIONS_URL = 
"https://github.com/${REPO}/actions/runs/${BUILD_ID.split("-")[0]}"
 final String BRANCH_URL = "https://github.com/${REPO}/tree/${BRANCH}";

Reply via email to