From 4383a50bd9bb3dbf391bdc8f370bea49da805980 Mon Sep 17 00:00:00 2001 From: "Lytovchenko, Danylo" Date: Tue, 24 Jun 2025 13:13:59 +0200 Subject: [PATCH] SWDEV-123456 - allow merge commits in the log (#605) [ROCm/clr commit: 0f4ad06629b6c040138a48151076aa2efe67dd61] --- projects/clr/.github/workflows/pr-title-validate.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/projects/clr/.github/workflows/pr-title-validate.yml b/projects/clr/.github/workflows/pr-title-validate.yml index c6ffbd28b2..caf49ee6aa 100644 --- a/projects/clr/.github/workflows/pr-title-validate.yml +++ b/projects/clr/.github/workflows/pr-title-validate.yml @@ -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-" + 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- or be a merge commit" exit 1 fi done