HDDS-7043. Disallow ellipsis in PR title (#3651)
diff --git a/dev-support/ci/pr_title_check.bats b/dev-support/ci/pr_title_check.bats
index 633d0179..5b7ebda 100644
--- a/dev-support/ci/pr_title_check.bats
+++ b/dev-support/ci/pr_title_check.bats
@@ -97,6 +97,14 @@
run dev-support/ci/pr_title_check.sh 'HDDS-1234. Hello World '
assert_output 'Fail: trailing space'
+ # trailing ellipsis
+ run dev-support/ci/pr_title_check.sh 'HDDS-1234. Hello World...'
+ assert_output 'Fail: trailing ellipsis indicates title is cut'
+
+ # trailing ellipsis
+ run dev-support/ci/pr_title_check.sh 'HDDS-1234. Hello World…'
+ assert_output 'Fail: trailing ellipsis indicates title is cut'
+
# double spaces after Jira
run dev-support/ci/pr_title_check.sh 'HDDS-1234. Hello World'
assert_output 'Fail: two consecutive spaces'
diff --git a/dev-support/ci/pr_title_check.sh b/dev-support/ci/pr_title_check.sh
index 826b58a..b48e90c 100755
--- a/dev-support/ci/pr_title_check.sh
+++ b/dev-support/ci/pr_title_check.sh
@@ -42,6 +42,8 @@
assertMatch '^HDDS-[1-9][0-9]{0,4}\.' 'Fail: missing dot after Jira'
assertMatch '^HDDS-[1-9][0-9]{0,4}\. ' 'Fail: missing space after Jira'
assertNotMatch '[[:space:]]$' 'Fail: trailing space'
+assertNotMatch '\.{3,}$' 'Fail: trailing ellipsis indicates title is cut'
+assertNotMatch '…$' 'Fail: trailing ellipsis indicates title is cut'
assertNotMatch '[[:space:]]{2}' 'Fail: two consecutive spaces'
assertMatch '^HDDS-[1-9][0-9]{0,4}\. .*[^ ]$' 'Fail: not match "^HDDS-[1-9][0-9]{0,4}\. .*[^ ]$"'