Commit graph

63 commits

Author SHA1 Message Date
Thomas Boerger
7f49e69607
Just fixed format with go fmt ./... 2018-03-21 14:02:17 +01:00
Brad Rydzewski
580fe9abb7 add apache license header to files 2018-02-19 14:24:10 -08:00
marcin.suterski
96af18993a
Use 'base_ref' as branch name for github tag events.
This chnage adds ability to filter builds by the source branch name for tag
events from Github.
2017-09-14 20:16:58 -04:00
Brad Rydzewski
35e0ee2e5f implement sync logic 2017-07-14 15:58:38 -04:00
Brad Rydzewski
130c623a35 compare yaml files 2017-03-18 19:25:53 +08:00
Brad Rydzewski
e319aaff15 add reviewer fields, endpoints 2017-03-18 16:49:27 +08:00
Vaidas Jablonskis
d8281c2cdf Github: fix webhook struct tags 2017-03-01 16:47:46 +00:00
Alexey Palazhchenko
b230afe7f5 Add AuthError type, use it. 2016-12-19 19:22:11 +03:00
Alexey Palazhchenko
e259c64bac Expose OAuth2 errors, avoid redirect loop.
Closes #1775.
2016-12-19 08:42:56 +03:00
Brad Rydzewski
f7eafb2094 Merge pull request #1866 from bradrydzewski/master
switch github pr branch from source to target
2016-11-21 15:26:38 +01:00
Brad Rydzewski
af296dcd2d Merge pull request #1852 from jmccann/ghe_org_secrets
WIP: Check remote for org secrets permissions
2016-11-20 23:30:54 +01:00
Brad Rydzewski
5c1fcb082e switch github pr branch from source to target 2016-11-20 23:21:27 +01:00
Brad Rydzewski
2465728633 track github remote url 2016-11-19 22:54:05 +01:00
Brad Rydzewski
dc0fdbc221 populate github refspec 2016-11-19 22:36:07 +01:00
Jacob McCann
820e0ab158 Check remote for org secrets access
Fully implemented for github remote
2016-11-18 22:12:28 -06:00
Brendan Gaulin
5b58768d63 OAuth2 GHE Always Register BustedURL
When going through the oauth2 module in go, there is a list of "busted" URLs which don't implement OAuth2 properly.

Github is on that list, however Github Enterprise(GHE) uses different URLs for each instance. Instead of adding all of these to the global list in the oauth module, we can simply flag all of our tokens as broken until github updates their API.
2016-08-25 18:27:17 -04:00
Fabio Rapposelli
837446825d
Add modifiable context for Github status API 2016-05-27 20:22:32 +02:00
jdamick
577dfbab27 fix for issue #1502 2016-05-12 13:09:52 -04:00
jdamick
d9c369bdc7 added scopes to the oauth2 config 2016-05-11 10:32:11 -04:00
Brad Rydzewski
4040dfceb8 significant improvement to GitHub remote coverage (from 5% to 50%) 2016-05-03 13:01:16 -07:00
Brad Rydzewski
f930545410 refactoring github package to increase test coverage 2016-05-02 17:47:58 -07:00
Brad Rydzewski
ebd547deac refactoring remotes to remove deprecated variables, adding tests 2016-05-01 16:30:00 -07:00
Brad Rydzewski
082570fb5b refactoring input and configuration 2016-04-29 12:39:56 -07:00
Brad Rydzewski
84db808eca fixed unit test reference deleted pkg 2016-04-12 13:15:03 -07:00
Brad Rydzewski
9b306a1bc8 load all things via middleware 2016-04-12 13:08:17 -07:00
Brad Rydzewski
a9c84d26e1 Merge pull request #1560 from iamjarvo/auth-with-ghe
Match user url against default api url
2016-04-02 13:59:35 -07:00
Jearvon Dharrie
c0cb91c37e Match user url against default api url
Some GHE urls can have the github url prefix.
I.E https://github.compaq.com, this caused the GHE code not to run.
User.url is the api url for that that user
GHE urls always have /api/version at the end. Probability of a GHE url
starting with api.github is low
2016-04-02 16:45:43 -04:00
Jeff Storey
79dc866f43 getting rid of string split and using the regex match 2016-03-30 07:59:06 -04:00
Jeff Storey
3e4b871991 adding check for github link 2016-03-29 20:05:28 -04:00
Jeff Storey
6ddc2abf47 #1550 deployment status hooks for github 2016-03-29 14:10:33 -04:00
Kirill Zaitsev
d7b066b308 Use GetUserRepos instead GetAllRepos 2016-03-26 18:48:35 +03:00
Fabio Rapposelli
e5131fd76e Add tuneable build file parameter BUILD_CONFIG_FILE 2016-03-25 00:08:27 +01:00
alex
c2f3cf06ad Parameterize GitHub OAuth2 scopes.
If no scope provided, default will be used:
scope=repo,repo:status,user:email.
2016-03-10 19:30:14 +00:00
Brad Rydzewski
3dd0260b69 improve and simplify repository caching 2016-03-04 21:15:50 -08:00
Fabio Rapposelli
9eb4161750
Make GitHub status API context congruous
Signed-off-by: Fabio Rapposelli <fabio@vmware.com>
2015-12-22 14:10:39 +01:00
alex
5ca67d304c Do not ignore refs/heads/gh-pages 2015-12-18 10:57:38 +00:00
Adam Stepinski
cda3e443c6 sanitize description 2015-11-11 13:43:20 -08:00
Adam Stepinski
c7c2c13f2c include test 2015-11-11 13:42:31 -08:00
Adam Stepinski
1c9cfcd376 pull build author from pull request user 2015-11-11 13:41:45 -08:00
Brad Rydzewski
7c2764f8eb SkipVerify oauth code as needed 2015-10-30 14:47:46 -07:00
Brad Rydzewski
4a0deff5a5 implements Stringer for store and remotes 2015-10-27 16:48:05 -07:00
Brad Rydzewski
fc02d38b4a updates the github deployment hook parser to work with older payloads 2015-10-27 14:53:55 -07:00
Brad Rydzewski
37a8a6d4e9 add github deployment environment to build.Deploy 2015-10-27 13:09:13 -07:00
Brad Rydzewski
25fa705511 added scm and deploy fields. plan to support hg, github deploys 2015-10-27 13:03:37 -07:00
Brad Rydzewski
e71905273d parses github hooks 2015-10-26 17:31:26 -07:00
Brad Rydzewski
001c06bb2c parses github deployment hooks for #1144 into build objects 2015-10-26 17:29:29 -07:00
Brad Rydzewski
0427306f31 request github deploymet hooks, but keep disabled by default in UI 2015-10-26 16:04:18 -07:00
Brad Rydzewski
13aa6fda3d properly label tag events for GitHub 2015-10-26 13:10:46 -07:00
Brad Rydzewski
7190facb41 updated to auto generate build documentation and embed in binary 2015-10-06 19:41:20 -07:00
Brad Rydzewski
aa8e0347d0 github author fallback for old GitHub enterprise 2015-10-06 18:31:01 -07:00