From 0deaa77220f0f9541c02ebd234061930f929f225 Mon Sep 17 00:00:00 2001 From: Jingwen Owen Ou Date: Sat, 8 Jun 2013 18:17:14 -0700 Subject: [PATCH] Update to the latest octokit interface --- github/github.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/github.go b/github/github.go index f1504f44..6ab973ee 100644 --- a/github/github.go +++ b/github/github.go @@ -57,7 +57,7 @@ func (gh *GitHub) repo() octokit.Repository { } func findOrCreateToken(user, password string) (string, error) { - client := octokit.NewClientWithPassword(user, password) + client := octokit.NewClient().WithLogin(user, password) auths, err := client.Authorizations() if err != nil { return "", err @@ -104,7 +104,7 @@ func (gh *GitHub) client() *octokit.Client { utils.Check(err) } - return octokit.NewClientWithToken(config.Token) + return octokit.NewClient().WithToken(config.Token) } func New() *GitHub {