From 9fae0b6de0b5a21bc9985e6a4d85ae22bfe1f0d4 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sat, 8 Jan 2011 14:37:48 +0000 Subject: add an option to not send commits from some authors to cia --- modules/subversion/templates/ciabot_svn.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/subversion/templates') diff --git a/modules/subversion/templates/ciabot_svn.sh b/modules/subversion/templates/ciabot_svn.sh index 9f30e173..bec23aad 100755 --- a/modules/subversion/templates/ciabot_svn.sh +++ b/modules/subversion/templates/ciabot_svn.sh @@ -66,6 +66,7 @@ project_name="Mageia" module_name="<%= cia_module %>" return_address="root@<%= domain %>" +ignore_author="<%= cia_ignore_author %>" # System sendmail_command="/usr/sbin/sendmail -t" @@ -80,6 +81,10 @@ REV="$2" cia_address="cia@cia.navi.cx" author=`svnlook author -r "$REV" "$REPOS" | sed 's/\&/\&/g;s//\>/g'` +if test -n "$ignore_author" && echo "$author" | grep -q "$ignore_author" +then + exit 0 +fi log=`svnlook log -r "$REV" "$REPOS" | sed 's/\&/\&/g;s//\>/g'` diff_lines=`svnlook diff -r "$REV" "$REPOS" | wc -l` for file in `svnlook changed -r "$REV" "$REPOS" | cut -c 3- | sed 's/\&/\&/g;s//\>/g'`; do -- cgit v1.2.1