Commit 30bce3db authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

tools: Update commit bot

It's temporary action until we move
git repo to own server.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 2a77ebbf
......@@ -15,11 +15,12 @@ else
subject=`exec git log --stat -n1 $id | sed -e '5! D' | sed -e 's/^\s*//g'`
author=`exec git log --stat -n1 $id | grep "Author" | sed -e 's/Author\: //g'`
fi
name=`exec echo $author | sed -e 's/<.*>//g'`
echo "From: Cyrill Gorcunov <gorcunov@openvz.org>" > /tmp/crtools.bot
echo "To: $author" >> /tmp/crtools.bot
echo "Cc: CriuML <criu@openvz.org>" >> /tmp/crtools.bot
echo "Subject: [crtools-bot] $subject" >> /tmp/crtools.bot
echo "Subject: [crtools-bot for $name] $subject" >> /tmp/crtools.bot
echo "" >> /tmp/crtools.bot
echo "The commit is pushed to \"$branch\" and will appear on $remote" >> /tmp/crtools.bot
echo "------>" >> /tmp/crtools.bot
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment