[CRIU] [crtools-bot for Cyrill Gorcunov ] tools: Update commit bot
Cyrill Gorcunov
gorcunov at openvz.org
Tue Feb 7 09:37:03 EST 2012
The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 30bce3db9384c8944d0f8749a772994e346aef40
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date: Tue Feb 7 18:37:03 2012 +0400
tools: Update commit bot
It's temporary action until we move
git repo to own server.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
tools/commit-bot.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tools/commit-bot.sh b/tools/commit-bot.sh
index 74d2920..3fa3152 100755
--- a/tools/commit-bot.sh
+++ b/tools/commit-bot.sh
@@ -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 at openvz.org>" > /tmp/crtools.bot
echo "To: $author" >> /tmp/crtools.bot
echo "Cc: CriuML <criu at 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
More information about the CRIU
mailing list