Commit graph

1240 commits

Author SHA1 Message Date
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
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
Brad Rydzewski
4f3f7d03fe Merge pull request #801 from alphagov/fix-typo
Clarify 'sync running' message
2015-01-12 07:59:39 -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
Kirill Zaitsev
ce5d4edca5 Bintray plugin 2015-01-12 16:50:59 +03:00
Brad Rydzewski
68e6d530fb Merge pull request #800 from dave-tucker/toml_gogs
Add Gogs to the config file and Readme
2015-01-11 18:30:26 -08:00
Dave Tucker
9f2849d5ad Add Gogs to the TOML config file
While updating an Ansible module I noticed that while Gogs is supported,
it doesn't appear, commented out, in the TOML file. This commit adds it

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2015-01-12 02:20:18 +00:00
Brad Rydzewski
ae65cf5fdb Merge pull request #797 from mattbostock/go_fmt
Run gofmt and add test to prevent regressions
2015-01-11 11:13:35 -08:00
Brad Rydzewski
254d910a62 Merge pull request #796 from mattbostock/tidy_dependencies
Remove explicit `go get` for rice and goblin pkgs
2015-01-11 11:03:34 -08:00
Matt Bostock
b027bd8392 Run gofmt and add test to prevent regressions
Run `go fmt ./...` [1] and add a test to the `test` make target that
checks if `go fmt` has been run.

[1]: http://blog.golang.org/go-fmt-your-code
2015-01-11 18:54:34 +00:00