{"action":"created","comment":{"url":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/comments/45547249","id":45547249,"diff_hunk":"@@ -33,7 +33,7 @@ defmodule Gatekeeper.DoorTest do\n     company = create_company\n     member = create_member company: company, door_group: door_group\n \n-    assert Door.member_access_allowed? door, member\n+    assert {true, _reason} = Door.member_access_allowed? door, member","path":"test/models/door_test.exs","position":14,"original_position":14,"commit_id":"43b58e957e8094c39aefc6f127dae8e2793c6593","original_commit_id":"43b58e957e8094c39aefc6f127dae8e2793c6593","user":{"login":"benlangfeld","id":210221,"avatar_url":"https://avatars.githubusercontent.com/u/210221?v=3","gravatar_id":"","url":"https://api.github.com/users/benlangfeld","html_url":"https://github.com/benlangfeld","followers_url":"https://api.github.com/users/benlangfeld/followers","following_url":"https://api.github.com/users/benlangfeld/following{/other_user}","gists_url":"https://api.github.com/users/benlangfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/benlangfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlangfeld/subscriptions","organizations_url":"https://api.github.com/users/benlangfeld/orgs","repos_url":"https://api.github.com/users/benlangfeld/repos","events_url":"https://api.github.com/users/benlangfeld/events{/privacy}","received_events_url":"https://api.github.com/users/benlangfeld/received_events","type":"User","site_admin":false},"body":"If you want to enforce that this variable can't be read from:\r\n\r\n```elixir\r\niex(1)> {true, _} = {true, :foo}\r\n{true, :foo}\r\niex(2)> true\r\ntrue\r\niex(3)> _\r\n** (CompileError) iex:3: unbound variable _\r\n```","created_at":"2015-11-21T15:29:18Z","updated_at":"2015-11-21T15:29:18Z","html_url":"https://github.com/alkaloid/gatekeeper/pull/21#discussion_r45547249","pull_request_url":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/comments/45547249"},"html":{"href":"https://github.com/alkaloid/gatekeeper/pull/21#discussion_r45547249"},"pull_request":{"href":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/21","id":51297146,"html_url":"https://github.com/alkaloid/gatekeeper/pull/21","diff_url":"https://github.com/alkaloid/gatekeeper/pull/21.diff","patch_url":"https://github.com/alkaloid/gatekeeper/pull/21.patch","issue_url":"https://api.github.com/repos/alkaloid/gatekeeper/issues/21","number":21,"state":"open","locked":false,"title":"Log a reason for each access denial","user":{"login":"bklang","id":167131,"avatar_url":"https://avatars.githubusercontent.com/u/167131?v=3","gravatar_id":"","url":"https://api.github.com/users/bklang","html_url":"https://github.com/bklang","followers_url":"https://api.github.com/users/bklang/followers","following_url":"https://api.github.com/users/bklang/following{/other_user}","gists_url":"https://api.github.com/users/bklang/gists{/gist_id}","starred_url":"https://api.github.com/users/bklang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bklang/subscriptions","organizations_url":"https://api.github.com/users/bklang/orgs","repos_url":"https://api.github.com/users/bklang/repos","events_url":"https://api.github.com/users/bklang/events{/privacy}","received_events_url":"https://api.github.com/users/bklang/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-19T23:25:35Z","updated_at":"2015-11-21T15:29:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b0183d78e2c67dc978aab882fbbba9e03d5e89d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/21/commits","review_comments_url":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/21/comments","review_comment_url":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alkaloid/gatekeeper/issues/21/comments","statuses_url":"https://api.github.com/repos/alkaloid/gatekeeper/statuses/43b58e957e8094c39aefc6f127dae8e2793c6593","head":{"label":"alkaloid:feature/access_log_reasons","ref":"feature/access_log_reasons","sha":"43b58e957e8094c39aefc6f127dae8e2793c6593","user":{"login":"alkaloid","id":449822,"avatar_url":"https://avatars.githubusercontent.com/u/449822?v=3","gravatar_id":"","url":"https://api.github.com/users/alkaloid","html_url":"https://github.com/alkaloid","followers_url":"https://api.github.com/users/alkaloid/followers","following_url":"https://api.github.com/users/alkaloid/following{/other_user}","gists_url":"https://api.github.com/users/alkaloid/gists{/gist_id}","starred_url":"https://api.github.com/users/alkaloid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alkaloid/subscriptions","organizations_url":"https://api.github.com/users/alkaloid/orgs","repos_url":"https://api.github.com/users/alkaloid/repos","events_url":"https://api.github.com/users/alkaloid/events{/privacy}","received_events_url":"https://api.github.com/users/alkaloid/received_events","type":"Organization","site_admin":false},"repo":{"id":45282478,"name":"gatekeeper","full_name":"alkaloid/gatekeeper","owner":{"login":"alkaloid","id":449822,"avatar_url":"https://avatars.githubusercontent.com/u/449822?v=3","gravatar_id":"","url":"https://api.github.com/users/alkaloid","html_url":"https://github.com/alkaloid","followers_url":"https://api.github.com/users/alkaloid/followers","following_url":"https://api.github.com/users/alkaloid/following{/other_user}","gists_url":"https://api.github.com/users/alkaloid/gists{/gist_id}","starred_url":"https://api.github.com/users/alkaloid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alkaloid/subscriptions","organizations_url":"https://api.github.com/users/alkaloid/orgs","repos_url":"https://api.github.com/users/alkaloid/repos","events_url":"https://api.github.com/users/alkaloid/events{/privacy}","received_events_url":"https://api.github.com/users/alkaloid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alkaloid/gatekeeper","description":"A door security system in Elixir/Phoenix for RaspberryPi","fork":false,"url":"https://api.github.com/repos/alkaloid/gatekeeper","forks_url":"https://api.github.com/repos/alkaloid/gatekeeper/forks","keys_url":"https://api.github.com/repos/alkaloid/gatekeeper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alkaloid/gatekeeper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alkaloid/gatekeeper/teams","hooks_url":"https://api.github.com/repos/alkaloid/gatekeeper/hooks","issue_events_url":"https://api.github.com/repos/alkaloid/gatekeeper/issues/events{/number}","events_url":"https://api.github.com/repos/alkaloid/gatekeeper/events","assignees_url":"https://api.github.com/repos/alkaloid/gatekeeper/assignees{/user}","branches_url":"https://api.github.com/repos/alkaloid/gatekeeper/branches{/branch}","tags_url":"https://api.github.com/repos/alkaloid/gatekeeper/tags","blobs_url":"https://api.github.com/repos/alkaloid/gatekeeper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alkaloid/gatekeeper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alkaloid/gatekeeper/git/refs{/sha}","trees_url":"https://api.github.com/repos/alkaloid/gatekeeper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alkaloid/gatekeeper/statuses/{sha}","languages_url":"https://api.github.com/repos/alkaloid/gatekeeper/languages","stargazers_url":"https://api.github.com/repos/alkaloid/gatekeeper/stargazers","contributors_url":"https://api.github.com/repos/alkaloid/gatekeeper/contributors","subscribers_url":"https://api.github.com/repos/alkaloid/gatekeeper/subscribers","subscription_url":"https://api.github.com/repos/alkaloid/gatekeeper/subscription","commits_url":"https://api.github.com/repos/alkaloid/gatekeeper/commits{/sha}","git_commits_url":"https://api.github.com/repos/alkaloid/gatekeeper/git/commits{/sha}","comments_url":"https://api.github.com/repos/alkaloid/gatekeeper/comments{/number}","issue_comment_url":"https://api.github.com/repos/alkaloid/gatekeeper/issues/comments{/number}","contents_url":"https://api.github.com/repos/alkaloid/gatekeeper/contents/{+path}","compare_url":"https://api.github.com/repos/alkaloid/gatekeeper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alkaloid/gatekeeper/merges","archive_url":"https://api.github.com/repos/alkaloid/gatekeeper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alkaloid/gatekeeper/downloads","issues_url":"https://api.github.com/repos/alkaloid/gatekeeper/issues{/number}","pulls_url":"https://api.github.com/repos/alkaloid/gatekeeper/pulls{/number}","milestones_url":"https://api.github.com/repos/alkaloid/gatekeeper/milestones{/number}","notifications_url":"https://api.github.com/repos/alkaloid/gatekeeper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alkaloid/gatekeeper/labels{/name}","releases_url":"https://api.github.com/repos/alkaloid/gatekeeper/releases{/id}","created_at":"2015-10-31T00:08:26Z","updated_at":"2015-11-01T17:10:53Z","pushed_at":"2015-11-21T15:22:22Z","git_url":"git://github.com/alkaloid/gatekeeper.git","ssh_url":"git@github.com:alkaloid/gatekeeper.git","clone_url":"https://github.com/alkaloid/gatekeeper.git","svn_url":"https://github.com/alkaloid/gatekeeper","homepage":"http://alkaloid.net/","size":2873,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"alkaloid:master","ref":"master","sha":"d21d4d71442d71ecf98dd1cf292ce3559dd73ca3","user":{"login":"alkaloid","id":449822,"avatar_url":"https://avatars.githubusercontent.com/u/449822?v=3","gravatar_id":"","url":"https://api.github.com/users/alkaloid","html_url":"https://github.com/alkaloid","followers_url":"https://api.github.com/users/alkaloid/followers","following_url":"https://api.github.com/users/alkaloid/following{/other_user}","gists_url":"https://api.github.com/users/alkaloid/gists{/gist_id}","starred_url":"https://api.github.com/users/alkaloid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alkaloid/subscriptions","organizations_url":"https://api.github.com/users/alkaloid/orgs","repos_url":"https://api.github.com/users/alkaloid/repos","events_url":"https://api.github.com/users/alkaloid/events{/privacy}","received_events_url":"https://api.github.com/users/alkaloid/received_events","type":"Organization","site_admin":false},"repo":{"id":45282478,"name":"gatekeeper","full_name":"alkaloid/gatekeeper","owner":{"login":"alkaloid","id":449822,"avatar_url":"https://avatars.githubusercontent.com/u/449822?v=3","gravatar_id":"","url":"https://api.github.com/users/alkaloid","html_url":"https://github.com/alkaloid","followers_url":"https://api.github.com/users/alkaloid/followers","following_url":"https://api.github.com/users/alkaloid/following{/other_user}","gists_url":"https://api.github.com/users/alkaloid/gists{/gist_id}","starred_url":"https://api.github.com/users/alkaloid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alkaloid/subscriptions","organizations_url":"https://api.github.com/users/alkaloid/orgs","repos_url":"https://api.github.com/users/alkaloid/repos","events_url":"https://api.github.com/users/alkaloid/events{/privacy}","received_events_url":"https://api.github.com/users/alkaloid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alkaloid/gatekeeper","description":"A door security system in Elixir/Phoenix for RaspberryPi","fork":false,"url":"https://api.github.com/repos/alkaloid/gatekeeper","forks_url":"https://api.github.com/repos/alkaloid/gatekeeper/forks","keys_url":"https://api.github.com/repos/alkaloid/gatekeeper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alkaloid/gatekeeper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alkaloid/gatekeeper/teams","hooks_url":"https://api.github.com/repos/alkaloid/gatekeeper/hooks","issue_events_url":"https://api.github.com/repos/alkaloid/gatekeeper/issues/events{/number}","events_url":"https://api.github.com/repos/alkaloid/gatekeeper/events","assignees_url":"https://api.github.com/repos/alkaloid/gatekeeper/assignees{/user}","branches_url":"https://api.github.com/repos/alkaloid/gatekeeper/branches{/branch}","tags_url":"https://api.github.com/repos/alkaloid/gatekeeper/tags","blobs_url":"https://api.github.com/repos/alkaloid/gatekeeper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alkaloid/gatekeeper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alkaloid/gatekeeper/git/refs{/sha}","trees_url":"https://api.github.com/repos/alkaloid/gatekeeper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alkaloid/gatekeeper/statuses/{sha}","languages_url":"https://api.github.com/repos/alkaloid/gatekeeper/languages","stargazers_url":"https://api.github.com/repos/alkaloid/gatekeeper/stargazers","contributors_url":"https://api.github.com/repos/alkaloid/gatekeeper/contributors","subscribers_url":"https://api.github.com/repos/alkaloid/gatekeeper/subscribers","subscription_url":"https://api.github.com/repos/alkaloid/gatekeeper/subscription","commits_url":"https://api.github.com/repos/alkaloid/gatekeeper/commits{/sha}","git_commits_url":"https://api.github.com/repos/alkaloid/gatekeeper/git/commits{/sha}","comments_url":"https://api.github.com/repos/alkaloid/gatekeeper/comments{/number}","issue_comment_url":"https://api.github.com/repos/alkaloid/gatekeeper/issues/comments{/number}","contents_url":"https://api.github.com/repos/alkaloid/gatekeeper/contents/{+path}","compare_url":"https://api.github.com/repos/alkaloid/gatekeeper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alkaloid/gatekeeper/merges","archive_url":"https://api.github.com/repos/alkaloid/gatekeeper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alkaloid/gatekeeper/downloads","issues_url":"https://api.github.com/repos/alkaloid/gatekeeper/issues{/number}","pulls_url":"https://api.github.com/repos/alkaloid/gatekeeper/pulls{/number}","milestones_url":"https://api.github.com/repos/alkaloid/gatekeeper/milestones{/number}","notifications_url":"https://api.github.com/repos/alkaloid/gatekeeper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alkaloid/gatekeeper/labels{/name}","releases_url":"https://api.github.com/repos/alkaloid/gatekeeper/releases{/id}","created_at":"2015-10-31T00:08:26Z","updated_at":"2015-11-01T17:10:53Z","pushed_at":"2015-11-21T15:22:22Z","git_url":"git://github.com/alkaloid/gatekeeper.git","ssh_url":"git@github.com:alkaloid/gatekeeper.git","clone_url":"https://github.com/alkaloid/gatekeeper.git","svn_url":"https://github.com/alkaloid/gatekeeper","homepage":"http://alkaloid.net/","size":2873,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/21"},"html":{"href":"https://github.com/alkaloid/gatekeeper/pull/21"},"issue":{"href":"https://api.github.com/repos/alkaloid/gatekeeper/issues/21"},"comments":{"href":"https://api.github.com/repos/alkaloid/gatekeeper/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alkaloid/gatekeeper/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/alkaloid/gatekeeper/statuses/43b58e957e8094c39aefc6f127dae8e2793c6593"}}}}