{"action":"closed","number":4,"pull_request":{"url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/pulls/4","id":40859847,"html_url":"https://github.com/coopsymbiotic/hosting_restapi/pull/4","diff_url":"https://github.com/coopsymbiotic/hosting_restapi/pull/4.diff","patch_url":"https://github.com/coopsymbiotic/hosting_restapi/pull/4.patch","issue_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/issues/4","number":4,"state":"closed","locked":false,"title":"Make hosting_restapi_check_access more useful","user":{"login":"gboudrias","id":1328358,"avatar_url":"https://avatars.githubusercontent.com/u/1328358?v=3","gravatar_id":"","url":"https://api.github.com/users/gboudrias","html_url":"https://github.com/gboudrias","followers_url":"https://api.github.com/users/gboudrias/followers","following_url":"https://api.github.com/users/gboudrias/following{/other_user}","gists_url":"https://api.github.com/users/gboudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/gboudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gboudrias/subscriptions","organizations_url":"https://api.github.com/users/gboudrias/orgs","repos_url":"https://api.github.com/users/gboudrias/repos","events_url":"https://api.github.com/users/gboudrias/events{/privacy}","received_events_url":"https://api.github.com/users/gboudrias/received_events","type":"User","site_admin":false},"body":"I added a basic API key check in hosting_saas: http://cgit.drupalcode.org/hosting_saas/commit/?id=fb973fa\r\n\r\nRight now we don't actually refuse access when there's no TRUE in the hook, we sort of assume the other module will throw an exception. This change allows the module to not have to do that and just return FALSE.\r\n\r\nCurrent installations should not be affected.\r\n\r\nI also remove the hook_install() that throws an error on install.","created_at":"2015-07-26T21:08:49Z","updated_at":"2016-04-12T14:46:19Z","closed_at":"2016-04-12T14:46:19Z","merged_at":"2016-04-12T14:46:19Z","merge_commit_sha":"ba5d768b826b5163a9d31ec66980de5edf4d99ac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/pulls/4/commits","review_comments_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/pulls/4/comments","review_comment_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/issues/4/comments","statuses_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/statuses/9c433126c1dab6ff43dcbc0e3d2695efb8646c0c","head":{"label":"PraxisLabs:7.x-3.x","ref":"7.x-3.x","sha":"9c433126c1dab6ff43dcbc0e3d2695efb8646c0c","user":{"login":"PraxisLabs","id":6722409,"avatar_url":"https://avatars.githubusercontent.com/u/6722409?v=3","gravatar_id":"","url":"https://api.github.com/users/PraxisLabs","html_url":"https://github.com/PraxisLabs","followers_url":"https://api.github.com/users/PraxisLabs/followers","following_url":"https://api.github.com/users/PraxisLabs/following{/other_user}","gists_url":"https://api.github.com/users/PraxisLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/PraxisLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PraxisLabs/subscriptions","organizations_url":"https://api.github.com/users/PraxisLabs/orgs","repos_url":"https://api.github.com/users/PraxisLabs/repos","events_url":"https://api.github.com/users/PraxisLabs/events{/privacy}","received_events_url":"https://api.github.com/users/PraxisLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":26777096,"name":"hosting_restapi","full_name":"PraxisLabs/hosting_restapi","owner":{"login":"PraxisLabs","id":6722409,"avatar_url":"https://avatars.githubusercontent.com/u/6722409?v=3","gravatar_id":"","url":"https://api.github.com/users/PraxisLabs","html_url":"https://github.com/PraxisLabs","followers_url":"https://api.github.com/users/PraxisLabs/followers","following_url":"https://api.github.com/users/PraxisLabs/following{/other_user}","gists_url":"https://api.github.com/users/PraxisLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/PraxisLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PraxisLabs/subscriptions","organizations_url":"https://api.github.com/users/PraxisLabs/orgs","repos_url":"https://api.github.com/users/PraxisLabs/repos","events_url":"https://api.github.com/users/PraxisLabs/events{/privacy}","received_events_url":"https://api.github.com/users/PraxisLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PraxisLabs/hosting_restapi","description":"","fork":true,"url":"https://api.github.com/repos/PraxisLabs/hosting_restapi","forks_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/forks","keys_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/teams","hooks_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/hooks","issue_events_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/issues/events{/number}","events_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/events","assignees_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/assignees{/user}","branches_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/branches{/branch}","tags_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/tags","blobs_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/statuses/{sha}","languages_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/languages","stargazers_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/stargazers","contributors_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/contributors","subscribers_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/subscribers","subscription_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/subscription","commits_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/contents/{+path}","compare_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/merges","archive_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/downloads","issues_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/issues{/number}","pulls_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/pulls{/number}","milestones_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/milestones{/number}","notifications_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/labels{/name}","releases_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/releases{/id}","deployments_url":"https://api.github.com/repos/PraxisLabs/hosting_restapi/deployments","created_at":"2014-11-17T21:02:12Z","updated_at":"2015-04-28T19:02:42Z","pushed_at":"2015-08-14T18:21:31Z","git_url":"git://github.com/PraxisLabs/hosting_restapi.git","ssh_url":"git@github.com:PraxisLabs/hosting_restapi.git","clone_url":"https://github.com/PraxisLabs/hosting_restapi.git","svn_url":"https://github.com/PraxisLabs/hosting_restapi","homepage":null,"size":164,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"6.x-1.x"}},"base":{"label":"coopsymbiotic:7.x-3.x","ref":"7.x-3.x","sha":"6f8c79e1e0e838a4c761298aaa7ef581d7b6aa0b","user":{"login":"coopsymbiotic","id":8845539,"avatar_url":"https://avatars.githubusercontent.com/u/8845539?v=3","gravatar_id":"","url":"https://api.github.com/users/coopsymbiotic","html_url":"https://github.com/coopsymbiotic","followers_url":"https://api.github.com/users/coopsymbiotic/followers","following_url":"https://api.github.com/users/coopsymbiotic/following{/other_user}","gists_url":"https://api.github.com/users/coopsymbiotic/gists{/gist_id}","starred_url":"https://api.github.com/users/coopsymbiotic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopsymbiotic/subscriptions","organizations_url":"https://api.github.com/users/coopsymbiotic/orgs","repos_url":"https://api.github.com/users/coopsymbiotic/repos","events_url":"https://api.github.com/users/coopsymbiotic/events{/privacy}","received_events_url":"https://api.github.com/users/coopsymbiotic/received_events","type":"Organization","site_admin":false},"repo":{"id":24427507,"name":"hosting_restapi","full_name":"coopsymbiotic/hosting_restapi","owner":{"login":"coopsymbiotic","id":8845539,"avatar_url":"https://avatars.githubusercontent.com/u/8845539?v=3","gravatar_id":"","url":"https://api.github.com/users/coopsymbiotic","html_url":"https://github.com/coopsymbiotic","followers_url":"https://api.github.com/users/coopsymbiotic/followers","following_url":"https://api.github.com/users/coopsymbiotic/following{/other_user}","gists_url":"https://api.github.com/users/coopsymbiotic/gists{/gist_id}","starred_url":"https://api.github.com/users/coopsymbiotic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coopsymbiotic/subscriptions","organizations_url":"https://api.github.com/users/coopsymbiotic/orgs","repos_url":"https://api.github.com/users/coopsymbiotic/repos","events_url":"https://api.github.com/users/coopsymbiotic/events{/privacy}","received_events_url":"https://api.github.com/users/coopsymbiotic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coopsymbiotic/hosting_restapi","description":"","fork":false,"url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi","forks_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/forks","keys_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/teams","hooks_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/hooks","issue_events_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/issues/events{/number}","events_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/events","assignees_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/assignees{/user}","branches_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/branches{/branch}","tags_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/tags","blobs_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/statuses/{sha}","languages_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/languages","stargazers_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/stargazers","contributors_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/contributors","subscribers_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/subscribers","subscription_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/subscription","commits_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/contents/{+path}","compare_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/merges","archive_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/downloads","issues_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/issues{/number}","pulls_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/pulls{/number}","milestones_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/milestones{/number}","notifications_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/labels{/name}","releases_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/releases{/id}","deployments_url":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/deployments","created_at":"2014-09-24T18:34:17Z","updated_at":"2015-12-21T17:16:11Z","pushed_at":"2016-04-12T14:46:19Z","git_url":"git://github.com/coopsymbiotic/hosting_restapi.git","ssh_url":"git@github.com:coopsymbiotic/hosting_restapi.git","clone_url":"https://github.com/coopsymbiotic/hosting_restapi.git","svn_url":"https://github.com/coopsymbiotic/hosting_restapi","homepage":null,"size":201,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"6.x-1.x"}},"_links":{"self":{"href":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/pulls/4"},"html":{"href":"https://github.com/coopsymbiotic/hosting_restapi/pull/4"},"issue":{"href":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/issues/4"},"comments":{"href":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/coopsymbiotic/hosting_restapi/statuses/9c433126c1dab6ff43dcbc0e3d2695efb8646c0c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mlutfy","id":254741,"avatar_url":"https://avatars.githubusercontent.com/u/254741?v=3","gravatar_id":"","url":"https://api.github.com/users/mlutfy","html_url":"https://github.com/mlutfy","followers_url":"https://api.github.com/users/mlutfy/followers","following_url":"https://api.github.com/users/mlutfy/following{/other_user}","gists_url":"https://api.github.com/users/mlutfy/gists{/gist_id}","starred_url":"https://api.github.com/users/mlutfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlutfy/subscriptions","organizations_url":"https://api.github.com/users/mlutfy/orgs","repos_url":"https://api.github.com/users/mlutfy/repos","events_url":"https://api.github.com/users/mlutfy/events{/privacy}","received_events_url":"https://api.github.com/users/mlutfy/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":10,"deletions":10,"changed_files":3}}