Commit graph

304 commits

Author SHA1 Message Date
Brad Rydzewski
baecced414 Merge pull request #866 from ulrichSchreiner/delrepo
Delete Repository in Drone DB
2015-02-12 10:53:04 -08:00
Andy Gardner
f64bb1df9b Implementing angular-moment to automatically update dates / durations 2015-02-12 12:18:12 +02: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
6158426511 Merge branch 'master' of github.com:drone/drone into delrepo 2015-02-11 07:24:01 +01:00
Cédric Krier
da2f04480c run go fmt ./... 2015-02-09 19:59:39 +01:00
Cédric Krier
a5218b38a6 Add STS header when TLS 2015-02-09 19:53:52 +01:00
Ulrich Schreiner
21f58ee2fb Merge branch 'master' into delrepo 2015-02-09 07:19:06 +01:00
Brad Rydzewski
66cf15d2d9 fixed rice issue again 2015-02-06 08:40:59 -08:00
Ulrich Schreiner
5f9887a49c Merge branch 'master' into delrepo 2015-02-06 10:30:10 +01:00
Brad Rydzewski
271974e98f fixed go.rice issue 2015-02-05 18:48:16 -08: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
Brad Rydzewski
2f76696226 Merge pull request #857 from andy-g/list_view
Adding a list-view layout
2015-01-29 21:40:18 -08:00
epipho
717bef75dd Adding test for get build number. Moved build number env build injection 2015-01-28 23:39:09 -05:00
epipho
5f8b026d14 All builds now have a per-repository monotonically increasing build number accessible via DRONE_BUILD_NUMBER
and CI_BUILD_NUMBER env variables.
2015-01-28 21:13:22 -05:00
Andy Gardner
5ea14a73af Adding a list-view layout 2015-01-28 14:15:20 +02:00
Brad Rydzewski
350d056d34 Merge pull request #832 from andy-g/live_commit_update
Make live updates to the commits (repo controller) without needing to reload
2015-01-26 22:40:46 -08:00
Kirill Zaitsev
d225181a0f Refresh tokens before any requests to remote 2015-01-27 02:33:27 +03:00
Kirill Zaitsev
f47ab27702 Gitlab oauth login 2015-01-23 22:28:24 +03:00
Andy Gardner
8f93561f04 Merge branch 'master' into live_commit_update 2015-01-23 12:31:12 +02:00
Andy Gardner
77e059ae98 Exclude Pull Requests from the branches.
Currently they are included because the AngularJS "filter" filter defaults to a substring match rather than a strict equality comparison, so filtering by '' includes everything.

https://docs.angularjs.org/api/ng/filter/filter
2015-01-22 11:33:10 +02:00
Andy Gardner
3e1b3c5871 Only live update for existing builds
The build message will only be displayed for new builds as the new item will not be auto updated, if the build has been auto-updated no build message will be displayed.
2015-01-22 10:53:10 +02:00
Andy Gardner
217cf0bc23 Make live updates to the commits without needing to reload 2015-01-20 15:13:53 +02: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
c48c6ebc88 Remove capability package
It's no longer used. This commit can always be reverted later if it's
needed again.
2015-01-16 22:05:23 +00: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
768b299543 fixed incorrect method for GetRepo in Drone client 2015-01-15 00:22:33 -08:00
Brad Rydzewski
dac460f488 Merge pull request #813 from bradrydzewski/master
fixed dependency issue w/ gopkg.in
2015-01-13 23:36:38 -08:00
Brad Rydzewski
59fe6dfbef Merge pull request #710 from nils-werner/usefulhomepage
Slightly more useful homepage
2015-01-13 21:58:52 -08:00
Brad Rydzewski
d0b722cc8b Insert and Update Users instead of generic Save function. Check ID != 0 2015-01-13 21:57:02 -08:00
Brad Rydzewski
1627d5f5da Merge pull request #802 from Bugagazavr/bintray
Bintray
2015-01-13 09:10:50 -08:00
Kirill Zaitsev
ef3fba75a9 Version from file 2015-01-12 20:00:36 +03:00
Brad Rydzewski
aed6f17db6 Merge pull request #803 from andy-g/fix_commit_grouping_by_branch
Fixing an issue with branch grouping due to substring matching
2015-01-12 08:10:42 -08:00
Andy Gardner
fc014768f1 Fixing an issue with branch grouping due to substring matching 2015-01-12 16:09:55 +02:00
Matt Bostock
6534bc79b4 Clarify 'sync running' message
Improve the grammar of the 'sync already runned' message to 'sync
already in progress', which should clarify what is happening when this
message is displayed.
2015-01-12 14:02:48 +00:00
ap4y
a6278f35fb Enforce word breaks in terminal output 2015-01-06 00:31:21 +13:00
Brad Rydzewski
baaaa4069e Merge remote-tracking branch 'upstream/master' 2014-12-30 10:58:59 -08:00
Brad Rydzewski
485ddb39a5 Merge remote-tracking branch 'upstream/master' 2014-12-30 10:35:50 -08:00
Brad Rydzewski
76fd8b0d66 only inject ssk key if private repository or pull request 2014-12-30 10:35:44 -08:00
Michael Nutt
0106a5e21d no longer need to limit Prior commit to those that have status Success or Failure 2014-12-30 13:29:38 -05:00
Michael Nutt
b94280c15c Change from notification after_success and after_failure to change
Also removes the extra db field; instead, just send Prior as part of the Request.

This reverts commit e8b993e7da.
2014-12-30 13:25:14 -05:00
Michael Nutt
e8b993e7da Add support for after_success and after_failure to email notifications
This allows you to restrict email notifications to only be sent after the build changes from success to failure or failure to success.  It errs on the side of sending the notification; if the build is in another state (hung, for instance) or there was no previous build on the branch the email will also be sent.

Since the notify plugin shouldn't really have any responsibility for querying the database to find the previous commit's status, we store it on the commit when we save it.
2014-12-30 11:37:57 -05:00