{"action":"created","comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments/41183693","id":41183693,"diff_hunk":"@@ -112,6 +112,7 @@ defmodule Kernel.Typespec do\n   `no_return()`           | `none()`\n   `fun()`                 | `(... -> any)`\n   `struct()`              | `%{__struct__: atom()}`\n+  `as_boolean()`          | `as_boolean(any())`","path":"lib/elixir/lib/kernel/typespec.ex","position":4,"original_position":4,"commit_id":"fc1f12ebc982e349203eb2f892fc3eb9890675b4","original_commit_id":"fc1f12ebc982e349203eb2f892fc3eb9890675b4","user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"body":"Thank you. It should be `as_boolean(t) | t` :)","created_at":"2015-10-05T19:06:45Z","updated_at":"2015-10-05T19:06:45Z","html_url":"https://github.com/elixir-lang/elixir/pull/3833#discussion_r41183693","pull_request_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/3833","_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments/41183693"},"html":{"href":"https://github.com/elixir-lang/elixir/pull/3833#discussion_r41183693"},"pull_request":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/3833"}}},"pull_request":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/3833","id":46743700,"html_url":"https://github.com/elixir-lang/elixir/pull/3833","diff_url":"https://github.com/elixir-lang/elixir/pull/3833.diff","patch_url":"https://github.com/elixir-lang/elixir/pull/3833.patch","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3833","number":3833,"state":"open","locked":false,"title":"List `as_boolean/1` under `Kernel.Typespec` built-ins.","user":{"login":"barisbalic","id":196469,"avatar_url":"https://avatars.githubusercontent.com/u/196469?v=3","gravatar_id":"","url":"https://api.github.com/users/barisbalic","html_url":"https://github.com/barisbalic","followers_url":"https://api.github.com/users/barisbalic/followers","following_url":"https://api.github.com/users/barisbalic/following{/other_user}","gists_url":"https://api.github.com/users/barisbalic/gists{/gist_id}","starred_url":"https://api.github.com/users/barisbalic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barisbalic/subscriptions","organizations_url":"https://api.github.com/users/barisbalic/orgs","repos_url":"https://api.github.com/users/barisbalic/repos","events_url":"https://api.github.com/users/barisbalic/events{/privacy}","received_events_url":"https://api.github.com/users/barisbalic/received_events","type":"User","site_admin":false},"body":"Updates the `Kernel.Typespec` moduledoc to include `as_boolean/1` in the built-ins list.\r\n\r\nNot 100% sure the definition is correct, if it is, then this closes #3788. ","created_at":"2015-10-05T04:30:38Z","updated_at":"2015-10-05T19:06:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06af5cf70e2b136635ba7eceb0abece1ef39d922","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/3833/commits","review_comments_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/3833/comments","review_comment_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3833/comments","statuses_url":"https://api.github.com/repos/elixir-lang/elixir/statuses/fc1f12ebc982e349203eb2f892fc3eb9890675b4","head":{"label":"barisbalic:add-as_boolean-to-typespec-docs","ref":"add-as_boolean-to-typespec-docs","sha":"fc1f12ebc982e349203eb2f892fc3eb9890675b4","user":{"login":"barisbalic","id":196469,"avatar_url":"https://avatars.githubusercontent.com/u/196469?v=3","gravatar_id":"","url":"https://api.github.com/users/barisbalic","html_url":"https://github.com/barisbalic","followers_url":"https://api.github.com/users/barisbalic/followers","following_url":"https://api.github.com/users/barisbalic/following{/other_user}","gists_url":"https://api.github.com/users/barisbalic/gists{/gist_id}","starred_url":"https://api.github.com/users/barisbalic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barisbalic/subscriptions","organizations_url":"https://api.github.com/users/barisbalic/orgs","repos_url":"https://api.github.com/users/barisbalic/repos","events_url":"https://api.github.com/users/barisbalic/events{/privacy}","received_events_url":"https://api.github.com/users/barisbalic/received_events","type":"User","site_admin":false},"repo":{"id":43663329,"name":"elixir","full_name":"barisbalic/elixir","owner":{"login":"barisbalic","id":196469,"avatar_url":"https://avatars.githubusercontent.com/u/196469?v=3","gravatar_id":"","url":"https://api.github.com/users/barisbalic","html_url":"https://github.com/barisbalic","followers_url":"https://api.github.com/users/barisbalic/followers","following_url":"https://api.github.com/users/barisbalic/following{/other_user}","gists_url":"https://api.github.com/users/barisbalic/gists{/gist_id}","starred_url":"https://api.github.com/users/barisbalic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barisbalic/subscriptions","organizations_url":"https://api.github.com/users/barisbalic/orgs","repos_url":"https://api.github.com/users/barisbalic/repos","events_url":"https://api.github.com/users/barisbalic/events{/privacy}","received_events_url":"https://api.github.com/users/barisbalic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/barisbalic/elixir","description":"Elixir is a dynamic, functional language designed for building scalable and maintainable applications","fork":true,"url":"https://api.github.com/repos/barisbalic/elixir","forks_url":"https://api.github.com/repos/barisbalic/elixir/forks","keys_url":"https://api.github.com/repos/barisbalic/elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/barisbalic/elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/barisbalic/elixir/teams","hooks_url":"https://api.github.com/repos/barisbalic/elixir/hooks","issue_events_url":"https://api.github.com/repos/barisbalic/elixir/issues/events{/number}","events_url":"https://api.github.com/repos/barisbalic/elixir/events","assignees_url":"https://api.github.com/repos/barisbalic/elixir/assignees{/user}","branches_url":"https://api.github.com/repos/barisbalic/elixir/branches{/branch}","tags_url":"https://api.github.com/repos/barisbalic/elixir/tags","blobs_url":"https://api.github.com/repos/barisbalic/elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/barisbalic/elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/barisbalic/elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/barisbalic/elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/barisbalic/elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/barisbalic/elixir/languages","stargazers_url":"https://api.github.com/repos/barisbalic/elixir/stargazers","contributors_url":"https://api.github.com/repos/barisbalic/elixir/contributors","subscribers_url":"https://api.github.com/repos/barisbalic/elixir/subscribers","subscription_url":"https://api.github.com/repos/barisbalic/elixir/subscription","commits_url":"https://api.github.com/repos/barisbalic/elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/barisbalic/elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/barisbalic/elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/barisbalic/elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/barisbalic/elixir/contents/{+path}","compare_url":"https://api.github.com/repos/barisbalic/elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/barisbalic/elixir/merges","archive_url":"https://api.github.com/repos/barisbalic/elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/barisbalic/elixir/downloads","issues_url":"https://api.github.com/repos/barisbalic/elixir/issues{/number}","pulls_url":"https://api.github.com/repos/barisbalic/elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/barisbalic/elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/barisbalic/elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/barisbalic/elixir/labels{/name}","releases_url":"https://api.github.com/repos/barisbalic/elixir/releases{/id}","created_at":"2015-10-05T03:19:22Z","updated_at":"2015-10-05T03:19:26Z","pushed_at":"2015-10-05T04:07:08Z","git_url":"git://github.com/barisbalic/elixir.git","ssh_url":"git@github.com:barisbalic/elixir.git","clone_url":"https://github.com/barisbalic/elixir.git","svn_url":"https://github.com/barisbalic/elixir","homepage":"http://elixir-lang.org/","size":31626,"stargazers_count":0,"watchers_count":0,"language":"Elixir","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":"elixir-lang:master","ref":"master","sha":"9bcd8439e7ff0277fb27b9a0af9a61434222674d","user":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":1234714,"name":"elixir","full_name":"elixir-lang/elixir","owner":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elixir-lang/elixir","description":"Elixir is a dynamic, functional language designed for building scalable and maintainable applications","fork":false,"url":"https://api.github.com/repos/elixir-lang/elixir","forks_url":"https://api.github.com/repos/elixir-lang/elixir/forks","keys_url":"https://api.github.com/repos/elixir-lang/elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elixir-lang/elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elixir-lang/elixir/teams","hooks_url":"https://api.github.com/repos/elixir-lang/elixir/hooks","issue_events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/events{/number}","events_url":"https://api.github.com/repos/elixir-lang/elixir/events","assignees_url":"https://api.github.com/repos/elixir-lang/elixir/assignees{/user}","branches_url":"https://api.github.com/repos/elixir-lang/elixir/branches{/branch}","tags_url":"https://api.github.com/repos/elixir-lang/elixir/tags","blobs_url":"https://api.github.com/repos/elixir-lang/elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elixir-lang/elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elixir-lang/elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/elixir-lang/elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elixir-lang/elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/elixir-lang/elixir/languages","stargazers_url":"https://api.github.com/repos/elixir-lang/elixir/stargazers","contributors_url":"https://api.github.com/repos/elixir-lang/elixir/contributors","subscribers_url":"https://api.github.com/repos/elixir-lang/elixir/subscribers","subscription_url":"https://api.github.com/repos/elixir-lang/elixir/subscription","commits_url":"https://api.github.com/repos/elixir-lang/elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/elixir-lang/elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/elixir-lang/elixir/contents/{+path}","compare_url":"https://api.github.com/repos/elixir-lang/elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elixir-lang/elixir/merges","archive_url":"https://api.github.com/repos/elixir-lang/elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elixir-lang/elixir/downloads","issues_url":"https://api.github.com/repos/elixir-lang/elixir/issues{/number}","pulls_url":"https://api.github.com/repos/elixir-lang/elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/elixir-lang/elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/elixir-lang/elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elixir-lang/elixir/labels{/name}","releases_url":"https://api.github.com/repos/elixir-lang/elixir/releases{/id}","created_at":"2011-01-09T08:43:57Z","updated_at":"2015-10-05T13:39:33Z","pushed_at":"2015-10-05T16:51:50Z","git_url":"git://github.com/elixir-lang/elixir.git","ssh_url":"git@github.com:elixir-lang/elixir.git","clone_url":"https://github.com/elixir-lang/elixir.git","svn_url":"https://github.com/elixir-lang/elixir","homepage":"http://elixir-lang.org/","size":51013,"stargazers_count":5019,"watchers_count":5019,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":681,"mirror_url":null,"open_issues_count":53,"forks":681,"open_issues":53,"watchers":5019,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/3833"},"html":{"href":"https://github.com/elixir-lang/elixir/pull/3833"},"issue":{"href":"https://api.github.com/repos/elixir-lang/elixir/issues/3833"},"comments":{"href":"https://api.github.com/repos/elixir-lang/elixir/issues/3833/comments"},"review_comments":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/3833/comments"},"review_comment":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/3833/commits"},"statuses":{"href":"https://api.github.com/repos/elixir-lang/elixir/statuses/fc1f12ebc982e349203eb2f892fc3eb9890675b4"}}}}