{"action":"created","comment":{"url":"https://api.github.com/repos/oli-g/chuper/pulls/comments/34955119","id":34955119,"diff_hunk":"@@ -122,10 +142,22 @@ func (c *Crawler) EnqueueWithSource(method string, URL string, sourceURL string)\n \t\tif err != nil {\n \t\t\treturn ok, err\n \t\t}\n-\t\tcmd := Cmd{&fetchbot.Cmd{U: u, M: \"GET\"}, s}\n-\t\terr = c.q.Send(cmd)\n-\t\treturn ok, err\n+\n+\t\tif c.BasicAuthUser != \"\" && c.BasicAuthPass != \"\" {\n+\t\t\tcmd := &CmdBasicAuth{&fetchbot.Cmd{U: u, M: method}, s, c.BasicAuthUser, c.BasicAuthPass}","path":"crawler.go","position":53,"original_position":53,"commit_id":"ae2e08f5019a2653597ec6990c66ca27098d64bf","original_commit_id":"ae2e08f5019a2653597ec6990c66ca27098d64bf","user":{"login":"sluceno","id":2083038,"avatar_url":"https://avatars.githubusercontent.com/u/2083038?v=3","gravatar_id":"","url":"https://api.github.com/users/sluceno","html_url":"https://github.com/sluceno","followers_url":"https://api.github.com/users/sluceno/followers","following_url":"https://api.github.com/users/sluceno/following{/other_user}","gists_url":"https://api.github.com/users/sluceno/gists{/gist_id}","starred_url":"https://api.github.com/users/sluceno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sluceno/subscriptions","organizations_url":"https://api.github.com/users/sluceno/orgs","repos_url":"https://api.github.com/users/sluceno/repos","events_url":"https://api.github.com/users/sluceno/events{/privacy}","received_events_url":"https://api.github.com/users/sluceno/received_events","type":"User","site_admin":false},"body":"The commands are different types.","created_at":"2015-07-19T06:09:07Z","updated_at":"2015-07-19T06:09:07Z","html_url":"https://github.com/oli-g/chuper/pull/1#discussion_r34955119","pull_request_url":"https://api.github.com/repos/oli-g/chuper/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/oli-g/chuper/pulls/comments/34955119"},"html":{"href":"https://github.com/oli-g/chuper/pull/1#discussion_r34955119"},"pull_request":{"href":"https://api.github.com/repos/oli-g/chuper/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/oli-g/chuper/pulls/1","id":39767399,"html_url":"https://github.com/oli-g/chuper/pull/1","diff_url":"https://github.com/oli-g/chuper/pull/1.diff","patch_url":"https://github.com/oli-g/chuper/pull/1.patch","issue_url":"https://api.github.com/repos/oli-g/chuper/issues/1","number":1,"state":"open","locked":false,"title":"Add Basic Auth Support","user":{"login":"sluceno","id":2083038,"avatar_url":"https://avatars.githubusercontent.com/u/2083038?v=3","gravatar_id":"","url":"https://api.github.com/users/sluceno","html_url":"https://github.com/sluceno","followers_url":"https://api.github.com/users/sluceno/followers","following_url":"https://api.github.com/users/sluceno/following{/other_user}","gists_url":"https://api.github.com/users/sluceno/gists{/gist_id}","starred_url":"https://api.github.com/users/sluceno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sluceno/subscriptions","organizations_url":"https://api.github.com/users/sluceno/orgs","repos_url":"https://api.github.com/users/sluceno/repos","events_url":"https://api.github.com/users/sluceno/events{/privacy}","received_events_url":"https://api.github.com/users/sluceno/received_events","type":"User","site_admin":false},"body":"This PR adds BasicAuth support for chuper","created_at":"2015-07-12T19:42:47Z","updated_at":"2015-07-19T06:09:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9213a12eda02e741449bc4f3a2472bf041d1dafd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/oli-g/chuper/pulls/1/commits","review_comments_url":"https://api.github.com/repos/oli-g/chuper/pulls/1/comments","review_comment_url":"https://api.github.com/repos/oli-g/chuper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oli-g/chuper/issues/1/comments","statuses_url":"https://api.github.com/repos/oli-g/chuper/statuses/ae2e08f5019a2653597ec6990c66ca27098d64bf","head":{"label":"sluceno:feature/add_basic_auth","ref":"feature/add_basic_auth","sha":"ae2e08f5019a2653597ec6990c66ca27098d64bf","user":{"login":"sluceno","id":2083038,"avatar_url":"https://avatars.githubusercontent.com/u/2083038?v=3","gravatar_id":"","url":"https://api.github.com/users/sluceno","html_url":"https://github.com/sluceno","followers_url":"https://api.github.com/users/sluceno/followers","following_url":"https://api.github.com/users/sluceno/following{/other_user}","gists_url":"https://api.github.com/users/sluceno/gists{/gist_id}","starred_url":"https://api.github.com/users/sluceno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sluceno/subscriptions","organizations_url":"https://api.github.com/users/sluceno/orgs","repos_url":"https://api.github.com/users/sluceno/repos","events_url":"https://api.github.com/users/sluceno/events{/privacy}","received_events_url":"https://api.github.com/users/sluceno/received_events","type":"User","site_admin":false},"repo":{"id":38974353,"name":"chuper","full_name":"sluceno/chuper","owner":{"login":"sluceno","id":2083038,"avatar_url":"https://avatars.githubusercontent.com/u/2083038?v=3","gravatar_id":"","url":"https://api.github.com/users/sluceno","html_url":"https://github.com/sluceno","followers_url":"https://api.github.com/users/sluceno/followers","following_url":"https://api.github.com/users/sluceno/following{/other_user}","gists_url":"https://api.github.com/users/sluceno/gists{/gist_id}","starred_url":"https://api.github.com/users/sluceno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sluceno/subscriptions","organizations_url":"https://api.github.com/users/sluceno/orgs","repos_url":"https://api.github.com/users/sluceno/repos","events_url":"https://api.github.com/users/sluceno/events{/privacy}","received_events_url":"https://api.github.com/users/sluceno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sluceno/chuper","description":"A simple and extensible web crawler built on top of fetchbot.","fork":true,"url":"https://api.github.com/repos/sluceno/chuper","forks_url":"https://api.github.com/repos/sluceno/chuper/forks","keys_url":"https://api.github.com/repos/sluceno/chuper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sluceno/chuper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sluceno/chuper/teams","hooks_url":"https://api.github.com/repos/sluceno/chuper/hooks","issue_events_url":"https://api.github.com/repos/sluceno/chuper/issues/events{/number}","events_url":"https://api.github.com/repos/sluceno/chuper/events","assignees_url":"https://api.github.com/repos/sluceno/chuper/assignees{/user}","branches_url":"https://api.github.com/repos/sluceno/chuper/branches{/branch}","tags_url":"https://api.github.com/repos/sluceno/chuper/tags","blobs_url":"https://api.github.com/repos/sluceno/chuper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sluceno/chuper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sluceno/chuper/git/refs{/sha}","trees_url":"https://api.github.com/repos/sluceno/chuper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sluceno/chuper/statuses/{sha}","languages_url":"https://api.github.com/repos/sluceno/chuper/languages","stargazers_url":"https://api.github.com/repos/sluceno/chuper/stargazers","contributors_url":"https://api.github.com/repos/sluceno/chuper/contributors","subscribers_url":"https://api.github.com/repos/sluceno/chuper/subscribers","subscription_url":"https://api.github.com/repos/sluceno/chuper/subscription","commits_url":"https://api.github.com/repos/sluceno/chuper/commits{/sha}","git_commits_url":"https://api.github.com/repos/sluceno/chuper/git/commits{/sha}","comments_url":"https://api.github.com/repos/sluceno/chuper/comments{/number}","issue_comment_url":"https://api.github.com/repos/sluceno/chuper/issues/comments{/number}","contents_url":"https://api.github.com/repos/sluceno/chuper/contents/{+path}","compare_url":"https://api.github.com/repos/sluceno/chuper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sluceno/chuper/merges","archive_url":"https://api.github.com/repos/sluceno/chuper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sluceno/chuper/downloads","issues_url":"https://api.github.com/repos/sluceno/chuper/issues{/number}","pulls_url":"https://api.github.com/repos/sluceno/chuper/pulls{/number}","milestones_url":"https://api.github.com/repos/sluceno/chuper/milestones{/number}","notifications_url":"https://api.github.com/repos/sluceno/chuper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sluceno/chuper/labels{/name}","releases_url":"https://api.github.com/repos/sluceno/chuper/releases{/id}","created_at":"2015-07-12T19:11:53Z","updated_at":"2015-07-12T19:11:54Z","pushed_at":"2015-07-18T15:55:10Z","git_url":"git://github.com/sluceno/chuper.git","ssh_url":"git@github.com:sluceno/chuper.git","clone_url":"https://github.com/sluceno/chuper.git","svn_url":"https://github.com/sluceno/chuper","homepage":null,"size":94,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"oli-g:master","ref":"master","sha":"02ccb52432607145a336945226ac21e398372815","user":{"login":"oli-g","id":440821,"avatar_url":"https://avatars.githubusercontent.com/u/440821?v=3","gravatar_id":"","url":"https://api.github.com/users/oli-g","html_url":"https://github.com/oli-g","followers_url":"https://api.github.com/users/oli-g/followers","following_url":"https://api.github.com/users/oli-g/following{/other_user}","gists_url":"https://api.github.com/users/oli-g/gists{/gist_id}","starred_url":"https://api.github.com/users/oli-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli-g/subscriptions","organizations_url":"https://api.github.com/users/oli-g/orgs","repos_url":"https://api.github.com/users/oli-g/repos","events_url":"https://api.github.com/users/oli-g/events{/privacy}","received_events_url":"https://api.github.com/users/oli-g/received_events","type":"User","site_admin":false},"repo":{"id":36399637,"name":"chuper","full_name":"oli-g/chuper","owner":{"login":"oli-g","id":440821,"avatar_url":"https://avatars.githubusercontent.com/u/440821?v=3","gravatar_id":"","url":"https://api.github.com/users/oli-g","html_url":"https://github.com/oli-g","followers_url":"https://api.github.com/users/oli-g/followers","following_url":"https://api.github.com/users/oli-g/following{/other_user}","gists_url":"https://api.github.com/users/oli-g/gists{/gist_id}","starred_url":"https://api.github.com/users/oli-g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli-g/subscriptions","organizations_url":"https://api.github.com/users/oli-g/orgs","repos_url":"https://api.github.com/users/oli-g/repos","events_url":"https://api.github.com/users/oli-g/events{/privacy}","received_events_url":"https://api.github.com/users/oli-g/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oli-g/chuper","description":"A simple and extensible web crawler built on top of fetchbot.","fork":false,"url":"https://api.github.com/repos/oli-g/chuper","forks_url":"https://api.github.com/repos/oli-g/chuper/forks","keys_url":"https://api.github.com/repos/oli-g/chuper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oli-g/chuper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oli-g/chuper/teams","hooks_url":"https://api.github.com/repos/oli-g/chuper/hooks","issue_events_url":"https://api.github.com/repos/oli-g/chuper/issues/events{/number}","events_url":"https://api.github.com/repos/oli-g/chuper/events","assignees_url":"https://api.github.com/repos/oli-g/chuper/assignees{/user}","branches_url":"https://api.github.com/repos/oli-g/chuper/branches{/branch}","tags_url":"https://api.github.com/repos/oli-g/chuper/tags","blobs_url":"https://api.github.com/repos/oli-g/chuper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oli-g/chuper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oli-g/chuper/git/refs{/sha}","trees_url":"https://api.github.com/repos/oli-g/chuper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oli-g/chuper/statuses/{sha}","languages_url":"https://api.github.com/repos/oli-g/chuper/languages","stargazers_url":"https://api.github.com/repos/oli-g/chuper/stargazers","contributors_url":"https://api.github.com/repos/oli-g/chuper/contributors","subscribers_url":"https://api.github.com/repos/oli-g/chuper/subscribers","subscription_url":"https://api.github.com/repos/oli-g/chuper/subscription","commits_url":"https://api.github.com/repos/oli-g/chuper/commits{/sha}","git_commits_url":"https://api.github.com/repos/oli-g/chuper/git/commits{/sha}","comments_url":"https://api.github.com/repos/oli-g/chuper/comments{/number}","issue_comment_url":"https://api.github.com/repos/oli-g/chuper/issues/comments{/number}","contents_url":"https://api.github.com/repos/oli-g/chuper/contents/{+path}","compare_url":"https://api.github.com/repos/oli-g/chuper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oli-g/chuper/merges","archive_url":"https://api.github.com/repos/oli-g/chuper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oli-g/chuper/downloads","issues_url":"https://api.github.com/repos/oli-g/chuper/issues{/number}","pulls_url":"https://api.github.com/repos/oli-g/chuper/pulls{/number}","milestones_url":"https://api.github.com/repos/oli-g/chuper/milestones{/number}","notifications_url":"https://api.github.com/repos/oli-g/chuper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oli-g/chuper/labels{/name}","releases_url":"https://api.github.com/repos/oli-g/chuper/releases{/id}","created_at":"2015-05-27T22:28:10Z","updated_at":"2015-07-13T22:14:36Z","pushed_at":"2015-07-18T15:55:10Z","git_url":"git://github.com/oli-g/chuper.git","ssh_url":"git@github.com:oli-g/chuper.git","clone_url":"https://github.com/oli-g/chuper.git","svn_url":"https://github.com/oli-g/chuper","homepage":null,"size":188,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oli-g/chuper/pulls/1"},"html":{"href":"https://github.com/oli-g/chuper/pull/1"},"issue":{"href":"https://api.github.com/repos/oli-g/chuper/issues/1"},"comments":{"href":"https://api.github.com/repos/oli-g/chuper/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/oli-g/chuper/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/oli-g/chuper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oli-g/chuper/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/oli-g/chuper/statuses/ae2e08f5019a2653597ec6990c66ca27098d64bf"}}}}