1
0
Fork 0
empact/task/common.go

14 lines
268 B
Go

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())
}