Andy Gardner
fbc701f22b
Fixing formatting with gofmt
2015-02-26 10:22:06 +02:00
Andy Gardner
9ab07d7cd7
Including repo.role for non admins to allow rebuild button to display
2015-02-25 16:50:47 +02:00
Vsevolod Strukchinsky
83e03c1257
Do not request Read permission for public repo
...
Closes #882
2015-02-21 21:47:40 +05:00
Kirill Zaitsev
8d6a233744
Limit and Offset params for commits
2015-02-13 23:37:21 +03:00
Ulrich Schreiner
46251ffa92
remove builtin log package and use standard
2015-02-12 08:41:04 +01:00
Ulrich Schreiner
aeb6895115
change the deactivate endpoint to HTTP-POST
2015-02-11 07:56:22 +01:00
Ulrich Schreiner
ae236a3d4d
reworked to have two distinct REST handlers
2015-02-05 15:27:26 +01:00
Ulrich Schreiner
05b6dad81e
Merge branch 'master' into delrepo
2015-02-05 14:47:35 +01:00
Ulrich Schreiner
bd8fb51c2a
rework to delete the repository from the datastore if there are previous errors from the remote
2015-02-05 13:13:17 +01:00
Brad Rydzewski
64aeeff3ae
Merge pull request #856 from Bugagazavr/gitlab-ouath
...
Refresh only expired tokens
2015-02-04 22:11:14 -08:00
Ulrich Schreiner
347aa24785
remove Printf output and do a real removal of the repository in the datastore
2015-02-04 15:13:23 +01:00
Ulrich Schreiner
0ed7ae7e3f
impelement a delete of a repository
2015-02-04 14:42:24 +01:00
Kirill Zaitsev
6ca94970d6
Refresh only expired tokens
2015-02-04 13:18:46 +03:00
Kirill Zaitsev
a354aabbb0
Response as JSON instead plain text
2015-02-01 14:12:32 +03:00
Kirill Zaitsev
d225181a0f
Refresh tokens before any requests to remote
2015-01-27 02:33:27 +03:00
Brad Rydzewski
c8ac57c2ba
Merge pull request #827 from bradrydzewski/master
...
partial fix for issue #812
2015-01-16 22:17:23 -08:00
Brad Rydzewski
b8b01c2db4
partial fix for issue #812
2015-01-16 22:11:36 -08:00
Matt Bostock
307aed12bc
Move open registration setting into remote plugins
...
...so that it's possible to enable or disable open registration on a
per-remote basis.
For example, the `DRONE_REGISTRATION_OPEN` environment variable now
becomes `DRONE_GITHUB_OPEN` when using GitHub as a remote.
The default for open registration in this commit is `false` (disabled),
which matches the existing behaviour.
This is useful if you need to support both public and private remotes,
e.g. GitHub.com and GitHub Enterprise, where you trust all of the
private users and want to allow open registration for those but would
not want all GitHub.com users to run builds on your server.
Tested with GitHub and GitLab.
2015-01-16 22:04:24 +00:00
Brad Rydzewski
d0b722cc8b
Insert and Update Users instead of generic Save function. Check ID != 0
2015-01-13 21:57:02 -08:00
Scott Ferguson
44518e2015
Wall feed
2014-11-11 10:02:18 -06:00
Brad Rydzewski
8d5ac0004f
CC should return not fount 404
2014-11-01 11:58:56 -07:00
Brad Rydzewski
20dfd3d70b
Merge pull request #647 from rkusa/badge-style
...
add flat and flat-square badge styles
2014-11-01 11:55:56 -07:00
Brad Rydzewski
f3eb93ca18
Merge remote-tracking branch 'upstream/master'
2014-10-31 20:06:13 -07:00
Brad Rydzewski
27557988f8
added logging to page when adding / removing repos
2014-10-31 20:00:58 -07:00
Markus Ast
399ac68356
add flat and flat-square badge styles
2014-10-30 21:45:57 +01:00
rkusa
db06a6cc83
fix badge branch selection
2014-10-29 12:20:32 +01:00
Kirill Zaitsev
eef53530c1
Allow sync manually, instead force sync at ever login
2014-10-28 19:51:54 +03:00
Brad Rydzewski
4f30e1388c
only generate repo token or key if not exists
2014-10-22 01:02:14 -07:00
Brad Rydzewski
601e3e6d48
slightly altered the URL token format
2014-10-22 00:41:25 -07:00
Brad Rydzewski
7009778176
added token to post-commit hooks
2014-10-22 00:13:47 -07:00
Brad Rydzewski
fba952696d
adding logging to WS layer until it is more stable
2014-10-16 21:45:21 -07:00
Brad Rydzewski
a2dadfd6a6
added log message when user attempts to login but registration closed
2014-10-13 21:30:12 -07:00
Brad Rydzewski
629547813c
modified parameter injection strategy. see #538
2014-10-12 13:02:53 -07:00
Brad Rydzewski
839b578228
removed User checks from handler because middlware has our back
2014-10-09 20:26:32 -07:00
Brad Rydzewski
598c553c3f
badge content-type was in wrong function
2014-10-09 20:26:03 -07:00
Brad Rydzewski
17d773fac0
ability to add and remove workers
2014-10-08 21:55:53 -07:00
Brad Rydzewski
33721e54aa
endpoint to post a new worker to the pool
2014-10-08 21:44:43 -07:00
Brad Rydzewski
962aa8e968
fixed issue with Role not being returned when getting repo
2014-10-08 21:28:06 -07:00
Brad Rydzewski
bb218a6268
Merge remote-tracking branch 'origin/exp' into exp
2014-10-08 20:59:07 -07:00
Brad Rydzewski
7a0a2235b9
added logging to handler to identify errors
2014-10-08 20:57:57 -07:00
Brad Rydzewski
beb009388c
added error messaging to login for debug purposes
2014-10-08 20:56:52 -07:00
Vsevolod Strukchinsky
b854911d23
Add image/svg+xml content-type to badge handler
2014-10-08 16:59:49 +06:00
Brad Rydzewski
8c80f179bd
fixed incorrect url prefix /v1
2014-10-07 07:57:01 -07:00
Brad Rydzewski
0f36aaa463
fixed permission insert to use upsert for improved sync
2014-10-05 19:57:33 -07:00
Brad Rydzewski
5f950d21c4
hooked up jwt token in angular
2014-09-30 00:43:50 -07:00
Brad Rydzewski
58f287a541
added worker handlers
2014-09-29 21:34:30 -07:00
Brad Rydzewski
99fef2b4ea
initial work to get websocket handlers working
2014-09-28 23:18:52 -07:00
Brad Rydzewski
565277bd00
more work on worker integration
2014-09-28 20:21:02 -07:00
Brad Rydzewski
21f9aec808
added new handlers and workers
2014-09-28 18:36:24 -07:00
Brad Rydzewski
9a3f33b9c3
removed remote & server database func now that we are using conf files
2014-09-24 21:45:30 -07:00