{"action":"created","comment":{"url":"https://api.github.com/repos/almighty/almighty-core/pulls/comments/93845826","pull_request_review_id":14379240,"id":93845826,"diff_hunk":"@@ -80,17 +102,32 @@ func fetchTrackerQueries(db *gorm.DB) []trackerSchedule {\n func lookupProvider(ts trackerSchedule) TrackerProvider {\n \tswitch ts.TrackerType {\n \tcase ProviderGithub:\n-\t\treturn &GithubTracker{URL: ts.URL, Query: ts.Query}\n+\t\tvar q string\n+\t\tif ts.LastUpdated != nil {","path":"remoteworkitem/scheduler.go","position":76,"original_position":76,"commit_id":"92b6e18e018cb2e64844f64dee8d5032c9159d5c","original_commit_id":"92b6e18e018cb2e64844f64dee8d5032c9159d5c","user":{"login":"sbose78","id":545280,"avatar_url":"https://avatars.githubusercontent.com/u/545280?v=3","gravatar_id":"","url":"https://api.github.com/users/sbose78","html_url":"https://github.com/sbose78","followers_url":"https://api.github.com/users/sbose78/followers","following_url":"https://api.github.com/users/sbose78/following{/other_user}","gists_url":"https://api.github.com/users/sbose78/gists{/gist_id}","starred_url":"https://api.github.com/users/sbose78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbose78/subscriptions","organizations_url":"https://api.github.com/users/sbose78/orgs","repos_url":"https://api.github.com/users/sbose78/repos","events_url":"https://api.github.com/users/sbose78/events{/privacy}","received_events_url":"https://api.github.com/users/sbose78/received_events","type":"User","site_admin":false},"body":"This if-else block looks repetitive to me, could we compute the value of `q` outside the `switch-case` block and use here?","created_at":"2016-12-26T06:47:16Z","updated_at":"2016-12-26T06:55:26Z","html_url":"https://github.com/almighty/almighty-core/pull/585#discussion_r93845826","pull_request_url":"https://api.github.com/repos/almighty/almighty-core/pulls/585","_links":{"self":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/comments/93845826"},"html":{"href":"https://github.com/almighty/almighty-core/pull/585#discussion_r93845826"},"pull_request":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/585"}}},"pull_request":{"url":"https://api.github.com/repos/almighty/almighty-core/pulls/585","id":97887210,"html_url":"https://github.com/almighty/almighty-core/pull/585","diff_url":"https://github.com/almighty/almighty-core/pull/585.diff","patch_url":"https://github.com/almighty/almighty-core/pull/585.patch","issue_url":"https://api.github.com/repos/almighty/almighty-core/issues/585","number":585,"state":"open","locked":false,"title":"Optimize remote item fetching by only fetching modified items","user":{"login":"baijum","id":121129,"avatar_url":"https://avatars.githubusercontent.com/u/121129?v=3","gravatar_id":"","url":"https://api.github.com/users/baijum","html_url":"https://github.com/baijum","followers_url":"https://api.github.com/users/baijum/followers","following_url":"https://api.github.com/users/baijum/following{/other_user}","gists_url":"https://api.github.com/users/baijum/gists{/gist_id}","starred_url":"https://api.github.com/users/baijum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baijum/subscriptions","organizations_url":"https://api.github.com/users/baijum/orgs","repos_url":"https://api.github.com/users/baijum/repos","events_url":"https://api.github.com/users/baijum/events{/privacy}","received_events_url":"https://api.github.com/users/baijum/received_events","type":"User","site_admin":false},"body":"fixes #582","created_at":"2016-12-14T04:53:38Z","updated_at":"2016-12-26T06:55:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6975b8bc449f9c80f8ca091c97d367e1c5cce749","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/almighty/almighty-core/pulls/585/commits","review_comments_url":"https://api.github.com/repos/almighty/almighty-core/pulls/585/comments","review_comment_url":"https://api.github.com/repos/almighty/almighty-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/almighty/almighty-core/issues/585/comments","statuses_url":"https://api.github.com/repos/almighty/almighty-core/statuses/92b6e18e018cb2e64844f64dee8d5032c9159d5c","head":{"label":"baijum:issue-582","ref":"issue-582","sha":"92b6e18e018cb2e64844f64dee8d5032c9159d5c","user":{"login":"baijum","id":121129,"avatar_url":"https://avatars.githubusercontent.com/u/121129?v=3","gravatar_id":"","url":"https://api.github.com/users/baijum","html_url":"https://github.com/baijum","followers_url":"https://api.github.com/users/baijum/followers","following_url":"https://api.github.com/users/baijum/following{/other_user}","gists_url":"https://api.github.com/users/baijum/gists{/gist_id}","starred_url":"https://api.github.com/users/baijum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baijum/subscriptions","organizations_url":"https://api.github.com/users/baijum/orgs","repos_url":"https://api.github.com/users/baijum/repos","events_url":"https://api.github.com/users/baijum/events{/privacy}","received_events_url":"https://api.github.com/users/baijum/received_events","type":"User","site_admin":false},"repo":{"id":63276116,"name":"almighty-core","full_name":"baijum/almighty-core","owner":{"login":"baijum","id":121129,"avatar_url":"https://avatars.githubusercontent.com/u/121129?v=3","gravatar_id":"","url":"https://api.github.com/users/baijum","html_url":"https://github.com/baijum","followers_url":"https://api.github.com/users/baijum/followers","following_url":"https://api.github.com/users/baijum/following{/other_user}","gists_url":"https://api.github.com/users/baijum/gists{/gist_id}","starred_url":"https://api.github.com/users/baijum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baijum/subscriptions","organizations_url":"https://api.github.com/users/baijum/orgs","repos_url":"https://api.github.com/users/baijum/repos","events_url":"https://api.github.com/users/baijum/events{/privacy}","received_events_url":"https://api.github.com/users/baijum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/baijum/almighty-core","description":null,"fork":true,"url":"https://api.github.com/repos/baijum/almighty-core","forks_url":"https://api.github.com/repos/baijum/almighty-core/forks","keys_url":"https://api.github.com/repos/baijum/almighty-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baijum/almighty-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baijum/almighty-core/teams","hooks_url":"https://api.github.com/repos/baijum/almighty-core/hooks","issue_events_url":"https://api.github.com/repos/baijum/almighty-core/issues/events{/number}","events_url":"https://api.github.com/repos/baijum/almighty-core/events","assignees_url":"https://api.github.com/repos/baijum/almighty-core/assignees{/user}","branches_url":"https://api.github.com/repos/baijum/almighty-core/branches{/branch}","tags_url":"https://api.github.com/repos/baijum/almighty-core/tags","blobs_url":"https://api.github.com/repos/baijum/almighty-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baijum/almighty-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baijum/almighty-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/baijum/almighty-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baijum/almighty-core/statuses/{sha}","languages_url":"https://api.github.com/repos/baijum/almighty-core/languages","stargazers_url":"https://api.github.com/repos/baijum/almighty-core/stargazers","contributors_url":"https://api.github.com/repos/baijum/almighty-core/contributors","subscribers_url":"https://api.github.com/repos/baijum/almighty-core/subscribers","subscription_url":"https://api.github.com/repos/baijum/almighty-core/subscription","commits_url":"https://api.github.com/repos/baijum/almighty-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/baijum/almighty-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/baijum/almighty-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/baijum/almighty-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/baijum/almighty-core/contents/{+path}","compare_url":"https://api.github.com/repos/baijum/almighty-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baijum/almighty-core/merges","archive_url":"https://api.github.com/repos/baijum/almighty-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baijum/almighty-core/downloads","issues_url":"https://api.github.com/repos/baijum/almighty-core/issues{/number}","pulls_url":"https://api.github.com/repos/baijum/almighty-core/pulls{/number}","milestones_url":"https://api.github.com/repos/baijum/almighty-core/milestones{/number}","notifications_url":"https://api.github.com/repos/baijum/almighty-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baijum/almighty-core/labels{/name}","releases_url":"https://api.github.com/repos/baijum/almighty-core/releases{/id}","deployments_url":"https://api.github.com/repos/baijum/almighty-core/deployments","created_at":"2016-07-13T20:09:48Z","updated_at":"2016-07-13T20:09:48Z","pushed_at":"2016-12-23T08:12:20Z","git_url":"git://github.com/baijum/almighty-core.git","ssh_url":"git@github.com:baijum/almighty-core.git","clone_url":"https://github.com/baijum/almighty-core.git","svn_url":"https://github.com/baijum/almighty-core","homepage":null,"size":1026,"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":"almighty:master","ref":"master","sha":"3b55102de05857bcb3b6002c2ea6dad9d4b7ae44","user":{"login":"almighty","id":17783151,"avatar_url":"https://avatars.githubusercontent.com/u/17783151?v=3","gravatar_id":"","url":"https://api.github.com/users/almighty","html_url":"https://github.com/almighty","followers_url":"https://api.github.com/users/almighty/followers","following_url":"https://api.github.com/users/almighty/following{/other_user}","gists_url":"https://api.github.com/users/almighty/gists{/gist_id}","starred_url":"https://api.github.com/users/almighty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almighty/subscriptions","organizations_url":"https://api.github.com/users/almighty/orgs","repos_url":"https://api.github.com/users/almighty/repos","events_url":"https://api.github.com/users/almighty/events{/privacy}","received_events_url":"https://api.github.com/users/almighty/received_events","type":"Organization","site_admin":false},"repo":{"id":54260706,"name":"almighty-core","full_name":"almighty/almighty-core","owner":{"login":"almighty","id":17783151,"avatar_url":"https://avatars.githubusercontent.com/u/17783151?v=3","gravatar_id":"","url":"https://api.github.com/users/almighty","html_url":"https://github.com/almighty","followers_url":"https://api.github.com/users/almighty/followers","following_url":"https://api.github.com/users/almighty/following{/other_user}","gists_url":"https://api.github.com/users/almighty/gists{/gist_id}","starred_url":"https://api.github.com/users/almighty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almighty/subscriptions","organizations_url":"https://api.github.com/users/almighty/orgs","repos_url":"https://api.github.com/users/almighty/repos","events_url":"https://api.github.com/users/almighty/events{/privacy}","received_events_url":"https://api.github.com/users/almighty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/almighty/almighty-core","description":null,"fork":false,"url":"https://api.github.com/repos/almighty/almighty-core","forks_url":"https://api.github.com/repos/almighty/almighty-core/forks","keys_url":"https://api.github.com/repos/almighty/almighty-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/almighty/almighty-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/almighty/almighty-core/teams","hooks_url":"https://api.github.com/repos/almighty/almighty-core/hooks","issue_events_url":"https://api.github.com/repos/almighty/almighty-core/issues/events{/number}","events_url":"https://api.github.com/repos/almighty/almighty-core/events","assignees_url":"https://api.github.com/repos/almighty/almighty-core/assignees{/user}","branches_url":"https://api.github.com/repos/almighty/almighty-core/branches{/branch}","tags_url":"https://api.github.com/repos/almighty/almighty-core/tags","blobs_url":"https://api.github.com/repos/almighty/almighty-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/almighty/almighty-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/almighty/almighty-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/almighty/almighty-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/almighty/almighty-core/statuses/{sha}","languages_url":"https://api.github.com/repos/almighty/almighty-core/languages","stargazers_url":"https://api.github.com/repos/almighty/almighty-core/stargazers","contributors_url":"https://api.github.com/repos/almighty/almighty-core/contributors","subscribers_url":"https://api.github.com/repos/almighty/almighty-core/subscribers","subscription_url":"https://api.github.com/repos/almighty/almighty-core/subscription","commits_url":"https://api.github.com/repos/almighty/almighty-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/almighty/almighty-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/almighty/almighty-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/almighty/almighty-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/almighty/almighty-core/contents/{+path}","compare_url":"https://api.github.com/repos/almighty/almighty-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/almighty/almighty-core/merges","archive_url":"https://api.github.com/repos/almighty/almighty-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/almighty/almighty-core/downloads","issues_url":"https://api.github.com/repos/almighty/almighty-core/issues{/number}","pulls_url":"https://api.github.com/repos/almighty/almighty-core/pulls{/number}","milestones_url":"https://api.github.com/repos/almighty/almighty-core/milestones{/number}","notifications_url":"https://api.github.com/repos/almighty/almighty-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/almighty/almighty-core/labels{/name}","releases_url":"https://api.github.com/repos/almighty/almighty-core/releases{/id}","deployments_url":"https://api.github.com/repos/almighty/almighty-core/deployments","created_at":"2016-03-19T10:42:15Z","updated_at":"2016-12-21T08:42:11Z","pushed_at":"2016-12-26T06:38:44Z","git_url":"git://github.com/almighty/almighty-core.git","ssh_url":"git@github.com:almighty/almighty-core.git","clone_url":"https://github.com/almighty/almighty-core.git","svn_url":"https://github.com/almighty/almighty-core","homepage":"http://devdoc.almighty.io/","size":5199,"stargazers_count":16,"watchers_count":16,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":181,"forks":35,"open_issues":181,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/585"},"html":{"href":"https://github.com/almighty/almighty-core/pull/585"},"issue":{"href":"https://api.github.com/repos/almighty/almighty-core/issues/585"},"comments":{"href":"https://api.github.com/repos/almighty/almighty-core/issues/585/comments"},"review_comments":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/585/comments"},"review_comment":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/almighty/almighty-core/pulls/585/commits"},"statuses":{"href":"https://api.github.com/repos/almighty/almighty-core/statuses/92b6e18e018cb2e64844f64dee8d5032c9159d5c"}}}}
{"actor":{"display_login":"sbose78"}}