skip to content
james@kartar:~/2011/1/github-plug-in-for-rbot

GitHub plug-in for Rbot

A simple Rbot plugin using the GitHub API that lets an IRC channel query issues and commits for a configured repository

1 min read

# written 15 years ago; commands, versions and links may have changed

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.

$ whoami

I'm James Turnbull. I lead engineering teams, build products, and write on technology. More about me.