1
0
Fork 0
empact/task/common.go

14 lines
268 B
Go
Raw Normal View History

2015-03-04 19:08:36 +00:00
package task
import (
"code.google.com/p/goauth2/oauth"
"github.com/google/go-github/github"
)
func newGithubClient(token string) *github.Client {
trans := &oauth.Transport{
Token: &oauth.Token{AccessToken: token},
}
return github.NewClient(trans.Client())
}