#57 √ resolved
Benjamin Stiglitz

Add easy integration with CIA

Reported by Benjamin Stiglitz | March 19th, 2008 @ 09:39 PM

It’d be nice to have one-click post-push integration with the CIA bot so we can get all kinds of junk on our IRC channels.

Comments and changes to this ticket

  • defunkt

    defunkt March 24th, 2008 @ 05:36 PM

      • → State changed from “new” to “invalid”

    You can do this already:

    http://github.com/guides/post-re...

  • Benjamin Stiglitz

    Benjamin Stiglitz March 24th, 2008 @ 06:52 PM

    That’s true, but this bug specifically requested one-click integration. I don’t want to build and host a commit hook…it should just work.

  • defunkt

    defunkt March 24th, 2008 @ 06:57 PM

      • → State changed from “invalid” to “open”

    Can you please elaborate a bit on what you'd like and how you'd like to use it? That will give us a better idea of what we need to do to make this happen. Thanks!

  • defunkt

    defunkt March 30th, 2008 @ 07:09 AM

      • → State changed from “open” to “hold”
  • Eloy Duran

    Eloy Duran April 4th, 2008 @ 01:35 PM

    I think what Benjamin would like to see, which is the same as what I would like, is if you could specify a cia.cv project name and github would do a request to the cia.vc server with info about the commit.

    Then cia.cv will for instance use its irc bots to send commit info into channels.

    I believe they accept email or xml-rpc.

    You can find an example done in perl at: http://git.kernel.org/?p=cogito/cogito.git;a=blob;hb=HEAD;f=contrib/ciabot.pl

  • defunkt

    defunkt April 4th, 2008 @ 08:26 PM

    Does cia.cv has a web site that I can check out?

  • Eloy Duran

    Eloy Duran April 4th, 2008 @ 09:05 PM

    Yeah sorry, I misspelled it. It's: http://cia.vc/

    But it seems down atm.

  • defunkt

    defunkt April 9th, 2008 @ 08:48 AM

      • → Assigned user changed from “defunkt” to “PJ Hyett”
      • → State changed from “hold” to “open”

    Okay, I understand now.

    PJ is working on our post-receive integration so I pass the buck to him. This definitely sounds like a possibility, though.

  • Tekkub

    Tekkub April 10th, 2008 @ 09:25 PM

    If you are interested, I am already catching the webhooks and sending commit emails to CIA in a little project of mine. You're welcome to use any of my code you wish:

    http://github.com/tekkub/github_...

  • Kevin Ballard

    Kevin Ballard April 12th, 2008 @ 06:47 PM

    I would like to cast my vote for this feature.

  • Daniel Peebles

    Daniel Peebles April 21st, 2008 @ 06:14 AM

    I'd like to add a vote for this feature.

  • Eloy Duran

    Eloy Duran April 21st, 2008 @ 07:05 PM

    FYI (If you didn't already knew) I just wanted to add a note that I have a basic example for this http://github.com/alloy/undercov...

  • PJ Hyett

    PJ Hyett May 2nd, 2008 @ 10:55 PM

    I've added tekkub's CIA integration to the Service Hooks page, so please report if this is working correctly.

    That said, it seems primarily what CIA.vc provides is a way to pipe your commits to IRC, which we actually provide. Is there something beyond that that makes this service useful to continue supporting?

  • Tekkub

    Tekkub May 2nd, 2008 @ 11:01 PM

    It does not appear to be working (or at least it wasn't working earlier). Are there errors being thrown on the server that I need to fix? I was never able to test the hook with "live" data, all my dev was done with a sample payload... which I probably screwed up somehow.

  • Tekkub

    Tekkub May 2nd, 2008 @ 11:05 PM

    Yea, just tested again, does not appear to work.

  • Kevin Ballard

    Kevin Ballard May 3rd, 2008 @ 12:19 AM

    Sure, CIA's primary use is piping commits to IRC, but people have already written IRC scripts and such that work with CIA's messages. However, CIA also aggregates commit info on their website and provides RSS feeds and the like (yes, I realize GitHub does this too, but once again people have pre-existing scripts and the like which work with CIA).

  • Tekkub

    Tekkub May 3rd, 2008 @ 01:35 AM

    PJ, why CIA? Well the biggest bitch I've had about hubbub is that he doesn't stay in the channel. IRC people seem to expect a bot to stay on at all times and don't like the join/part messages.

    Another thing, with CIA any channel can add echos for any project into their channel, it doesn't have to be done on the project's end like with github's IRC. I can make a blanket rule that catches any commit I make anywhere, instead of having to configure every new repo I make to echo in the channels I want.

  • Eloy Duran

    Eloy Duran May 5th, 2008 @ 06:45 PM

    Indeed it doesn't seem to work atm.

    I did a commit, but no project on cia.vc was created, checked multiple times up to a hour.

    Also I'm wondering why you decided to go the email route?

    When I discussed this with Chris, he said the xml-rpc route would be the way to go, that's why I wrote that instead of email.

    Also imho the xml-rpc is just nicer to use;

    A) it's waaaay faster, as in commit and get notifications instantly.

    B) it gives you guys direct feedback about wether or not the service is working, which isn't the case via email. I have had periods with rubyforge+cia (email) where notifications just didn't arrive, because it's... well email :)

  • Tekkub
  • Eloy Duran

    Eloy Duran May 5th, 2008 @ 10:15 PM

    @tekkub: My bad, I thought he had used your mailer.. :)

    http://github.com/tekkub/github_...

  • Tekkub

    Tekkub May 5th, 2008 @ 10:21 PM

    I did over there, and yea that's the code I stole for this... but I figured since I already knew the code worked I'd spend a little time and figure out the RPC majicks. Turned out it was the exact same message, just delivered in a different way :)

  • PJ Hyett

    PJ Hyett June 11th, 2008 @ 11:58 PM

      • → State changed from “open” to “resolved”

    done, thanks tekkub!

  • Tekkub

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Tags