"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.
this makes all versions emitted and detected by the resource be
consistently drafts. a separate non-draft resource should be used for
publishing non-draft releases.
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>
* in will pull in the latest release, even if draft. It will not create
the files `tag` and `version`, if no tag is defined on the draft
release.
* out will push a release in a draft state when provided as a param
[#102513822]
Signed-off-by: David Morhovich <dmorhovich@pivotal.io>
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>