github.rb: DRY up some code, we have a method now

Also, don't bother passing in the api instance, we have a method for
that too.