{"action":"created","comment":{"url":"https://api.github.com/repos/rebar/rebar3/pulls/comments/31384180","id":31384180,"diff_hunk":"@@ -132,7 +132,7 @@ src_dirs(State) -> src_dirs(State, []).\n src_dirs(State, Default) ->\n     ErlOpts = rebar_utils:erl_opts(State),\n     Vs = proplists:get_all_values(src_dirs, ErlOpts),\n-    case lists:append(Vs) of\n+    case lists:append(Vs) ++ rebar_state:get(State, src_dirs, []) of","path":"src/rebar_dir.erl","position":5,"original_position":5,"commit_id":"0e8fee9f370d28dff338a37ea176494454640a8b","original_commit_id":"0e8fee9f370d28dff338a37ea176494454640a8b","user":{"login":"ferd","id":111141,"avatar_url":"https://avatars.githubusercontent.com/u/111141?v=3","gravatar_id":"","url":"https://api.github.com/users/ferd","html_url":"https://github.com/ferd","followers_url":"https://api.github.com/users/ferd/followers","following_url":"https://api.github.com/users/ferd/following{/other_user}","gists_url":"https://api.github.com/users/ferd/gists{/gist_id}","starred_url":"https://api.github.com/users/ferd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferd/subscriptions","organizations_url":"https://api.github.com/users/ferd/orgs","repos_url":"https://api.github.com/users/ferd/repos","events_url":"https://api.github.com/users/ferd/events{/privacy}","received_events_url":"https://api.github.com/users/ferd/received_events","type":"User","site_admin":false},"body":"`lists:append([rebar_state:get(State, src_dirs, []) | Vs])` will be faster.","created_at":"2015-05-30T20:23:53Z","updated_at":"2015-05-30T20:23:53Z","html_url":"https://github.com/rebar/rebar3/pull/483#discussion_r31384180","pull_request_url":"https://api.github.com/repos/rebar/rebar3/pulls/483","_links":{"self":{"href":"https://api.github.com/repos/rebar/rebar3/pulls/comments/31384180"},"html":{"href":"https://github.com/rebar/rebar3/pull/483#discussion_r31384180"},"pull_request":{"href":"https://api.github.com/repos/rebar/rebar3/pulls/483"}}},"pull_request":{"url":"https://api.github.com/repos/rebar/rebar3/pulls/483","id":36571009,"html_url":"https://github.com/rebar/rebar3/pull/483","diff_url":"https://github.com/rebar/rebar3/pull/483.diff","patch_url":"https://github.com/rebar/rebar3/pull/483.patch","issue_url":"https://api.github.com/repos/rebar/rebar3/issues/483","number":483,"state":"open","locked":false,"title":"allow `src_dirs` and `extra_src_dirs` at the root of the rebar config","user":{"login":"talentdeficit","id":4431,"avatar_url":"https://avatars.githubusercontent.com/u/4431?v=3","gravatar_id":"","url":"https://api.github.com/users/talentdeficit","html_url":"https://github.com/talentdeficit","followers_url":"https://api.github.com/users/talentdeficit/followers","following_url":"https://api.github.com/users/talentdeficit/following{/other_user}","gists_url":"https://api.github.com/users/talentdeficit/gists{/gist_id}","starred_url":"https://api.github.com/users/talentdeficit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talentdeficit/subscriptions","organizations_url":"https://api.github.com/users/talentdeficit/orgs","repos_url":"https://api.github.com/users/talentdeficit/repos","events_url":"https://api.github.com/users/talentdeficit/events{/privacy}","received_events_url":"https://api.github.com/users/talentdeficit/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-30T19:54:24Z","updated_at":"2015-05-30T20:23:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"977f9e6f01cfc024aab19ad243c8bf3ee56827e8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rebar/rebar3/pulls/483/commits","review_comments_url":"https://api.github.com/repos/rebar/rebar3/pulls/483/comments","review_comment_url":"https://api.github.com/repos/rebar/rebar3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rebar/rebar3/issues/483/comments","statuses_url":"https://api.github.com/repos/rebar/rebar3/statuses/0e8fee9f370d28dff338a37ea176494454640a8b","head":{"label":"talentdeficit:root_config_src_dirs","ref":"root_config_src_dirs","sha":"0e8fee9f370d28dff338a37ea176494454640a8b","user":{"login":"talentdeficit","id":4431,"avatar_url":"https://avatars.githubusercontent.com/u/4431?v=3","gravatar_id":"","url":"https://api.github.com/users/talentdeficit","html_url":"https://github.com/talentdeficit","followers_url":"https://api.github.com/users/talentdeficit/followers","following_url":"https://api.github.com/users/talentdeficit/following{/other_user}","gists_url":"https://api.github.com/users/talentdeficit/gists{/gist_id}","starred_url":"https://api.github.com/users/talentdeficit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talentdeficit/subscriptions","organizations_url":"https://api.github.com/users/talentdeficit/orgs","repos_url":"https://api.github.com/users/talentdeficit/repos","events_url":"https://api.github.com/users/talentdeficit/events{/privacy}","received_events_url":"https://api.github.com/users/talentdeficit/received_events","type":"User","site_admin":false},"repo":{"id":28110781,"name":"rebar3","full_name":"talentdeficit/rebar3","owner":{"login":"talentdeficit","id":4431,"avatar_url":"https://avatars.githubusercontent.com/u/4431?v=3","gravatar_id":"","url":"https://api.github.com/users/talentdeficit","html_url":"https://github.com/talentdeficit","followers_url":"https://api.github.com/users/talentdeficit/followers","following_url":"https://api.github.com/users/talentdeficit/following{/other_user}","gists_url":"https://api.github.com/users/talentdeficit/gists{/gist_id}","starred_url":"https://api.github.com/users/talentdeficit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talentdeficit/subscriptions","organizations_url":"https://api.github.com/users/talentdeficit/orgs","repos_url":"https://api.github.com/users/talentdeficit/repos","events_url":"https://api.github.com/users/talentdeficit/events{/privacy}","received_events_url":"https://api.github.com/users/talentdeficit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/talentdeficit/rebar3","description":"Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.","fork":true,"url":"https://api.github.com/repos/talentdeficit/rebar3","forks_url":"https://api.github.com/repos/talentdeficit/rebar3/forks","keys_url":"https://api.github.com/repos/talentdeficit/rebar3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/talentdeficit/rebar3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/talentdeficit/rebar3/teams","hooks_url":"https://api.github.com/repos/talentdeficit/rebar3/hooks","issue_events_url":"https://api.github.com/repos/talentdeficit/rebar3/issues/events{/number}","events_url":"https://api.github.com/repos/talentdeficit/rebar3/events","assignees_url":"https://api.github.com/repos/talentdeficit/rebar3/assignees{/user}","branches_url":"https://api.github.com/repos/talentdeficit/rebar3/branches{/branch}","tags_url":"https://api.github.com/repos/talentdeficit/rebar3/tags","blobs_url":"https://api.github.com/repos/talentdeficit/rebar3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/talentdeficit/rebar3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/talentdeficit/rebar3/git/refs{/sha}","trees_url":"https://api.github.com/repos/talentdeficit/rebar3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/talentdeficit/rebar3/statuses/{sha}","languages_url":"https://api.github.com/repos/talentdeficit/rebar3/languages","stargazers_url":"https://api.github.com/repos/talentdeficit/rebar3/stargazers","contributors_url":"https://api.github.com/repos/talentdeficit/rebar3/contributors","subscribers_url":"https://api.github.com/repos/talentdeficit/rebar3/subscribers","subscription_url":"https://api.github.com/repos/talentdeficit/rebar3/subscription","commits_url":"https://api.github.com/repos/talentdeficit/rebar3/commits{/sha}","git_commits_url":"https://api.github.com/repos/talentdeficit/rebar3/git/commits{/sha}","comments_url":"https://api.github.com/repos/talentdeficit/rebar3/comments{/number}","issue_comment_url":"https://api.github.com/repos/talentdeficit/rebar3/issues/comments{/number}","contents_url":"https://api.github.com/repos/talentdeficit/rebar3/contents/{+path}","compare_url":"https://api.github.com/repos/talentdeficit/rebar3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/talentdeficit/rebar3/merges","archive_url":"https://api.github.com/repos/talentdeficit/rebar3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/talentdeficit/rebar3/downloads","issues_url":"https://api.github.com/repos/talentdeficit/rebar3/issues{/number}","pulls_url":"https://api.github.com/repos/talentdeficit/rebar3/pulls{/number}","milestones_url":"https://api.github.com/repos/talentdeficit/rebar3/milestones{/number}","notifications_url":"https://api.github.com/repos/talentdeficit/rebar3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/talentdeficit/rebar3/labels{/name}","releases_url":"https://api.github.com/repos/talentdeficit/rebar3/releases{/id}","created_at":"2014-12-16T22:59:55Z","updated_at":"2015-04-02T06:17:07Z","pushed_at":"2015-05-30T19:51:59Z","git_url":"git://github.com/talentdeficit/rebar3.git","ssh_url":"git@github.com:talentdeficit/rebar3.git","clone_url":"https://github.com/talentdeficit/rebar3.git","svn_url":"https://github.com/talentdeficit/rebar3","homepage":"  http://www.rebar3.org","size":3795,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"rebar:master","ref":"master","sha":"b51a0e314b2fb5a26c99625d025d70bf5c571b23","user":{"login":"rebar","id":2651508,"avatar_url":"https://avatars.githubusercontent.com/u/2651508?v=3","gravatar_id":"","url":"https://api.github.com/users/rebar","html_url":"https://github.com/rebar","followers_url":"https://api.github.com/users/rebar/followers","following_url":"https://api.github.com/users/rebar/following{/other_user}","gists_url":"https://api.github.com/users/rebar/gists{/gist_id}","starred_url":"https://api.github.com/users/rebar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebar/subscriptions","organizations_url":"https://api.github.com/users/rebar/orgs","repos_url":"https://api.github.com/users/rebar/repos","events_url":"https://api.github.com/users/rebar/events{/privacy}","received_events_url":"https://api.github.com/users/rebar/received_events","type":"Organization","site_admin":false},"repo":{"id":26610130,"name":"rebar3","full_name":"rebar/rebar3","owner":{"login":"rebar","id":2651508,"avatar_url":"https://avatars.githubusercontent.com/u/2651508?v=3","gravatar_id":"","url":"https://api.github.com/users/rebar","html_url":"https://github.com/rebar","followers_url":"https://api.github.com/users/rebar/followers","following_url":"https://api.github.com/users/rebar/following{/other_user}","gists_url":"https://api.github.com/users/rebar/gists{/gist_id}","starred_url":"https://api.github.com/users/rebar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebar/subscriptions","organizations_url":"https://api.github.com/users/rebar/orgs","repos_url":"https://api.github.com/users/rebar/repos","events_url":"https://api.github.com/users/rebar/events{/privacy}","received_events_url":"https://api.github.com/users/rebar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rebar/rebar3","description":"Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases.","fork":false,"url":"https://api.github.com/repos/rebar/rebar3","forks_url":"https://api.github.com/repos/rebar/rebar3/forks","keys_url":"https://api.github.com/repos/rebar/rebar3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rebar/rebar3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rebar/rebar3/teams","hooks_url":"https://api.github.com/repos/rebar/rebar3/hooks","issue_events_url":"https://api.github.com/repos/rebar/rebar3/issues/events{/number}","events_url":"https://api.github.com/repos/rebar/rebar3/events","assignees_url":"https://api.github.com/repos/rebar/rebar3/assignees{/user}","branches_url":"https://api.github.com/repos/rebar/rebar3/branches{/branch}","tags_url":"https://api.github.com/repos/rebar/rebar3/tags","blobs_url":"https://api.github.com/repos/rebar/rebar3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rebar/rebar3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rebar/rebar3/git/refs{/sha}","trees_url":"https://api.github.com/repos/rebar/rebar3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rebar/rebar3/statuses/{sha}","languages_url":"https://api.github.com/repos/rebar/rebar3/languages","stargazers_url":"https://api.github.com/repos/rebar/rebar3/stargazers","contributors_url":"https://api.github.com/repos/rebar/rebar3/contributors","subscribers_url":"https://api.github.com/repos/rebar/rebar3/subscribers","subscription_url":"https://api.github.com/repos/rebar/rebar3/subscription","commits_url":"https://api.github.com/repos/rebar/rebar3/commits{/sha}","git_commits_url":"https://api.github.com/repos/rebar/rebar3/git/commits{/sha}","comments_url":"https://api.github.com/repos/rebar/rebar3/comments{/number}","issue_comment_url":"https://api.github.com/repos/rebar/rebar3/issues/comments{/number}","contents_url":"https://api.github.com/repos/rebar/rebar3/contents/{+path}","compare_url":"https://api.github.com/repos/rebar/rebar3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rebar/rebar3/merges","archive_url":"https://api.github.com/repos/rebar/rebar3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rebar/rebar3/downloads","issues_url":"https://api.github.com/repos/rebar/rebar3/issues{/number}","pulls_url":"https://api.github.com/repos/rebar/rebar3/pulls{/number}","milestones_url":"https://api.github.com/repos/rebar/rebar3/milestones{/number}","notifications_url":"https://api.github.com/repos/rebar/rebar3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rebar/rebar3/labels{/name}","releases_url":"https://api.github.com/repos/rebar/rebar3/releases{/id}","created_at":"2014-11-13T22:02:03Z","updated_at":"2015-05-23T05:08:47Z","pushed_at":"2015-05-30T19:54:24Z","git_url":"git://github.com/rebar/rebar3.git","ssh_url":"git@github.com:rebar/rebar3.git","clone_url":"https://github.com/rebar/rebar3.git","svn_url":"https://github.com/rebar/rebar3","homepage":"  http://www.rebar3.org","size":11234,"stargazers_count":136,"watchers_count":136,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":9,"forks":40,"open_issues":9,"watchers":136,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rebar/rebar3/pulls/483"},"html":{"href":"https://github.com/rebar/rebar3/pull/483"},"issue":{"href":"https://api.github.com/repos/rebar/rebar3/issues/483"},"comments":{"href":"https://api.github.com/repos/rebar/rebar3/issues/483/comments"},"review_comments":{"href":"https://api.github.com/repos/rebar/rebar3/pulls/483/comments"},"review_comment":{"href":"https://api.github.com/repos/rebar/rebar3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rebar/rebar3/pulls/483/commits"},"statuses":{"href":"https://api.github.com/repos/rebar/rebar3/statuses/0e8fee9f370d28dff338a37ea176494454640a8b"}}}}