SVN Integration with JIRA

26 views
Skip to first unread message

Prabhu Sukumar

unread,
Aug 20, 2019, 1:52:28 AM8/20/19
to TortoiseSVN
Hi folks,

I need to integrate SVN with JIRA. So end-user should not commit any code without proper JIRA ticket. I have created test repository and placed a simple shell script inside pre-commit.tmpl. But still i'm able to commit without any commit message. Could anyone help me on this ?

#!/bin/bash
SVNLOOK=/usr/bin/svnlook
LOGMSG=`$SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" | wc -c`
echo $LOGMSG

if [ "$LOGMSG" -lt 1 ]; then
echo -e "Please provide a meaningful comment when committing changes." 1>&2
exit 1
fi

Kalen Brown

unread,
Aug 21, 2019, 6:59:21 PM8/21/19
to TortoiseSVN
I use this https://www.midori-global.com/products/better-commit-policy-for-jira/
That gets even more detailed though.
Reply all
Reply to author
Forward
0 new messages