{"action":"created","comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments/38810209","id":38810209,"diff_hunk":"@@ -21,6 +21,328 @@ defmodule FileTest do\n   use Elixir.FileCase\n   import Regex, only: [escape: 1]\n \n+  defmodule Rename do\n+\n+    # Following erlang's underlying implementation\n+    #\n+    # Renaming files\n+    # :ok               -> rename_file_to_existing_file_default_behaviour\n+    # {:error,:eisdir}  -> rename_file_to_existing_empty_dir\n+    # {:error,:eisdir}  -> rename_file_to_existing_non_empty_dir\n+    # :ok               -> rename_file_to_non_existing_location\n+    # {:error,:eexist}  -> rename_file_to_existing_file\n+    # :ok               -> rename_file_to_itself\n+\n+    # Renaming dirs\n+    # {:error,:enotdir} -> rename_dir_to_existing_file\n+    # :ok               -> rename_dir_to_non_existing_leaf_location\n+    # {:error,??}       -> rename_dir_to_non_existing_parent_location\n+    # :ok               -> rename_dir_to_itself\n+    # :ok               -> rename_dir_to_existing_empty_dir_default_behaviour\n+    # {:error,:eexist}  -> rename_dir_to_existing_empty_dir\n+    # {:error, :einval} -> rename_parent_dir_to_existing_sub_dir\n+    # {:error, :einval} -> rename_parent_dir_to_non_existing_sub_dir\n+    # {:error,:eexist}  -> rename_dir_to_existing_non_empty_dir\n+\n+    # other tests\n+    # {:error, :enoent} -> rename_unknown_source\n+    # :ok               -> rename_preserves_mode\n+    # throw exception   -> rename_dir_to_existing_file_with_bang!\n+\n+    use Elixir.FileCase\n+\n+    test :rename_file_to_existing_file_default_behaviour do\n+      src   = tmp_fixture_path(\"file.txt\")\n+      dest  = tmp_path(\"tmp.file\")\n+\n+      File.write!(dest, \"hello\")\n+\n+      try do\n+        assert File.exists?(dest)\n+        assert File.rename(src, dest) == :ok\n+        refute File.exists?(src)\n+        assert File.read!(dest) == \"FOO\\n\"\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_file_to_existing_empty_dir do\n+      src  = tmp_fixture_path(\"file.txt\")\n+      dest = tmp_path(\"tmp\")\n+\n+      try do\n+        File.mkdir(dest)\n+        assert File.rename(src, dest) == {:error,:eisdir}\n+        assert File.exists?(src)\n+        refute File.exists?(tmp_path(\"tmp/file.txt\"))\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_file_to_existing_non_empty_dir do\n+      src  = tmp_fixture_path(\"file.txt\")\n+      dest = tmp_path(\"tmp\")\n+\n+      try do\n+        File.mkdir_p(Path.join(dest,\"a\"))\n+        assert File.rename(src, dest) == {:error,:eisdir}\n+        assert File.exists?(src)\n+        refute File.exists?(Path.join(dest, \"file.txt\"))\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_file_to_non_existing_location do\n+      src   = tmp_fixture_path(\"file.txt\")\n+      dest  = tmp_path(\"tmp.file\")\n+\n+      try do\n+        refute File.exists?(dest)\n+        assert File.rename(src, dest) == :ok\n+        assert File.exists?(dest)\n+        refute File.exists?(src)\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_file_to_existing_file do\n+      src   = tmp_fixture_path(\"file.txt\")\n+      dest  = tmp_path(\"tmp.file\")\n+\n+      File.write!(dest, \"hello\")\n+\n+      try do\n+        assert File.exists?(dest)\n+        assert File.rename(src, dest) == :ok\n+        refute File.exists?(src)\n+        assert File.read!(dest) == \"FOO\\n\"\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_file_to_itself do\n+      src  = tmp_fixture_path(\"file.txt\")\n+      dest = src\n+\n+      try do\n+        assert File.exists?(src)\n+        assert File.rename(src, dest) == :ok\n+        assert File.exists?(src)\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_dir_to_existing_file do\n+      src   = tmp_fixture_path(\"cp_r\")\n+      dest  = tmp_path(\"tmp.file\")\n+      try do\n+        File.touch(dest)\n+        assert File.rename(src, dest) == {:error, :enotdir}\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_dir_to_non_existing_leaf_location do\n+      src  = tmp_fixture_path(\"cp_r\")\n+      dest = tmp_path(\"tmp\")\n+\n+      try do\n+        refute File.exists?(tmp_path(\"tmp/a/1.txt\"))\n+        refute File.exists?(tmp_path(\"tmp/a/a/2.txt\"))\n+        refute File.exists?(tmp_path(\"tmp/b/3.txt\"))\n+\n+        assert File.rename(src, dest) == :ok\n+        {:ok, files} = File.ls(dest)\n+        assert length(files) == 2\n+        assert \"a\" in files\n+\n+        {:ok, files} = File.ls(tmp_path(\"tmp/a\"))\n+        assert length(files) == 2\n+        assert \"1.txt\" in files\n+\n+        assert File.exists?(tmp_path(\"tmp/a/1.txt\"))\n+        assert File.exists?(tmp_path(\"tmp/a/a/2.txt\"))\n+        assert File.exists?(tmp_path(\"tmp/b/3.txt\"))\n+\n+        refute File.exists?(src)\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_dir_to_non_existing_parent_location do\n+      src  = tmp_fixture_path(\"cp_r\")\n+      dest = tmp_path(\"tmp/a/b\")\n+\n+      try do\n+        assert File.rename(src, dest) == {:error, :enoent}\n+        assert File.exists?(src)\n+        refute File.exists?(dest)\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_dir_to_itself do\n+      src  = tmp_fixture_path(\"cp_r\")\n+      dest = src\n+\n+      try do\n+        assert File.exists?(src)\n+        assert File.rename(src, dest) == :ok\n+        assert File.exists?(src)\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_parent_dir_to_existing_sub_dir do\n+      src  = tmp_fixture_path(\"cp_r\")\n+      dest = tmp_path(\"cp_r/a\")\n+      try do\n+        assert File.exists?(src)\n+        assert File.rename(src, dest) == {:error, :einval}\n+        assert File.exists?(src)\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_parent_dir_to_non_existing_sub_dir do\n+      src  = tmp_fixture_path(\"cp_r\")\n+      dest = tmp_path(\"cp_r/x\")\n+      try do\n+        assert File.exists?(src)\n+        assert File.rename(src, dest) == {:error, :einval}\n+        assert File.exists?(src)\n+        refute File.exists?(dest)\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_dir_to_existing_empty_dir_default_behaviour do\n+      src  = tmp_fixture_path(\"cp_r\")\n+      dest = tmp_path(\"tmp\")\n+\n+      File.mkdir(dest)\n+\n+      try do\n+        refute File.exists?(tmp_path(\"tmp/a\"))\n+\n+        assert File.rename(src, dest) == :ok\n+        {:ok, files} = File.ls(dest)\n+        assert length(files) == 2\n+        assert \"a\" in files\n+\n+        {:ok, files} = File.ls(tmp_path(\"tmp/a\"))\n+        assert length(files) == 2\n+        assert \"1.txt\" in files\n+\n+        assert File.exists?(tmp_path(\"tmp/a/1.txt\"))\n+        assert File.exists?(tmp_path(\"tmp/a/a/2.txt\"))\n+        assert File.exists?(tmp_path(\"tmp/b/3.txt\"))\n+\n+        refute File.exists?(src)\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_dir_to_existing_empty_dir do\n+      src  = tmp_fixture_path(\"cp_r\")\n+      dest = tmp_path(\"tmp\")\n+\n+      File.mkdir(dest)\n+\n+      try do\n+        assert File.exists?(dest)\n+        assert File.rename(src, dest) == :ok\n+        refute File.exists?(src)\n+        assert File.exists?(tmp_path(\"tmp/a\"))\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_dir_to_existing_non_empty_dir do\n+      src  = tmp_fixture_path(\"cp_r\")\n+      dest = tmp_path(\"tmp\")\n+\n+      File.mkdir_p(tmp_path(\"tmp/x\"))\n+\n+      try do\n+        assert File.exists?(tmp_path(\"tmp/x\"))\n+        assert File.exists?(src)\n+        refute File.exists?(tmp_path(\"tmp/a\"))\n+\n+        assert File.rename(src, dest) == {:error,:eexist}\n+\n+        assert File.exists?(tmp_path(\"tmp/x\"))\n+        assert File.exists?(src)\n+        refute File.exists?(tmp_path(\"tmp/a\"))\n+      after\n+        File.rm_rf src\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_unknown_source do\n+      src  = fixture_path(\"unknown\")\n+      dest = tmp_path(\"tmp\")\n+      try do\n+        assert File.rename(src, dest) == {:error, :enoent}\n+      after\n+        File.rm_rf dest\n+      end\n+    end\n+\n+    test :rename_preserves_mode do","path":"lib/elixir/test/elixir/file_test.exs","position":null,"original_position":301,"commit_id":"10827740330e63d29440dffa7ecd44f1512181d7","original_commit_id":"b1206640e27fce741cf2ab4203dc45fce2b58781","user":{"login":"lexmag","id":248290,"avatar_url":"https://avatars.githubusercontent.com/u/248290?v=3","gravatar_id":"","url":"https://api.github.com/users/lexmag","html_url":"https://github.com/lexmag","followers_url":"https://api.github.com/users/lexmag/followers","following_url":"https://api.github.com/users/lexmag/following{/other_user}","gists_url":"https://api.github.com/users/lexmag/gists{/gist_id}","starred_url":"https://api.github.com/users/lexmag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexmag/subscriptions","organizations_url":"https://api.github.com/users/lexmag/orgs","repos_url":"https://api.github.com/users/lexmag/repos","events_url":"https://api.github.com/users/lexmag/events{/privacy}","received_events_url":"https://api.github.com/users/lexmag/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-09-05T12:04:14Z","updated_at":"2015-09-05T12:04:14Z","html_url":"https://github.com/elixir-lang/elixir/pull/3673#discussion_r38810209","pull_request_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/3673","_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments/38810209"},"html":{"href":"https://github.com/elixir-lang/elixir/pull/3673#discussion_r38810209"},"pull_request":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/3673"}}},"pull_request":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/3673","id":44273839,"html_url":"https://github.com/elixir-lang/elixir/pull/3673","diff_url":"https://github.com/elixir-lang/elixir/pull/3673.diff","patch_url":"https://github.com/elixir-lang/elixir/pull/3673.patch","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/3673","number":3673,"state":"open","locked":false,"title":"F/file.rename","user":{"login":"aforward","id":48086,"avatar_url":"https://avatars.githubusercontent.com/u/48086?v=3","gravatar_id":"","url":"https://api.github.com/users/aforward","html_url":"https://github.com/aforward","followers_url":"https://api.github.com/users/aforward/followers","following_url":"https://api.github.com/users/aforward/following{/other_user}","gists_url":"https://api.github.com/users/aforward/gists{/gist_id}","starred_url":"https://api.github.com/users/aforward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aforward/subscriptions","organizations_url":"https://api.github.com/users/aforward/orgs","repos_url":"https://api.github.com/users/aforward/repos","events_url":"https://api.github.com/users/aforward/events{/privacy}","received_events_url":"https://api.github.com/users/aforward/received_events","type":"User","site_admin":false},"body":"This is a follow-up (sorry for delay) adding File.rename based on the underlying erlang semantics.\r\n\r\nHere is a link to the original declined PR\r\nhttps://github.com/elixir-lang/elixir/pull/2722\r\n\r\nHere is the underlying semantics we are following\r\nhttp://www.erlang.org/doc/man/file.html#rename-2\r\n","created_at":"2015-09-05T01:15:07Z","updated_at":"2015-09-05T12:04:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a2da93a4d8ac18c097cf799f9dda5e33af9a5eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/3673/commits","review_comments_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/3673/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/3673/comments","statuses_url":"https://api.github.com/repos/elixir-lang/elixir/statuses/10827740330e63d29440dffa7ecd44f1512181d7","head":{"label":"aforward:f/File.rename","ref":"f/File.rename","sha":"10827740330e63d29440dffa7ecd44f1512181d7","user":{"login":"aforward","id":48086,"avatar_url":"https://avatars.githubusercontent.com/u/48086?v=3","gravatar_id":"","url":"https://api.github.com/users/aforward","html_url":"https://github.com/aforward","followers_url":"https://api.github.com/users/aforward/followers","following_url":"https://api.github.com/users/aforward/following{/other_user}","gists_url":"https://api.github.com/users/aforward/gists{/gist_id}","starred_url":"https://api.github.com/users/aforward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aforward/subscriptions","organizations_url":"https://api.github.com/users/aforward/orgs","repos_url":"https://api.github.com/users/aforward/repos","events_url":"https://api.github.com/users/aforward/events{/privacy}","received_events_url":"https://api.github.com/users/aforward/received_events","type":"User","site_admin":false},"repo":{"id":23376599,"name":"elixir","full_name":"aforward/elixir","owner":{"login":"aforward","id":48086,"avatar_url":"https://avatars.githubusercontent.com/u/48086?v=3","gravatar_id":"","url":"https://api.github.com/users/aforward","html_url":"https://github.com/aforward","followers_url":"https://api.github.com/users/aforward/followers","following_url":"https://api.github.com/users/aforward/following{/other_user}","gists_url":"https://api.github.com/users/aforward/gists{/gist_id}","starred_url":"https://api.github.com/users/aforward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aforward/subscriptions","organizations_url":"https://api.github.com/users/aforward/orgs","repos_url":"https://api.github.com/users/aforward/repos","events_url":"https://api.github.com/users/aforward/events{/privacy}","received_events_url":"https://api.github.com/users/aforward/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aforward/elixir","description":"Elixir is a functional, meta-programming aware language built on top of the Erlang VM. It is a dynamic language that focuses on tooling to leverage Erlang's abilities to build concurrent, distributed and fault-tolerant applications with hot code upgrades","fork":true,"url":"https://api.github.com/repos/aforward/elixir","forks_url":"https://api.github.com/repos/aforward/elixir/forks","keys_url":"https://api.github.com/repos/aforward/elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aforward/elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aforward/elixir/teams","hooks_url":"https://api.github.com/repos/aforward/elixir/hooks","issue_events_url":"https://api.github.com/repos/aforward/elixir/issues/events{/number}","events_url":"https://api.github.com/repos/aforward/elixir/events","assignees_url":"https://api.github.com/repos/aforward/elixir/assignees{/user}","branches_url":"https://api.github.com/repos/aforward/elixir/branches{/branch}","tags_url":"https://api.github.com/repos/aforward/elixir/tags","blobs_url":"https://api.github.com/repos/aforward/elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aforward/elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aforward/elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/aforward/elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aforward/elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/aforward/elixir/languages","stargazers_url":"https://api.github.com/repos/aforward/elixir/stargazers","contributors_url":"https://api.github.com/repos/aforward/elixir/contributors","subscribers_url":"https://api.github.com/repos/aforward/elixir/subscribers","subscription_url":"https://api.github.com/repos/aforward/elixir/subscription","commits_url":"https://api.github.com/repos/aforward/elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/aforward/elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/aforward/elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/aforward/elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/aforward/elixir/contents/{+path}","compare_url":"https://api.github.com/repos/aforward/elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aforward/elixir/merges","archive_url":"https://api.github.com/repos/aforward/elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aforward/elixir/downloads","issues_url":"https://api.github.com/repos/aforward/elixir/issues{/number}","pulls_url":"https://api.github.com/repos/aforward/elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/aforward/elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/aforward/elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aforward/elixir/labels{/name}","releases_url":"https://api.github.com/repos/aforward/elixir/releases{/id}","created_at":"2014-08-27T04:21:42Z","updated_at":"2015-09-04T23:58:26Z","pushed_at":"2015-09-05T12:01:03Z","git_url":"git://github.com/aforward/elixir.git","ssh_url":"git@github.com:aforward/elixir.git","clone_url":"https://github.com/aforward/elixir.git","svn_url":"https://github.com/aforward/elixir","homepage":"http://elixir-lang.org/","size":30146,"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":"d88701e295b87c64bd7de6e09173860e53d045e0","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-09-04T22:33:41Z","pushed_at":"2015-09-05T12:01:04Z","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":49167,"stargazers_count":4701,"watchers_count":4701,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":651,"mirror_url":null,"open_issues_count":44,"forks":651,"open_issues":44,"watchers":4701,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/3673"},"html":{"href":"https://github.com/elixir-lang/elixir/pull/3673"},"issue":{"href":"https://api.github.com/repos/elixir-lang/elixir/issues/3673"},"comments":{"href":"https://api.github.com/repos/elixir-lang/elixir/issues/3673/comments"},"review_comments":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/3673/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/3673/commits"},"statuses":{"href":"https://api.github.com/repos/elixir-lang/elixir/statuses/10827740330e63d29440dffa7ecd44f1512181d7"}}}}