From 71a40811f07b45e105f237394ddd863354169563 Mon Sep 17 00:00:00 2001
From: "Mishra, Ritwik (PG/T - Comp Sci & Elec Eng)" <rm02120@surrey.ac.uk>
Date: Fri, 18 Apr 2025 19:35:27 +0000
Subject: [PATCH] Edit .gitlab-ci.yml

---
 .gitlab-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0c88e81..59cb263 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,6 +5,8 @@ check_branch_name:
   stage: validate
   script: |
     echo "🔍 Validating branch name: $CI_COMMIT_REF_NAME"
+
+    # 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
@@ -12,7 +14,7 @@ check_branch_name:
     else
       echo "❌ Branch name is INVALID: '$CI_COMMIT_REF_NAME'"
       echo "👉 Expected format: <task>/<model-or-preprocessing>/<author>[-optional-suffix]"
-      echo "👉 Example: classification/svm/ritwik or classification/svm/ritwik-v2"
+      echo "👉 Example: classification/svm/ritwik or classification/preprocessing/ritwik-fix"
       exit 1
     fi
   only:
-- 
GitLab