nodejitsu / kohai

I am kohai. I am a pluggable irc bot for managing real-time data events.
91 stars 17 forks source link

Announce Git commits to IRC #26

Closed heapwolf closed 12 years ago

heapwolf commented 13 years ago

kohai should be able to stream in Git commit messages from github projects to the IRC room.

mscdex commented 13 years ago

Can't this already be done with github's commit hook IRC bot?

jfhbrook commented 13 years ago

I've implemented a git-watching irc plugin like four times for browserling. I plan to do a fifth refactor Any Day Now. I'd be glad to rewrite it with Kohai in mind. ^__^

jfhbrook commented 13 years ago

@mscdex one nice thing about an irc bot would be that you could choose which to watch from "your side" instead of having to get the repo owner to "point" their repo to your bot. I actually tried a non-polling approach previously, and culturally it just don't work.

mscdex commented 13 years ago

@jesusabdullah wouldn't you have to poll github's api to detect new commits, or do they have a stream api now? How common would it be that you'd want to be monitoring commits for a repo you don't own over IRC?

jfhbrook commented 13 years ago

Addendum: Other information from github would also be useful, such as changes in issues, updates in # watched, etc.

jfhbrook commented 13 years ago

@mscdex First: Yes, you do have to poll the API every few seconds. They're working on a v3 api now but I believe it's also non-streaming (if it were that'd be radtastic). As far as monitoring commits you don't own: It happens pretty often actually.

Here's an example that has probably happened irl: I wrote my IRC bot and wanted it to get updates on /substack/dnode, which is part of the browserling stack. However, it's SubStack's repo, so I'd have to explain to/remind him to point his repo to send messages to the IRC bot.

Or, alternately, I could add dnode to a json-based config myself. Yes it's polling, but culturally it's easier.

Marak commented 13 years ago

@jesusabdullah - Is there any status on this? Do you have something online we can look at?

Thanks!

jfhbrook commented 13 years ago

@marak Yeah, kind of. I have an old codebase I need to get around to refactoring.

https://github.com/jesusabdullah/lulzbot/tree/master/gitwatch is the old gitwatch code. It's kind of a mess right now, unfortunately.

AvianFlu commented 12 years ago

This is now taken care of by github's service hooks. Closing issue.