Commit graph

356 commits

Author SHA1 Message Date
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
Michael Steinert
441de03fb9 Serve robots.txt from /
This change allows `robots.txt` to be served from the root URL, i.e.
https://drone.io/robots.txt, which is where [web crawlers will look for
it][1]. Previously this file was only served from `/static/robots.txt`.

[1]: http://www.robotstxt.org/robotstxt.html
2014-12-24 13:03:08 -06:00
Kirill Zaitsev
12baa7a81a Fix docker TLS, update readme and config file 2014-12-10 18:39:46 +03:00
Brad Rydzewski
61282888e1 improve permission logic 2014-11-21 22:41:32 -08:00
Christopher Brickley
270ce52b76 add gogs support 2014-11-18 21:50:05 -05:00
Nils Werner
dceb83564b Slightly more useful homepage
With more active repos and a more sensible view
of inactive repos
2014-11-17 23:04:58 +01:00
Brad Rydzewski
49a9c33dc9 Merge pull request #705 from bradrydzewski/master
ability to handle options requests
2014-11-17 13:44:28 -08:00
Nils Werner
fdfceedb7d Removed commit List User limit 2014-11-16 14:34:54 +01:00
Brad Rydzewski
2302d74465 ability to handle options requests 2014-11-15 22:15:22 -08:00
Nils Werner
ceae6d5bfe Use join instead of subquery 2014-11-15 16:10:44 +01:00
Brad Rydzewski
2ad8fe67bb updated to use new documentation link 2014-11-13 07:54:54 -08:00
Scott Ferguson
fa003af8cf Add feed route 2014-11-11 10:02:31 -06:00
Scott Ferguson
44518e2015 Wall feed 2014-11-11 10:02:18 -06:00
Brad Rydzewski
6165030ab5 prevent panic when replaying on closed channel 2014-11-10 21:13:18 -08:00
Brad Rydzewski
0ec2a65067 added docs to README 2014-11-10 00:24:47 -08:00
Brad Rydzewski
2c75f225d9 Merge pull request #600 from netantho/netantho-584
Fixes #584
2014-11-06 23:55:32 -08:00
Christopher Brickley
e4e7773644 update to new goji wildcard format 2014-11-04 16:28:17 -05: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
Scott Ferguson
be9e65ba68 Show pending/started builds in /api/user/feed 2014-10-30 08:35:19 -05:00
Scott Ferguson
dddb5af87d Revert "Add verbose user repo feed"
This reverts commit cbfe6228ee.
2014-10-30 08:26:49 -05:00
Scott Ferguson
cbfe6228ee Add verbose user repo feed 2014-10-29 13:44:16 -05:00
Brad Rydzewski
786cdc886b Merge pull request #646 from rkusa/autoprefixer
add vendor prefixes to CSS using autoprefixer
2014-10-29 08:55:14 -07:00
rkusa
db06a6cc83 fix badge branch selection 2014-10-29 12:20:32 +01:00
rkusa
6f99e8f5f4 add vendor prefixes to CSS using autoprefixer 2014-10-29 10:33:07 +01:00
Brad Rydzewski
992136ea4d Merge pull request #641 from daMupfel/commit_controller_refactoring
small refactoring commit controller
2014-10-28 20:53:18 -07:00
Brad Rydzewski
e34d83b3b8 Merge pull request #642 from Bugagazavr/sync
Allow sync manually, instead force sync at ever login
2014-10-28 20:41:50 -07:00
Kirill Zaitsev
eef53530c1 Allow sync manually, instead force sync at ever login 2014-10-28 19:51:54 +03:00
Brad Rydzewski
37e640fb60 Merge pull request #640 from floatdrop/master
Update drone.css to enable affix sidebar
2014-10-28 08:35:12 -07:00
Eichin David
50e368c24a refactoring commit controller
fixed bug where include of pr template raised angularjs error
2014-10-28 15:39:14 +01:00
Vsevolod Strukchinsky
a6a875d76c Update drone.css to enable affix sidebar 2014-10-28 14:44:43 +05:00
Kirill Zaitsev
459759370f Show pull request link, when commit related with pull request 2014-10-28 03:21:19 +03:00
Sam Rawlins
4949608980 Affix the sidebar 2014-10-27 12:58:34 -07:00
Brad Rydzewski
275fb9600c Merge pull request #631 from bradrydzewski/master
altered mysql to use `mediumblob` instead of `blob` to avoid 64k limit
2014-10-26 10:21:34 -07:00
Brad Rydzewski
cbd5ef2874 altered mysql code to use mediumblob instead of blob to avoid 64k limit 2014-10-26 10:17:17 -07:00
Eichin David
961c53f6cf hide rebuild button if in Started or Pending state 2014-10-26 01:33:54 +02:00
Eichin David
2d74e4ed04 quick fix for reloading page if succesfully started a rebuild of a commit 2014-10-26 01:33:46 +02:00
Eichin David
6359da3296 fixed missing live console output bug on rebuild 2014-10-24 23:25:56 +02:00
Brad Rydzewski
1cb74a90e3 Merge pull request #599 from bradrydzewski/remote-workers
Updated Docker Client to accept TLS
2014-10-22 23:50:43 -07:00
Brad Rydzewski
3cd1631c05 updated README 2014-10-22 23:23:05 -07: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
f6cbb7244b forgot to remove setup.go file in migration package 2014-10-22 00:26:52 -07:00
Brad Rydzewski
7009778176 added token to post-commit hooks 2014-10-22 00:13:47 -07:00
Anthony Verez
b444748b6c Fixes #584 2014-10-20 21:26:43 +02:00
Brad Rydzewski
07e0b7d2b1 minor session refactoring in prep for upcoming changes discussed in #590 2014-10-19 22:45:32 -07:00
epipho
521cf4e8c9 Exit app if config cannot be read correctly 2014-10-18 22:26:29 -04:00
Daniel Graña
9422077626 access_token query param is in JWT format 2014-10-17 12:16:01 -02:00
Brad Rydzewski
fba952696d adding logging to WS layer until it is more stable 2014-10-16 21:45:21 -07:00
Brad Rydzewski
e49b81e7a4 updated Makefile to create packaging/output during build step 2014-10-16 20:40:26 -07:00
Brad Rydzewski
cc71957c8d moving websockets to subrouter 2014-10-16 11:35:25 -07:00
Brad Rydzewski
b1300be9f0 fixed word wrap on user settings screen 2014-10-16 00:00:31 -07:00
Brad Rydzewski
c86c2ed237 fixed formatting issue on repo edit screen 2014-10-15 23:58:34 -07:00
Brad Rydzewski
830d3d7d9e removed settings link 2014-10-15 19:27:01 -07:00
Brad Rydzewski
2f6b209174 adding auth_token to ws request 2014-10-15 08:46:37 -07:00
Brad Rydzewski
a55f0f8432 set created & updated dates in database 2014-10-14 01:49:10 -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
782914b46f fixed logout 2014-10-13 21:10:55 -07:00
Brad Rydzewski
ff82ed2454 removed debug statements from websocket 2014-10-13 21:10:48 -07:00
Brad Rydzewski
2c122fa891 fix for #554 and #552 2014-10-13 19:33:42 -07:00
Brad Rydzewski
0221442828 less confusing language after activating repository, per #545 2014-10-12 21:52:55 -07:00
Brad Rydzewski
4e5b850c8d altered language for setting up a drone.yml after activating repo 2014-10-12 21:47:42 -07:00
Ciaran Downey
850fbd170a Add JSON struct tags to Work for lowercase props 2014-10-12 20:02:54 -07:00
Brad Rydzewski
3d839498a1 Merge pull request #539 from mjschultz/add-follow
Add follow button to stdout
2014-10-12 18:12:20 -07:00
Brad Rydzewski
629547813c modified parameter injection strategy. see #538 2014-10-12 13:02:53 -07:00
Michael J. Schultz
e0ad97ff97 Add follow button to stdout
- fixed position in stdout window for easy clicking on fast scroll output
2014-10-12 19:33:28 +00:00
Michael J. Schultz
bb8c64b157 Update API endpoint for websockets 2014-10-12 19:33:28 +00:00
Michael J. Schultz
e6ce9b8aec Remove trailing / for rebuild button 2014-10-12 19:33:28 +00:00
Brad Rydzewski
cd1fbe5d85 ability to customize the session secret and expiration 2014-10-11 20:33:06 -07:00
Brad Rydzewski
69580a26c7 change source to datasource, for consistency with Go standard lib 2014-10-11 16:34:53 -07:00
Brad Rydzewski
167eb21b21 modified Docker plugin to use new Condition struct to limit execution 2014-10-11 14:35:06 -07:00
Brad Rydzewski
2080cd3309 hooked up SSL in exp branch 2014-10-11 14:30:51 -07:00
Brad Rydzewski
7a7c5a9c0d added package for routes in an attempt to cleanup main.go 2014-10-09 20:26:51 -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
ecdd001811 prevent PRs from being displayed in build badge 2014-10-09 19:03:11 -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
95aa714616 Merge remote-tracking branch 'origin/exp' into exp 2014-10-05 22:25:13 -07:00
Brad Rydzewski
0f36aaa463 fixed permission insert to use upsert for improved sync 2014-10-05 19:57:33 -07:00
Kirill Zaitsev
9b706b1534 Post login form to GetLogin handler 2014-10-06 02:38:52 +04:00
Brad Rydzewski
e4219a3aac Merge remote-tracking branch 'origin/exp' into exp 2014-10-05 15:31:13 -07:00
Brad Rydzewski
d6e81193f5 added loading buttons 2014-10-05 15:30:50 -07:00
Brad Rydzewski
19b8578200 Merge pull request #506 from Bugagazavr/exp-fix_hooks
Fix hooks
2014-10-02 08:35:18 -07:00
Kirill Zaitsev
d1f8486862 Fix fetch commits in repo page 2014-10-02 18:24:46 +04:00
Kirill Zaitsev
3d8e04c04f Use :host instead :hook, host is required by hook handler 2014-10-02 18:22:42 +04:00
Brad Rydzewski
61c8811847 updated docs for using custom driver 2014-10-01 11:58:27 -07:00
Brad Rydzewski
e725abe204 hooked up commit feed for user dashboard 2014-10-01 11:29:23 -07:00
Brad Rydzewski
5431b8c84b added test for capabilities 2014-10-01 10:09:13 -07:00
Brad Rydzewski
37a5332951 fixed loop on custom map 2014-10-01 09:58:17 -07:00
Brad Rydzewski
a61c19dddc added missing capability item to context to prevent login panic 2014-10-01 09:41:57 -07:00
Brad Rydzewski
6b721f5b98 added unit tests for postgres and mysql 2014-09-30 23:30:42 -07:00
Brad Rydzewski
892703b3f2 fixed go vet issues 2014-09-30 21:44:15 -07:00
Brad Rydzewski
80f7523e9b hooked up custom docker instances from config file 2014-09-30 21:35:30 -07:00
Brad Rydzewski
0be010bb49 storing token in localStorage 2014-09-30 01:05:01 -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
ce052eaaf4 refactored migrate into package one level up 2014-09-28 20:20:35 -07:00
Brad Rydzewski
e5cc46b4dd updated client routes 2014-09-28 18:38:21 -07:00
Brad Rydzewski
21f9aec808 added new handlers and workers 2014-09-28 18:36:24 -07:00
Brad Rydzewski
8993a71df2 added perm logic 2014-09-27 19:11:28 -07:00
Brad Rydzewski
35073c4776 moved sql-based Blobstore to the database package 2014-09-27 13:32:54 -07:00
Brad Rydzewski
d9db7b9a8d added commit and perm unit tests 2014-09-27 13:09:55 -07:00
Brad Rydzewski
ae95232419 ability to drive database test connections from env variables 2014-09-27 12:00:58 -07:00
Brad Rydzewski
d36f82784c added tests for repositories 2014-09-26 00:39:07 -07:00
Brad Rydzewski
54caa88281 moved from datasql to datastore, added unit test for users 2014-09-26 00:10:48 -07:00
Brad Rydzewski
557c730b52 refactoring to use datastore 2014-09-25 01:07:40 -07:00
Brad Rydzewski
ed0024efa1 added blobstore and capability packages 2014-09-24 21:46:09 -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
Brad Rydzewski
3b59f80f98 removed setup page, now redirects to setup instructions (@ readthedocs) 2014-09-24 21:24:52 -07:00
Brad Rydzewski
7a737a5fbb removed un-necessary config database code now that it is file-driven 2014-09-23 20:48:05 -07:00
Brad Rydzewski
97b3b96790 removed ping method that was for testing only 2014-09-23 20:47:27 -07:00
Brad Rydzewski
6f3997f4e1 moved IRC and Webhooks to their own packages
updated email template to include link to build
updated readme to include correct badge
2014-09-09 23:19:04 -07:00
Bugagazavr
39277caac6 Use cdnjs.cloudflare instead yui.yahooapis 2014-09-08 19:31:57 +04:00
Brad Rydzewski
eabe5415bd Merge pull request #449 from Bugagazavr/exp-frontend-enchantments
Rebuild button and fix commit info for bitbucket
2014-09-07 15:34:55 -07:00
Kirill Zaitsev
071fe67af7 Added missing strong 2014-09-08 02:20:21 +04:00
Kirill Zaitsev
4b07aedf67 Add ability to rebuild commit 2014-09-08 02:20:19 +04:00
Brad Rydzewski
55d9dbedcb ability to provide Docker URL endpoints 2014-09-07 14:55:37 -07:00
Brad Rydzewski
34698d9aed Merge pull request #447 from Bugagazavr/exp-commit-info
Clickable commit information
2014-09-07 13:45:41 -07:00
Kirill Zaitsev
9473db2b38 Clickable commit information 2014-09-07 23:31:41 +04:00
Brad Rydzewski
746eea068f cleanup the angular filters 2014-09-07 12:20:53 -07:00
Brad Rydzewski
96e660381f ability to update a repo's public / private key via the REST API 2014-09-06 12:45:27 -07:00
Brad Rydzewski
2448c34c6b added default 1 hour default timeout for projects 2014-09-06 11:10:00 -07:00
Brad Rydzewski
446fb04d49 added registration.open to the configuration 2014-09-04 20:53:32 -07:00
Brad Rydzewski
7305db0c11 re-added priveleged mode to the UI 2014-09-04 20:09:31 -07:00
Brad Rydzewski
eddc11130a added POST handler for gitlab login 2014-09-03 01:12:03 -07:00
Brad Rydzewski
b209355ca5 added gitlab login 2014-09-03 00:43:36 -07:00
Brad Rydzewski
ca3d15bca2 refactored how remotes work and how (some) config is loaded 2014-09-03 00:23:36 -07:00
Brad Rydzewski
38379992bf refactored plugin/remote and adapted @bugBugagazavr Gitlab code 2014-09-02 00:18:17 -07:00
Brad Rydzewski
71dfaa40fb for now, always load from cache on login. Improve logic later 2014-08-31 10:18:09 -07:00
Brad Rydzewski
5a8693e444 updated styles and removed hard lines from commit sections 2014-08-18 23:30:43 -07:00
Brad Rydzewski
056f7e5bc8 adjusted line-height on output, more readable 2014-08-17 23:34:05 -07:00
Brad Rydzewski
255e87c78e fixed filters to display PR section 2014-08-17 23:26:29 -07:00
Brad Rydzewski
920e072e91 added section solely for pull requests 2014-08-17 20:33:14 -07:00
Brad Rydzewski
906ac9e6b9 remove login link from the login page, for UX reasons 2014-08-16 14:04:26 -07:00
Brad Rydzewski
2c15873f37 modified code to redirect user to the login screen on 401 2014-08-16 13:52:33 -07:00
Brad Rydzewski
275e7a3e3d inject private params in PR if private 2014-08-14 23:00:52 -07:00
Brad Rydzewski
6af9d40c4b fixed compile error caused by laziness 2014-08-14 12:49:45 -07:00