{"action":"created","comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments/65689542","id":65689542,"diff_hunk":"@@ -108,4 +108,29 @@ defmodule Mix.Tasks.Deps.TreeTest do\n       refute_received {:mix_shell, :info, [\"└── deps_on_git_repo ~r/0.2.0/ (\" <> _]}\n     end\n   end\n+\n+  test \"shows the dependency tree in DOT graph format\", context do\n+    Mix.Project.push ConvergedDepsApp\n+\n+    in_tmp context.test, fn ->\n+      Mix.Tasks.Deps.Tree.run([\"--dot\"])\n+      assert_received {:mix_shell, :info, [\"digraph \\\"dependency tree\\\" {\"]}\n+      assert_received {:mix_shell, :info, [\"  \\\"sample\\\" -> \\\"git_repo >= 0.1.0\\\"\"]}\n+      assert_received {:mix_shell, :info, [\"  \\\"sample\\\" -> \\\"deps_on_git_repo 0.2.0\\\"\"]}\n+      refute_received {:mix_shell, :info, [\"  \\\"deps_on_git_repo 0.2.0\\\" -> \\\"git_repo\\\"\"]}\n+      assert_received {:mix_shell, :info, [\"}\"]}\n+\n+      Mix.Tasks.Deps.Get.run([])\n+      Mix.Tasks.Deps.Tree.run([\"--dot\"])\n+      assert_received {:mix_shell, :info, [\"digraph \\\"dependency tree\\\" {\"]}\n+      assert_received {:mix_shell, :info, [\"  \\\"sample\\\" -> \\\"git_repo >= 0.1.0\\\"\"]}\n+      assert_received {:mix_shell, :info, [\"  \\\"sample\\\" -> \\\"deps_on_git_repo 0.2.0\\\"\"]}\n+      assert_received {:mix_shell, :info, [\"  \\\"deps_on_git_repo 0.2.0\\\" -> \\\"git_repo\\\"\"]}\n+      assert_received {:mix_shell, :info, [\"}\"]}\n+    end\n+  after\n+    purge [DepsOnGitRepo.Mixfile, GitRepo.Mixfile]\n+  end\n+","path":"lib/mix/test/mix/tasks/deps.tree_test.exs","position":27,"original_position":27,"commit_id":"7418188e113fa2e646367b9da6841d23584600cc","original_commit_id":"7418188e113fa2e646367b9da6841d23584600cc","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":"✂️","created_at":"2016-06-03T10:48:23Z","updated_at":"2016-06-03T10:48:23Z","html_url":"https://github.com/elixir-lang/elixir/pull/4764#discussion_r65689542","pull_request_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/4764","_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/comments/65689542"},"html":{"href":"https://github.com/elixir-lang/elixir/pull/4764#discussion_r65689542"},"pull_request":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/4764"}}},"pull_request":{"url":"https://api.github.com/repos/elixir-lang/elixir/pulls/4764","id":72448864,"html_url":"https://github.com/elixir-lang/elixir/pull/4764","diff_url":"https://github.com/elixir-lang/elixir/pull/4764.diff","patch_url":"https://github.com/elixir-lang/elixir/pull/4764.patch","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/4764","number":4764,"state":"open","locked":false,"title":"WIP --dot option for `mix app.tree` and `mix deps.tree`","user":{"login":"joshprice","id":9307,"avatar_url":"https://avatars.githubusercontent.com/u/9307?v=3","gravatar_id":"","url":"https://api.github.com/users/joshprice","html_url":"https://github.com/joshprice","followers_url":"https://api.github.com/users/joshprice/followers","following_url":"https://api.github.com/users/joshprice/following{/other_user}","gists_url":"https://api.github.com/users/joshprice/gists{/gist_id}","starred_url":"https://api.github.com/users/joshprice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshprice/subscriptions","organizations_url":"https://api.github.com/users/joshprice/orgs","repos_url":"https://api.github.com/users/joshprice/repos","events_url":"https://api.github.com/users/joshprice/events{/privacy}","received_events_url":"https://api.github.com/users/joshprice/received_events","type":"User","site_admin":false},"body":"Inspired by @josevalim's ElixirConf.EU keynote.\r\n\r\nThis is currently a work in progress, but feedback is more than welcome.\r\n\r\n- [ ] return a string from the utils function so that the caller can write the result to a file\r\n- [ ] if a file is written where should it go? `/tmp/app_tree.dot` or `/tmp/deps_tree.dot`?\r\n- [ ] if a `dot` executable exists should we also make an `.svg`?\r\n\r\n/cc @mootpointer","created_at":"2016-06-03T03:21:40Z","updated_at":"2016-06-03T10:48:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7cc8ff0449c1b3e43dd14056ad2c5f31be39d0df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/4764/commits","review_comments_url":"https://api.github.com/repos/elixir-lang/elixir/pulls/4764/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/4764/comments","statuses_url":"https://api.github.com/repos/elixir-lang/elixir/statuses/7418188e113fa2e646367b9da6841d23584600cc","head":{"label":"joshprice:mix-trees-as-dot-graphs","ref":"mix-trees-as-dot-graphs","sha":"7418188e113fa2e646367b9da6841d23584600cc","user":{"login":"joshprice","id":9307,"avatar_url":"https://avatars.githubusercontent.com/u/9307?v=3","gravatar_id":"","url":"https://api.github.com/users/joshprice","html_url":"https://github.com/joshprice","followers_url":"https://api.github.com/users/joshprice/followers","following_url":"https://api.github.com/users/joshprice/following{/other_user}","gists_url":"https://api.github.com/users/joshprice/gists{/gist_id}","starred_url":"https://api.github.com/users/joshprice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshprice/subscriptions","organizations_url":"https://api.github.com/users/joshprice/orgs","repos_url":"https://api.github.com/users/joshprice/repos","events_url":"https://api.github.com/users/joshprice/events{/privacy}","received_events_url":"https://api.github.com/users/joshprice/received_events","type":"User","site_admin":false},"repo":{"id":47893295,"name":"elixir","full_name":"joshprice/elixir","owner":{"login":"joshprice","id":9307,"avatar_url":"https://avatars.githubusercontent.com/u/9307?v=3","gravatar_id":"","url":"https://api.github.com/users/joshprice","html_url":"https://github.com/joshprice","followers_url":"https://api.github.com/users/joshprice/followers","following_url":"https://api.github.com/users/joshprice/following{/other_user}","gists_url":"https://api.github.com/users/joshprice/gists{/gist_id}","starred_url":"https://api.github.com/users/joshprice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshprice/subscriptions","organizations_url":"https://api.github.com/users/joshprice/orgs","repos_url":"https://api.github.com/users/joshprice/repos","events_url":"https://api.github.com/users/joshprice/events{/privacy}","received_events_url":"https://api.github.com/users/joshprice/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joshprice/elixir","description":"Elixir is a dynamic, functional language designed for building scalable and maintainable applications","fork":true,"url":"https://api.github.com/repos/joshprice/elixir","forks_url":"https://api.github.com/repos/joshprice/elixir/forks","keys_url":"https://api.github.com/repos/joshprice/elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshprice/elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshprice/elixir/teams","hooks_url":"https://api.github.com/repos/joshprice/elixir/hooks","issue_events_url":"https://api.github.com/repos/joshprice/elixir/issues/events{/number}","events_url":"https://api.github.com/repos/joshprice/elixir/events","assignees_url":"https://api.github.com/repos/joshprice/elixir/assignees{/user}","branches_url":"https://api.github.com/repos/joshprice/elixir/branches{/branch}","tags_url":"https://api.github.com/repos/joshprice/elixir/tags","blobs_url":"https://api.github.com/repos/joshprice/elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshprice/elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshprice/elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshprice/elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshprice/elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/joshprice/elixir/languages","stargazers_url":"https://api.github.com/repos/joshprice/elixir/stargazers","contributors_url":"https://api.github.com/repos/joshprice/elixir/contributors","subscribers_url":"https://api.github.com/repos/joshprice/elixir/subscribers","subscription_url":"https://api.github.com/repos/joshprice/elixir/subscription","commits_url":"https://api.github.com/repos/joshprice/elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshprice/elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshprice/elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshprice/elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshprice/elixir/contents/{+path}","compare_url":"https://api.github.com/repos/joshprice/elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshprice/elixir/merges","archive_url":"https://api.github.com/repos/joshprice/elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshprice/elixir/downloads","issues_url":"https://api.github.com/repos/joshprice/elixir/issues{/number}","pulls_url":"https://api.github.com/repos/joshprice/elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/joshprice/elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/joshprice/elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshprice/elixir/labels{/name}","releases_url":"https://api.github.com/repos/joshprice/elixir/releases{/id}","deployments_url":"https://api.github.com/repos/joshprice/elixir/deployments","created_at":"2015-12-12T20:23:59Z","updated_at":"2015-12-12T20:24:01Z","pushed_at":"2016-06-03T07:21:26Z","git_url":"git://github.com/joshprice/elixir.git","ssh_url":"git@github.com:joshprice/elixir.git","clone_url":"https://github.com/joshprice/elixir.git","svn_url":"https://github.com/joshprice/elixir","homepage":"http://elixir-lang.org/","size":35322,"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":"ccf6d14e3ec2eb96090222dad6f395b5b9ab72ac","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}","deployments_url":"https://api.github.com/repos/elixir-lang/elixir/deployments","created_at":"2011-01-09T08:43:57Z","updated_at":"2016-06-03T08:03:01Z","pushed_at":"2016-06-03T10:05:07Z","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":44211,"stargazers_count":7167,"watchers_count":7167,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":989,"mirror_url":null,"open_issues_count":19,"forks":989,"open_issues":19,"watchers":7167,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/4764"},"html":{"href":"https://github.com/elixir-lang/elixir/pull/4764"},"issue":{"href":"https://api.github.com/repos/elixir-lang/elixir/issues/4764"},"comments":{"href":"https://api.github.com/repos/elixir-lang/elixir/issues/4764/comments"},"review_comments":{"href":"https://api.github.com/repos/elixir-lang/elixir/pulls/4764/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/4764/commits"},"statuses":{"href":"https://api.github.com/repos/elixir-lang/elixir/statuses/7418188e113fa2e646367b9da6841d23584600cc"}}}}
{"actor":{"display_login":"lexmag"}}