Big Bang Technology

Thu 30 Oct
2008

Setting Up Communication between GitHub Repositories and Lighthouse Projects via a Secure Token

Posted at 12:40 PM by Cameron Westland in Tutorials

Integrating Github with Lighthouse has been a great time saver. It has allowed us to stay on top of fixes and keep track of everything we're doing in one place. We don't need to have everyone looking through the git logs now! This short screencast shows you how to get things set up.

Transcript

Hi there, thought I'd try this whole screen-casting thing out again. So this screen-cast shows how to integrate github with lighthouse. This basically will show changesets in github inside lighthouse. It will let you see what's going on straight from light house. It's pretty simple to do.

Lighthouse

All you have to do is go to your profile and generate a token, pick a lighthouse project and give the token a label. Then click create.

Now we'll just copy & paste the token that was generated. And we want to make sure we have read/write permission. Now the only thing we really need is the project id, so we'll go into the project and grab the id from the address bar. We also need the sub-domain. That's really all we need from lighthouse.

Lighthouse is all set up.

Github

We'll go over to github's dashboard. Just select the repository you want to communicate with lighthouse and edit the repository. Click services and scroll down until you find the lighthouse service. Now it's basically as simple as putting the information from lighthouse in. Make sure to set it to active and then hit update settings.

So it's pretty simple to integrate, but there wasn't any super clear documentation on how to do this.

Testing

The easiest way to test this is to update a file and push it out to github. We'll add it to the repository with a simple commit message.

git add README
git commit -m "Another test change"

And then push it to the server:

git push origin master

And finally refresh lighthouse and we see the test change. That's basically it! It shows the files that were updated and you can click through to the change-set.

Thanks a lot for watching!