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

@@ -4,14 +4,17 @@ Fetches and creates versioned GitHub resources.
## Source Configuration
* `access_token`: *Required.* The GitHub access token that should be used to
access the API.
* `user`: *Required.* The GitHub username or organization name for the
repository that the releases are in.
* `repository`: *Required.* The repository name that contains the releases.
* `access_token`: *Optional.* The GitHub access token that should be used to
access the API. Only required for publishing releases.
* `github_api_url`: *Optional.* If you use a non-public GitHub deployment then
you can set your API URL here.
## Behavior
### `check`: Check for released versions.