Commit Graph

131 Commits

Author SHA1 Message Date
Maria Shaldibina
c7ac884d7e update README
[#117854649]

Signed-off-by: Jacob Frank <jfrank@pivotal.io>
2016-04-21 13:46:11 -07:00
Maria Shaldibina
049c03df34 include request version in check
[#117854649]

Signed-off-by: Jacob Frank <jfrank@pivotal.io>
2016-04-21 12:03:26 -07:00
Jacob Frank
be23c288a6 ignore .envrc
Signed-off-by: Maria Shaldibina <mshaldibina@pivotal.io>
2016-04-21 11:53:23 -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
Alex Suraci
9d1fe815f0 switch to concourse/busyboxplus:base 2016-03-01 14:52:47 -08:00
Chris Brown
94774a8f32 godepsssss 2016-02-12 12:31:57 -08:00
Chris Brown
638dbc214e do not send the github token to aws
[finishes #113566853]
2016-02-12 12:23:08 -08:00
Alex Suraci
1703fe6c05 create NOTICE.md 2016-02-10 16:08:38 -08:00
Evan Short
742ade538f unit-test rate limit behavior 2016-02-05 16:40:00 -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
da17fb3d2f use explicit output 2016-01-30 11:55:55 -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
Alex Suraci
edcd5c99e4 deps 2016-01-30 11:45:07 -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
Alex Suraci
06ebfbe7e7 Merge pull request #19 from zachgersh/master
Include ability to add tag_prefix
2015-11-29 17:18:02 -08:00
Angela Chin
560637e9fd Include ability to add tag_prefix
Signed-off-by: Zachary Gershman <zgershman@pivotal.io>
2015-11-18 12:42:41 -08:00
Evan Short
8291efc7a7 Update godeps to include go-semi-semantic
[finishes #107756410]
2015-11-10 14:21:54 -08:00
Evan Short
8ec667151f Use semi-semantic versioning
- so we don't ignore tags like v223

[#107756410]
2015-11-10 14:06:52 -08:00
Alex Suraci
12aafdf3eb versionFromDraft -> versionFromRelease 2015-10-27 15:01:02 -07:00
Alex Suraci
df30f19ffa if current version goes away, return latest
[#106794594]
2015-10-27 15:00:16 -07:00
Alex Suraci
6c3c5e9cbd if no body specified, do not update it value
[#102280580]
2015-10-27 14:47:42 -07:00
Alex Suraci
d30a1d0197 convert existing release to/from draft 2015-10-27 14:47:12 -07:00
Alex Suraci
657cb152b4 update docs 2015-10-27 09:30:26 -07:00
Alex Suraci
e19842d3be source.drafts forces releases to be drafts
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.
2015-10-27 09:26:09 -07: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
Evan Short
e3a3a53dba More tests for errors
[finishes #104040604]

Signed-off-by: Chris Sun <lsun@pivotal.io>
2015-10-21 15:04:44 -07:00
Chris Sun
95ab1bda22 Backfill tests for downloading source tarball/zip
[#104040604]

Signed-off-by: Evan Short <eshort@pivotal.io>
2015-10-21 14:04:26 -07:00
Alex Suraci
842f33aade Merge pull request #16 from jtarchie/master
support draft releases for in/out
2015-10-20 18:51:07 -07:00
JT Archie
b2eee37237 support draft releases for in and out
* 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>
2015-10-20 18:16:59 -04:00
JT Archie
a7eb775171 update gomega and ginkgo
[#105040168]

Signed-off-by: David Morhovich <dmorhovich@pivotal.io>
2015-10-20 17:46:15 -04:00
Chris Brown
df4c9d8ccf add test script for testing
Signed-off-by: Corbin Halliwill <challiwill@pivotal.io>
2015-10-19 14:47:21 -07:00
Alex Suraci
46361082cf Merge pull request #14 from apcera/download-source-artifacts
Add support for downloading source artifacts from Github release
2015-10-13 10:17:22 -07: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
8508409f8a document the github access token scope
[finishes #102513822]

Signed-off-by: Evan Short <eshort@pivotal.io>
2015-09-11 17:39:28 -07:00
Evan Short
118b16110f remove draft releases from resource check command
[#102513822]

Signed-off-by: Toby Rumans <trumans@pivotal.io>
2015-09-11 17:30:53 -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
Evan Short
22d247be7d Remove checking for nil version on in command
[#102513822]

Signed-off-by: Toby Rumans <trumans@pivotal.io>
2015-09-11 17:07:03 -07:00
Rob Dimsdale
6d9ae63167 Run tests with race flag and CGO_ENABLED=1
- CGO_ENABLED is required by the race detection. Even though CGO_ENABLED
  seems to hang around after ginkgo is run, the resultant binary still
  seems to run fine.

[#101623472]

Signed-off-by: Evan Short <eshort@pivotal.io>
2015-08-24 14:17:58 -07:00
Chris Brown
70d07f1a4c add usage examples to README 2015-08-21 11:35:43 -07:00
Alex Suraci
b682cc93ad do not fail if there are no releases
they might just not be created yet
2015-08-08 11:53:25 -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
Alex Suraci
79d0da629f Merge pull request #8 from zachgersh/master
Allow Github Resource to Fetch Private Assets
2015-08-08 10:28:42 -07:00
Zach
1ac06d9b3e Be more explicit about when access token is used.
Used during both the in and the out now.
2015-08-04 22:41:55 -07:00
zachgersh
9b77017aaf It's never pointers 2015-08-04 22:20:37 -07:00
zachgersh
65650bf3ea Remove google github library in favor of my fork 2015-08-04 10:13:56 -07:00
zachgersh
58da497c14 Move to custom fork of github library 2015-08-03 22:35:33 -07:00