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

@@ -1,10 +1,11 @@
package resource
type Source struct {
AccessToken string `json:"access_token"`
User string `json:"user"`
Repository string `json:"repository"`
GitHubAPIURL string `json:"github_api_url"`
AccessToken string `json:"access_token"`
}
type CheckRequest struct {