Commit Graph

25 Commits

Author SHA1 Message Date
Xuebin He
ce3e69847b Allow insecure connection to private Enterprise github 2017-10-24 16:03:27 -04:00
Chris Hendrix
28d6890c8c update go-github dependency
closes #42
2017-05-23 17:21:04 -07:00
Kris Hicks
3b050c148c Source configuration uses owner instead of user
"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.
2017-04-10 08:52:27 -07:00
Alex Suraci
3a7443448e fix handling of redirect from asset download 2016-07-09 18:32:35 -07:00
Zachary Gershman
cd28eb3859 Bumps go-github and fixes incompatibilities 2016-06-21 08:06:21 -07:00
Jacob Frank
0bdde35c32 Revert "use proxy from environment"
This reverts commit 64e36f5d40.

Signed-off-by: Evan Short <eshort@pivotal.io>
2016-04-12 17:09:49 -07:00
Evan Short
ce29819744 Revert "put back go-github call to avoid dealing w/ godeps"
This reverts commit fec3bdc7c2.

Signed-off-by: Jacob Frank <jfrank@pivotal.io>
2016-04-12 17:09:20 -07:00
Evan Short
fec3bdc7c2 put back go-github call to avoid dealing w/ godeps
Signed-off-by: Jacob Frank <jfrank@pivotal.io>
2016-04-12 15:44:15 -07:00
Jacob Frank
64e36f5d40 use proxy from environment
[#117482787]

Signed-off-by: Evan Short <eshort@pivotal.io>
2016-04-12 15:20:46 -07:00
Chris Brown
638dbc214e do not send the github token to aws
[finishes #113566853]
2016-02-12 12:23:08 -08:00
Alex Suraci
91b8f79018 configure upload URL when github_api_url is set
[#99533974]

Signed-off-by: Corbin Halliwill <challiwill@pivotal.io>
2016-02-03 11:02:11 -08:00
Alex Suraci
48e6317de1 switch to golang.org/x/oauth2
fixes #22
2016-01-30 11:46:08 -08:00
Alex Suraci
27fe9d197f back to upstream go-github
fixes #17
2016-01-30 11:45:49 -08:00
Liz Dahlstrom
13faed5472 return errors in cases where there may be errors
[#109289522]

Signed-off-by: Toby Rumans <trumans@pivotallabs.com>
2015-12-02 17:41:11 -08:00
JT Archie
7331e0a7ad filter by drafts in the check step
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>
2015-10-23 10:11:15 -04:00
Ken Robertson
d563c2714c Add support for downloading source artifacts from Github release
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".
2015-09-23 14:22:21 -07:00
Toby Rumans
b694a6e9c9 remove latest release from github client
[#102513822]

Signed-off-by: Evan Short <eshort@pivotal.io>
2015-09-11 17:11:52 -07:00
Alex Suraci
d2c9a5e136 clean up pointerisms, fix building real client
google github library returns *Foo in singular case and []Foo if there
are many results. seems like the best approach is to pass them around
by-value, since *Foo seems to only be so that they can return 'nil'
instead of a zero-value.
2015-08-08 11:22:43 -07:00
zachgersh
b359439b85 Add github function to download assets
- Also refactor to allow getting a tagged version
2015-08-03 22:27:31 -07:00
Alex Suraci
4dbe94c715 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>
2015-03-04 12:28:37 -08:00
Alex Suraci
330d632d62 clear out any existing release assets
[#76848252]

Signed-off-by: Chris Brown <cbrown@pivotal.io>
2015-02-20 11:06:47 -08:00
Alex Suraci
125bd204e4 update releases if they already exist
[#76848252]

Signed-off-by: Chris Brown <cbrown@pivotal.io>
2015-02-20 10:57:45 -08:00
Chris Brown
efbfb91683 implement /in
fetches a given list of globs from the assets.

also be durable to 'v' prefixing version tags

Signed-off-by: Alex Suraci <asuraci@pivotal.io>
2015-02-17 18:03:42 -08:00
Chris Brown
0deda9939c implement check command 2015-02-01 12:39:45 +00:00
Chris Brown
a36b7368e7 add initial out command 2015-01-31 23:04:49 +00:00