From 050fb81a32d078d6b3e55b5e64c62092f6bf7027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Kr=C3=BCger?= Date: Fri, 24 Jun 2022 14:37:21 +0200 Subject: [PATCH] Detect stable branches on the fly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stable branches are 'master' or 'stable-*'. Signed-off-by: Tim Krüger --- scripts/analysis/analysis-wrapper.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/analysis/analysis-wrapper.sh b/scripts/analysis/analysis-wrapper.sh index 53ac32447..5dde79b43 100755 --- a/scripts/analysis/analysis-wrapper.sh +++ b/scripts/analysis/analysis-wrapper.sh @@ -8,9 +8,15 @@ #6: DRONE_BUILD_NUMBER #7: PULL_REQUEST_NUMBER -stableBranch="master" + repository="talk" +if [[ $3 = \stable-* ]] ; then + stableBranch=$3 +else + stableBranch="master" +fi + ruby scripts/analysis/lint-up.rb $1 $2 $3 lintValue=$?