Commit graph

1451 commits

Author SHA1 Message Date
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
Brad Rydzewski
e6bcae2e1d Merge pull request #853 from Bugagazavr/gitlab-ouath
Refresh tokens before any requests to remote
2015-01-26 18:40:15 -08:00
Kirill Zaitsev
d225181a0f Refresh tokens before any requests to remote 2015-01-27 02:33:27 +03:00
Brad Rydzewski
9aa6c92e90 Merge pull request #847 from udzura/master
Getting github orgs more than 30
2015-01-26 15:07:33 -08:00
Uchio KONDO
6699770e76 Fix loop to be consistent with the others 2015-01-26 16:20:53 +09:00
Uchio KONDO
e4efc039c9 Merge remote-tracking branch 'origin/master' 2015-01-26 15:51:09 +09:00
Brad Rydzewski
7c13fdac79 Merge pull request #846 from Bugagazavr/gitlab-ouath
Gitlab oauth login
2015-01-25 22:42:14 -08:00
Brad Rydzewski
35acc48dd1 Merge pull request #848 from bradrydzewski/master
vendored flowdock dependency
2015-01-25 22:39:23 -08:00
Brad Rydzewski
6add452168 vendored flowdock dependency 2015-01-25 22:35:14 -08:00
Uchio KONDO
bcb8b17c32 Get github orgs over 30 2015-01-26 14:56:30 +09: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
Brad Rydzewski
44c5ca2b55 Merge pull request #845 from shawnzhu/npm
publish npm package if not exist on registry #799
2015-01-22 18:13:09 -08:00
Ke Zhu
25f1e24ce0 publish npm package if not exist on registry #799 2015-01-22 20:42:32 -05:00
Brad Rydzewski
46955db3bd Merge pull request #844 from andy-g/exclude_pr_from_branches
Exclude Pull Requests from the branches.
2015-01-22 09:00:08 -08: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
Brad Rydzewski
8408cfd055 Merge pull request #834 from shawnzhu/npm
npm publish only when version not exist
2015-01-21 20:09:42 -08:00
Brad Rydzewski
1ec5ac963d Merge pull request #843 from bradrydzewski/master
added apt-get update to yaml prior to installing packages
2015-01-21 07:52:52 -08:00
Brad Rydzewski
5c9b5f65b9 added apt-get update to yaml prior to installing packages 2015-01-21 07:40:27 -08:00
Ke Zhu
d860133d28 npm publish only when version not exist 2015-01-20 10:32:49 -05: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
Brad Rydzewski
b44bdd7ac7 Merge pull request #826 from mattbostock/per_plugin_registration
Per-remote open registration
2015-01-16 22:04:51 -08:00
Brad Rydzewski
3e8fdf0ea7 Merge pull request #788 from gregory90/docker-publish-pull
Always pull newest base image when using docker publish plugin
2015-01-16 21:40:41 -08:00
Brad Rydzewski
11e7ea7e15 Merge pull request #824 from orjanbruland/master
Use Slug instead of Name for Bitbucket repos.
2015-01-16 21:22:39 -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
Ørjan Bruland
570a23f952 Use Slug instead of Name for Bitbucket repos. 2015-01-16 17:36:56 +01:00
Brad Rydzewski
f79762177c Merge pull request #820 from dcarley/github_whitelist_orgs
Support org whitelists for GitHub+GHE remotes
2015-01-15 21:50:01 -08:00
Brad Rydzewski
2dba3c2309 Merge pull request #823 from bradrydzewski/master
fixed #822
2015-01-15 21:45:25 -08:00
Brad Rydzewski
5dd08030e3 fixed #822 2015-01-15 21:35:38 -08:00
Dan Carley
8fa473b07a Support org whitelists for GitHub+GHE remotes
Allow the GitHub and GitHub Enterprise remotes to restrict who can login
based on a user's organisation membership. This can be used as a safe
addition to open registration and also ensures that access is revoked when a
user is subsequently removed from the org. The default is not to restrict at
all.
2015-01-15 17:05:53 +00:00
Dan Carley
789adf90e4 Add test for GitHub remote Authorize()
To test that it correctly authorises a valid user, prior to me extending it.
This only tests the happy path because simulating oAuth failures is going
to be quite hard at this stage.
2015-01-15 14:54:27 +00:00
Dan Carley
a608f5ef82 Add test for GitHub remote GetOrgs() helper
I'm about to re-use this in another helper, so test that it works as
expected. Also fix the inline documentation which was copied from
`GetOrgRepos`.
2015-01-15 14:54:27 +00:00
Dan Carley
86b0329d57 Change org name in GitHub testdata
The example JSON taken from GitHub's API documentation doesn't indicate that
`login` is the name of an organisation rather than a user. Change it to
something that looks more like an org, because it will make a test that I'm
about to add more readable. The endpoint name changes accordingly.
2015-01-15 14:54:26 +00:00
Brad Rydzewski
f33b6efb74 Merge pull request #818 from bradrydzewski/master
fixed incorrect method for GetRepo in Drone client
2015-01-15 02:07:18 -08: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
f209d126db fixed govet issue 2015-01-13 23:32:25 -08:00
Brad Rydzewski
27640db7a3 fixed dep in docker_test.go 2015-01-13 23:24:23 -08:00
Brad Rydzewski
97d80a43b7 fixed dep issue 2015-01-13 23:18:31 -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
ff127f0349 webhook payload should include the host URL 2015-01-13 21:57:30 -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
881dcb153e Merge remote-tracking branch 'upstream/master' 2015-01-13 21:55:29 -08:00
Brad Rydzewski
83d1d6ada9 Merge pull request #781 from bradrydzewski/master
Change SSH Key Pair (issue #61)
2015-01-13 21:55:02 -08:00
Brad Rydzewski
1627d5f5da Merge pull request #802 from Bugagazavr/bintray
Bintray
2015-01-13 09:10:50 -08:00