@ -8,22 +8,38 @@ It is no longer necessary to modify the script in order to put it
@@ -8,22 +8,38 @@ It is no longer necessary to modify the script in order to put it
in place; in fact, this is now discouraged. It is entirely
configurable with the following git config variables:
ciabot.project = name of the project (required)
ciabot.project = name of the project
ciabot.repo = name of the project repo for gitweb/cgit purposes
ciabot.xmlrpc = if true (default), ship notifications via XML-RPC
ciabot.xmlrpc = if true, ship notifications via XML-RPC
ciabot.revformat = format in which the revision is shown
The ciabot.repo value defaults to ciabot.project lowercased.
The revformat variable may have the following values
raw -> full hex ID of commit
short -> first 12 chars of hex ID
describe -> describe relative to last tag, falling back to short
The default is 'describe'.
ciabot.project defaults to the directory name of the repository toplevel.
ciabot.repo defaults to ciabot.project lowercased.
ciabot.xmlrpc defaults to True
ciabot.revformat defaults to 'describe'.
This means that in the normal case you need not do any configuration at all,
however setting ciabot.project will allow the hook to run slightly faster.
Once you've set these variables, try your script with -n to see the
notification message dumped to stdout and verify that it looks sane.
To live-test these scripts, your project needs to have been registered with
the CIA site. Here are the steps:
1. Open an IRC window on irc://freenode/commits or your registered
project IRC channel.
2. Run ciabot.py and/or ciabot.sh from any directory under git
control.
You should see a notification on the channel for your most recent commit.
After verifying correct function, install one of these scripts either
@ -8,15 +8,4 @@ You probably want the Python version; it's faster, more capable, and
@@ -8,15 +8,4 @@ You probably want the Python version; it's faster, more capable, and
better documented. The shell version is maintained only as a fallback
for use on hosting sites that don't permit Python hook scripts.
To test these scripts, your project needs to have been registered with
the CIA site. Here are the steps:
1. Open an IRC window on irc://freenode/commits or your registered
project IRC channel.
2. Run ciabot.py and/or ciabot.sh from any directory under git
control, using the -p option to pass in your project name.
You should see a notification on the channel for your most recent commit.
See the file INSTALL for installation instructions.