Contents

GitHub plug-in for Rbot

Contents

I was mucking around tonight with the GitHub API and decided to write a quick plug-in that allows Rbot to query some simple data from GitHub. The plug-in is very simple. All you need to configure the repository to query for a particular channel in Rbot’s conf.yaml file, for example:

github.repomap: - "#vagrant:mitchellh:vagrant"

Where this is the name of the IRC channel, the GitHub user, and the name of the GitHub repository. You can then query issues and commits for that repository, for example:

botname: #1

Where, #1 is the number of an issue. Or,

botname: commit:SHA

Where SHA is the SHA of a commit.