{"action":"closed","number":826,"pull_request":{"url":"https://api.github.com/repos/drone/drone/pulls/826","id":27540299,"html_url":"https://github.com/drone/drone/pull/826","diff_url":"https://github.com/drone/drone/pull/826.diff","patch_url":"https://github.com/drone/drone/pull/826.patch","issue_url":"https://api.github.com/repos/drone/drone/issues/826","number":826,"state":"closed","locked":false,"title":"Per-remote open registration","user":{"login":"mattbostock","id":4348848,"avatar_url":"https://avatars.githubusercontent.com/u/4348848?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbostock","html_url":"https://github.com/mattbostock","followers_url":"https://api.github.com/users/mattbostock/followers","following_url":"https://api.github.com/users/mattbostock/following{/other_user}","gists_url":"https://api.github.com/users/mattbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbostock/subscriptions","organizations_url":"https://api.github.com/users/mattbostock/orgs","repos_url":"https://api.github.com/users/mattbostock/repos","events_url":"https://api.github.com/users/mattbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mattbostock/received_events","type":"User","site_admin":false},"body":"...so that it's possible to enable or disable open registration on a\r\nper-remote basis.\r\n\r\nFor example, the `DRONE_REGISTRATION_OPEN` environment variable now\r\nbecomes `DRONE_GITHUB_OPEN` when using GitHub as a remote.\r\n\r\nThe default for open registration in this commit is `false` (disabled),\r\nwhich matches the existing behaviour.\r\n\r\nThis is useful if you need to support both public and private remotes,\r\ne.g. GitHub.com and GitHub Enterprise, where you trust all of the\r\nprivate users and want to allow open registration for those but would\r\nnot want all GitHub.com users to run builds on your server.\r\n\r\nTested with GitHub and GitLab.\r\n\r\n* * *\r\n\r\nAlso, remove the capability package as it's no longer required. This commit can always be reverted later if it's needed again in future.","created_at":"2015-01-16T22:06:31Z","updated_at":"2015-01-17T06:04:51Z","closed_at":"2015-01-17T06:04:51Z","merged_at":"2015-01-17T06:04:51Z","merge_commit_sha":"0d379f70500ec4f3827fdbb04608930463e6e853","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/drone/drone/pulls/826/commits","review_comments_url":"https://api.github.com/repos/drone/drone/pulls/826/comments","review_comment_url":"https://api.github.com/repos/drone/drone/pulls/comments/{number}","comments_url":"https://api.github.com/repos/drone/drone/issues/826/comments","statuses_url":"https://api.github.com/repos/drone/drone/statuses/c48c6ebc88ccfaf9f5b807b6c4e3932e2c2a0e56","head":{"label":"mattbostock:per_plugin_registration","ref":"per_plugin_registration","sha":"c48c6ebc88ccfaf9f5b807b6c4e3932e2c2a0e56","user":{"login":"mattbostock","id":4348848,"avatar_url":"https://avatars.githubusercontent.com/u/4348848?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbostock","html_url":"https://github.com/mattbostock","followers_url":"https://api.github.com/users/mattbostock/followers","following_url":"https://api.github.com/users/mattbostock/following{/other_user}","gists_url":"https://api.github.com/users/mattbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbostock/subscriptions","organizations_url":"https://api.github.com/users/mattbostock/orgs","repos_url":"https://api.github.com/users/mattbostock/repos","events_url":"https://api.github.com/users/mattbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mattbostock/received_events","type":"User","site_admin":false},"repo":{"id":29088117,"name":"drone","full_name":"mattbostock/drone","owner":{"login":"mattbostock","id":4348848,"avatar_url":"https://avatars.githubusercontent.com/u/4348848?v=3","gravatar_id":"","url":"https://api.github.com/users/mattbostock","html_url":"https://github.com/mattbostock","followers_url":"https://api.github.com/users/mattbostock/followers","following_url":"https://api.github.com/users/mattbostock/following{/other_user}","gists_url":"https://api.github.com/users/mattbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbostock/subscriptions","organizations_url":"https://api.github.com/users/mattbostock/orgs","repos_url":"https://api.github.com/users/mattbostock/repos","events_url":"https://api.github.com/users/mattbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mattbostock/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattbostock/drone","description":"Drone is a Continuous Integration platform built on Docker, written in Go","fork":true,"url":"https://api.github.com/repos/mattbostock/drone","forks_url":"https://api.github.com/repos/mattbostock/drone/forks","keys_url":"https://api.github.com/repos/mattbostock/drone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattbostock/drone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattbostock/drone/teams","hooks_url":"https://api.github.com/repos/mattbostock/drone/hooks","issue_events_url":"https://api.github.com/repos/mattbostock/drone/issues/events{/number}","events_url":"https://api.github.com/repos/mattbostock/drone/events","assignees_url":"https://api.github.com/repos/mattbostock/drone/assignees{/user}","branches_url":"https://api.github.com/repos/mattbostock/drone/branches{/branch}","tags_url":"https://api.github.com/repos/mattbostock/drone/tags","blobs_url":"https://api.github.com/repos/mattbostock/drone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattbostock/drone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattbostock/drone/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattbostock/drone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattbostock/drone/statuses/{sha}","languages_url":"https://api.github.com/repos/mattbostock/drone/languages","stargazers_url":"https://api.github.com/repos/mattbostock/drone/stargazers","contributors_url":"https://api.github.com/repos/mattbostock/drone/contributors","subscribers_url":"https://api.github.com/repos/mattbostock/drone/subscribers","subscription_url":"https://api.github.com/repos/mattbostock/drone/subscription","commits_url":"https://api.github.com/repos/mattbostock/drone/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattbostock/drone/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattbostock/drone/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattbostock/drone/issues/comments/{number}","contents_url":"https://api.github.com/repos/mattbostock/drone/contents/{+path}","compare_url":"https://api.github.com/repos/mattbostock/drone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattbostock/drone/merges","archive_url":"https://api.github.com/repos/mattbostock/drone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattbostock/drone/downloads","issues_url":"https://api.github.com/repos/mattbostock/drone/issues{/number}","pulls_url":"https://api.github.com/repos/mattbostock/drone/pulls{/number}","milestones_url":"https://api.github.com/repos/mattbostock/drone/milestones{/number}","notifications_url":"https://api.github.com/repos/mattbostock/drone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattbostock/drone/labels{/name}","releases_url":"https://api.github.com/repos/mattbostock/drone/releases{/id}","created_at":"2015-01-11T10:26:48Z","updated_at":"2015-01-11T10:26:49Z","pushed_at":"2015-01-16T22:05:31Z","git_url":"git://github.com/mattbostock/drone.git","ssh_url":"git@github.com:mattbostock/drone.git","clone_url":"https://github.com/mattbostock/drone.git","svn_url":"https://github.com/mattbostock/drone","homepage":"","size":10567,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"drone:master","ref":"master","sha":"f79762177c93fd143eabaaf413517654fed9e8db","user":{"login":"drone","id":2181346,"avatar_url":"https://avatars.githubusercontent.com/u/2181346?v=3","gravatar_id":"","url":"https://api.github.com/users/drone","html_url":"https://github.com/drone","followers_url":"https://api.github.com/users/drone/followers","following_url":"https://api.github.com/users/drone/following{/other_user}","gists_url":"https://api.github.com/users/drone/gists{/gist_id}","starred_url":"https://api.github.com/users/drone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drone/subscriptions","organizations_url":"https://api.github.com/users/drone/orgs","repos_url":"https://api.github.com/users/drone/repos","events_url":"https://api.github.com/users/drone/events{/privacy}","received_events_url":"https://api.github.com/users/drone/received_events","type":"Organization","site_admin":false},"repo":{"id":16607898,"name":"drone","full_name":"drone/drone","owner":{"login":"drone","id":2181346,"avatar_url":"https://avatars.githubusercontent.com/u/2181346?v=3","gravatar_id":"","url":"https://api.github.com/users/drone","html_url":"https://github.com/drone","followers_url":"https://api.github.com/users/drone/followers","following_url":"https://api.github.com/users/drone/following{/other_user}","gists_url":"https://api.github.com/users/drone/gists{/gist_id}","starred_url":"https://api.github.com/users/drone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drone/subscriptions","organizations_url":"https://api.github.com/users/drone/orgs","repos_url":"https://api.github.com/users/drone/repos","events_url":"https://api.github.com/users/drone/events{/privacy}","received_events_url":"https://api.github.com/users/drone/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/drone/drone","description":"Drone is a Continuous Integration platform built on Docker, written in Go","fork":false,"url":"https://api.github.com/repos/drone/drone","forks_url":"https://api.github.com/repos/drone/drone/forks","keys_url":"https://api.github.com/repos/drone/drone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drone/drone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drone/drone/teams","hooks_url":"https://api.github.com/repos/drone/drone/hooks","issue_events_url":"https://api.github.com/repos/drone/drone/issues/events{/number}","events_url":"https://api.github.com/repos/drone/drone/events","assignees_url":"https://api.github.com/repos/drone/drone/assignees{/user}","branches_url":"https://api.github.com/repos/drone/drone/branches{/branch}","tags_url":"https://api.github.com/repos/drone/drone/tags","blobs_url":"https://api.github.com/repos/drone/drone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drone/drone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drone/drone/git/refs{/sha}","trees_url":"https://api.github.com/repos/drone/drone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drone/drone/statuses/{sha}","languages_url":"https://api.github.com/repos/drone/drone/languages","stargazers_url":"https://api.github.com/repos/drone/drone/stargazers","contributors_url":"https://api.github.com/repos/drone/drone/contributors","subscribers_url":"https://api.github.com/repos/drone/drone/subscribers","subscription_url":"https://api.github.com/repos/drone/drone/subscription","commits_url":"https://api.github.com/repos/drone/drone/commits{/sha}","git_commits_url":"https://api.github.com/repos/drone/drone/git/commits{/sha}","comments_url":"https://api.github.com/repos/drone/drone/comments{/number}","issue_comment_url":"https://api.github.com/repos/drone/drone/issues/comments/{number}","contents_url":"https://api.github.com/repos/drone/drone/contents/{+path}","compare_url":"https://api.github.com/repos/drone/drone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drone/drone/merges","archive_url":"https://api.github.com/repos/drone/drone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drone/drone/downloads","issues_url":"https://api.github.com/repos/drone/drone/issues{/number}","pulls_url":"https://api.github.com/repos/drone/drone/pulls{/number}","milestones_url":"https://api.github.com/repos/drone/drone/milestones{/number}","notifications_url":"https://api.github.com/repos/drone/drone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drone/drone/labels{/name}","releases_url":"https://api.github.com/repos/drone/drone/releases{/id}","created_at":"2014-02-07T07:54:44Z","updated_at":"2015-01-17T05:40:42Z","pushed_at":"2015-01-17T06:04:51Z","git_url":"git://github.com/drone/drone.git","ssh_url":"git@github.com:drone/drone.git","clone_url":"https://github.com/drone/drone.git","svn_url":"https://github.com/drone/drone","homepage":"","size":17884,"stargazers_count":4272,"watchers_count":4272,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":423,"mirror_url":null,"open_issues_count":121,"forks":423,"open_issues":121,"watchers":4272,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/drone/drone/pulls/826"},"html":{"href":"https://github.com/drone/drone/pull/826"},"issue":{"href":"https://api.github.com/repos/drone/drone/issues/826"},"comments":{"href":"https://api.github.com/repos/drone/drone/issues/826/comments"},"review_comments":{"href":"https://api.github.com/repos/drone/drone/pulls/826/comments"},"review_comment":{"href":"https://api.github.com/repos/drone/drone/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/drone/drone/pulls/826/commits"},"statuses":{"href":"https://api.github.com/repos/drone/drone/statuses/c48c6ebc88ccfaf9f5b807b6c4e3932e2c2a0e56"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bradrydzewski","id":817538,"avatar_url":"https://avatars.githubusercontent.com/u/817538?v=3","gravatar_id":"","url":"https://api.github.com/users/bradrydzewski","html_url":"https://github.com/bradrydzewski","followers_url":"https://api.github.com/users/bradrydzewski/followers","following_url":"https://api.github.com/users/bradrydzewski/following{/other_user}","gists_url":"https://api.github.com/users/bradrydzewski/gists{/gist_id}","starred_url":"https://api.github.com/users/bradrydzewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradrydzewski/subscriptions","organizations_url":"https://api.github.com/users/bradrydzewski/orgs","repos_url":"https://api.github.com/users/bradrydzewski/repos","events_url":"https://api.github.com/users/bradrydzewski/events{/privacy}","received_events_url":"https://api.github.com/users/bradrydzewski/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":2,"additions":52,"deletions":122,"changed_files":17}}