GithubHelp home page GithubHelp logo

rickihastings / github-tracker Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 128 KB

An IRC bot that tracks github repos and broadcasts messages to channels, multiple repos/channels/networks supported!

PHP 100.00%

github-tracker's Introduction

To install:

Dump install.sql into a database, upload commit-tracker.php to a webserver and add it as a post-recieve hook in your repo (isn't required, if it isnt added the bot won't track commits)
Configure github.php and run, enjoy.

Configure it in github.conf, repos are tracked via commands (dynamically in sql). Config file is parsed as json so comments arn't supported, sorry
I wouldn't recommend setting "options:new_data_interval" below 60, and I definately wouldn't if you're tracking more than one repo, you'll potentially run out of api calls, because github limits them, you can get your server exempt though.
"networks:chans" doesn't have to be occupied, you can force joins with :join/:part and the bot automatically joins and parts with :track and :untrack.
Values in the config file have to be escaped, quotes and other chars like \ etc

If you have any suggestions either ask me in the channel below, or contact me on here.

Questions to Ricki @ irc.ircnode.org/#lobby

TODO:

Add support for re-opening issues (DONE)
Add support for closing? issues (DONE)
Add a :tracking command? Maybe.
Add debug logging to a file (DONE)
Change :track and :untrack to pm only (DONE)
Add :join and :part (DONE)
Convert to V3 api (it's way better!) (DONE - converted everything but the main tracking command to v3, as v3 has pagination for that, which.. sucks)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.