From 554a2786dc7f09a0647d16a0a62bd6267051bcfd Mon Sep 17 00:00:00 2001
From: Ishwari Niphade <ishwari2152@gmail.com>
Date: Sun, 20 Apr 2025 15:41:57 +0100
Subject: [PATCH] Synced updated .gitlab-ci.yml from main

---
 .gitlab-ci.yml | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7fa9ae4..26778ba 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,14 +5,16 @@ check_branch_name:
   stage: validate
   script: |
     echo "🔍 Validating branch name: $CI_COMMIT_REF_NAME"
-    BRANCH_REGEX="^(regression|classification|clustering|ilp-classification|rl)/(svm|tree|mlp|perceptron|nb|bayes|kmeans|hierarchical|aleph|pygol|ql|dql|preprocessing)/(ritwik|arpit|shivasmi|ishwari|suraj)$"
+
+    # Allowed format: <task>/<model-or-preprocessing>/<author>[-optional-suffix]
+    BRANCH_REGEX="^(regression|classification|clustering|ilp-classification|rl)/(svm|tree|mlp|perceptron|nb|bayes|kmeans|hierarchical|aleph|pygol|ql|dql|preprocessing)/(ritwik|arpit|shivasmi|ishwari|suraj)(-[a-z0-9]+)?$"
 
     if [[ "$CI_COMMIT_REF_NAME" =~ $BRANCH_REGEX ]]; then
       echo "✅ Branch name is valid."
     else
       echo "❌ Branch name is INVALID: '$CI_COMMIT_REF_NAME'"
-      echo "👉 Expected format: <task>/<model-or-preprocessing>/<author>"
-      echo "👉 Example: classification/svm/ritwik"
+      echo "👉 Expected format: <task>/<model-or-preprocessing>/<author>[-optional-suffix]"
+      echo "👉 Example: classification/svm/ritwik or classification/preprocessing/ritwik-fix"
       exit 1
     fi
   only:
@@ -20,4 +22,5 @@ check_branch_name:
   except:
     - main
   tags:
-    - pages
\ No newline at end of file
+    - pages
+
-- 
GitLab