Skip to content

Commit 83444b0

Browse files
fix(validator): enhance error message in case of missing reference
1 parent 494c06f commit 83444b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ validate_jira() {
232232
local JIRA=$2
233233

234234
if [[ "$(need_jira "$TYPE")" -eq "1" && -z "${JIRA:-}" ]]; then
235-
echo -e "${TYPE} need a jira reference"
235+
echo -e "commits with type '${TYPE}' need to include a reference to a JIRA ticket, by adding the project prefix and the issue number to the commit message, this could be done easily with: git commit -m 'feat(widget): add a wonderful widget' -m LUM-1234"
236236
exit $ERROR_JIRA
237237
fi
238238
}

0 commit comments

Comments
 (0)