Skip to content
Snippets Groups Projects
Commit 71a40811 authored by Mishra, Ritwik (PG/T - Comp Sci & Elec Eng)'s avatar Mishra, Ritwik (PG/T - Comp Sci & Elec Eng)
Browse files

Edit .gitlab-ci.yml

parent 7518d438
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment