Documentation Page Changed PostCommitIRCBot - get your commit log read in IRC live! (indefero)

1 view
Skip to first unread message

no-r...@ceondo.com

unread,
Dec 18, 2009, 6:51:09 PM12/18/09
to indefero...@googlegroups.com
Hello,

The following documentation page has been updated:

PostCommitIRCBot - get your commit log read in IRC live!
Project: InDefero
Summary: fixed the code block instead of using pastie
Updated by: Robbie Trencheny
Created by: Robbie Trencheny


New content:

# INTRODUCTION
Something I whipped up after finding a lack of IRC Git bots. Simply posts the info on the commit and a shortened URL to the channel of your choosing

# REQUIREMENTS
irccat - http://irccat.rubyforge.org/

git

curl

# INSTALL
On a server or localhost:
sudo gem install irc_cat

Configure irc_cat by following the instructions here: http://irccat.rubyforge.org/install.html

In your repo directory:
nano .git/hooks/post_commit

Paste the following, replacing things as needed.

~~~~~~~~~~~~~~~~~~~~~
#!/bin/bash
#remember to set URLHERE and PROJECTNAMHERE to your irc_cat tcp url and your indefero project title (respectively)
url=`git log -1 --format=%h`
curl=`curl -s http://is.gd/api.php?longurl=http://code.nookdevs.com/p/PROJECTNAMEHERE/source/commit/${url}`
git log -1 --format="[git] %an, %ar. %s ${curl}" | nc URLHERE 5678
~~~~~~~~~~~~~~~~~~~~~

Startup irc_cat, check that it joined your room, make a commit and ta-da! Live IRC notifications!

--
Documentation page: http://projects.ceondo.com/p/indefero/page/PostCommitIRCBot/


no-r...@ceondo.com

unread,
Feb 27, 2010, 2:02:05 PM2/27/10
to indefero...@googlegroups.com
Hello,

The following documentation page has been updated:

PostCommitIRCBot - get your commit log read in IRC live!
Project: InDefero

Summary: cleaning up markdown
Updated by: Robbie Trencheny
Created by: Charles Melbye


New content:

Something I whipped up after finding a lack of IRC Git bots. Simply posts the info on the commit and a shortened URL to the channel of your choosing

# Requirements
* irccat - [http://irccat.rubyforge.org/](http://irccat.rubyforge.org/)
* git
* curl

# Install


On a server or localhost: `sudo gem install irc_cat`

Configure irc_cat by following [the instructions](http://irccat.rubyforge.org/install.html).

In the git repository directory: `nano hooks/post_commit`

Paste the following, replacing things as needed.

~~~~~~~~~~~~~~~~~~~~~
#!/bin/bash
# remember to set URLHERE and PROJECTNAMHERE to your irc_cat tcp url and your indefero project title (respectively)

Reply all
Reply to author
Forward
0 new messages