SWDEV-123456 - allow merge commits in the log (#605)
[ROCm/clr commit: 0f4ad06629]
This commit is contained in:
کامیت شده توسط
GitHub
والد
e2e5ad827d
کامیت
4383a50bd9
+6
-2
@@ -35,8 +35,12 @@ jobs:
|
||||
echo "$COMMITS"
|
||||
echo "$COMMITS" | while read -r hash message; do
|
||||
echo -e "$hash $message\n "
|
||||
if [[ ! "$message" =~ ^SWDEV-[0-9]+ ]]; then
|
||||
echo "::error:: $hash commit should start with Jira ticket ID, SWDEV-<num>"
|
||||
if [[ "$message" =~ ^SWDEV-[0-9]+ ]]; then
|
||||
echo "Valid JIRA ticket format"
|
||||
elif [[ "$message" =~ ^Merge\ branch ]]; then
|
||||
echo "Merge commits are allowed"
|
||||
else
|
||||
echo "::error:: $hash commit should start with Jira ticket ID, SWDEV-<num> or be a merge commit"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
مرجع در شماره جدید
Block a user