OCaml Forge

Forum: cia-bot-for-forge.ocamlcore.org--git-

Posted by: Sylvain Le Gall
Date: 2010-04-28 09:38
Summary:CIA bot for forge.ocamlcore.org (Git)
Project:Site Admin

Hello all,

With a little help from OCamlCore.org administrator, our fellow OCaml developper ygrek has set up a CIA bot for one of his project.

You need to be login to forge.ocamlcore.org with ssh. Here is his recipe.

$ cd /gitroot/ocaml-mysql/ocaml-mysql.git
$ wget http://cia.vc/clients/git/ciabot.pl
$ vi ciabot.pl
# review configuration section, set project name and email address, ensure $xml_rpc=0

# setup update hook
$ cat hooks/update
refname=${1#refs/heads/}
[ "$refname" = "master" ] && refname=
oldhead=$2
newhead=$3
for merged in $(git-rev-list $newhead ^$oldhead | tac); do
/gitroot/ocaml-mysql/ocaml-mysql.git/ciabot.pl $merged $refname
done
$ chmod a+x hooks/update

Thanks to ygrek for this recipe.

Sylvain Le Gall

Latest News

OCaml Forge maintenance

Sylvain Le Gall - 2014-10-15 06:58 -

Handling spam on the forge

Sylvain Le Gall - 2013-10-25 22:41 -

SSL up again, special thanks to Gabriel Kerneis

Sylvain Le Gall - 2013-10-01 22:03 -

Discussion Forums: cia-bot-for-forge.ocamlcore.org--git-

Monitor Forum | Start New Thread Start New Thread