access token is now optional

* fix some err checks
* github api url can be configured (e.g. point it at an enterprise instance)

[finishes #89638752 #89633744]

Signed-off-by: Chris Brown <cbrown@pivotal.io>
This commit is contained in:
Alex Suraci
2015-03-04 12:25:26 -08:00
committed by Chris Brown
parent 9e289b62c6
commit 4dbe94c715
9 changed files with 174 additions and 17 deletions

View File

@@ -18,7 +18,11 @@ func main() {
destDir := os.Args[1]
github := resource.NewGitHubClient(request.Source)
github, err := resource.NewGitHubClient(request.Source)
if err != nil {
resource.Fatal("constructing github client", err)
}
command := resource.NewInCommand(github, os.Stderr)
response, err := command.Run(destDir, request)
if err != nil {