Commit graph

40 commits

Author SHA1 Message Date
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
Brad Rydzewski
4435d7f2f6 added ssh param to force git+ssh cloning 2015-10-02 16:02:37 -07:00
Brad Rydzewski
dfea14c7e5 updated vendor files and paths 2015-09-29 18:21:17 -07:00
Brad Rydzewski
155576fb03 moved to single binary project structure 2015-09-29 17:53:21 -07:00
Brad Rydzewski
40a9543c0c moving remote pkg per new multi-binary structure 2015-05-17 11:45:09 -07:00
Brad Rydzewski
1ef6dc0bc6 persist self url in repo field 2015-05-12 23:58:30 -07:00
Brad Rydzewski
85256d3a22 backported 0.4 changes to existing database 2015-05-11 00:45:31 -07:00
Daniel Oliveira
ba159976a0 Fixing TODO comments in code /cc @oliveiradan
1. server/login.go:49 (// TODO(bradrydzewski) return an error message instead). Added error message if authorization fails.
2. server/repos.go:178 (TODO(bradrydzewski) verify repo not exists). Added a checking for the repo and return an error in case it does not exist.
3. server/queue.go:170:  // TODO (bradrydzewski) change this interface to accept an io.Reader. All references to the API change been in question SetLogs() have been modified.
4. remote/github/github.go:106  // Fixed a crash in case *repo_.Language is nil , when de-referencing it. This could happen when a repo only has a readme, so github hasn't set the language yet.
5. ./server/queue.go:170:  // TODO (bradrydzewski) change this interface to accept an io.Reader. All references to the API change been in question SetLogs() have been modified.
6. .remote/github/github.go:106  // Fixed a crash in case *repo_.Language is nil , when de-referencing it. This could happen when a repo only has a readme, so github hasn't set the language yet.
2015-05-08 10:47:40 -06:00
Brad Rydzewski
204fba9018 some initial work on a builtin build runner 2015-05-05 01:04:20 -07:00
Brad Rydzewski
6fcae7d80a hooks are protected with signed sha 2015-04-30 14:23:46 -07:00
Brad Rydzewski
b84943222b get netrc data when hook is triggering 2015-04-28 15:08:21 -07:00
Brad Rydzewski
67a4e302c7 ability to get netrc from remote 2015-04-28 14:39:48 -07:00
Brad Rydzewski
c324d66872 ability to pull list of orgs and verify membership 2015-04-15 00:20:00 -07:00
Brad Rydzewski
09bd7cf71a added github remote 2015-04-08 15:00:27 -07:00