"Owner" is the name GitHub uses in its API to reference the owner of a
repository. "User" is not correct when the owner is an organization.
This removes some confusion I've encountered over how to configure the
resource while maintaining backwards compatibility.
The user now opts-in to getting final or draft releases. Default
behaviour is final releases.
NOTE: There is also strict filtering on only allowing semver supported tags.
Signed-off-by: David Jahn <david.a.jahn@gmail.com>
This adds support for retrieving the tarball or zip source artifact from a
Github release. This is done through defining a
"params.include_source_tarball" or "params.include_source_zip" boolean setting.
With this, the resource will download the respective source artfact into the
target directory as either "source.tar.gz" or "source.zip".
* 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>