It listens for Commits (push event) & Comments(commit comment event) on a particular repo and posts the details into a Spark room.
You will also need to set up a github webhook for the specific repo.
See links below for more details:
https://developer.github.com/webhooks/