{"action":"created","comment":{"url":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/comments/34888934","id":34888934,"diff_hunk":"@@ -0,0 +1,25 @@\n+package com.ft.changes;\n+\n+import java.util.List;\n+\n+import com.ft.monitoring.AsanaChangesService;\n+import com.ft.monitoring.ProjectChange;\n+import com.google.common.collect.Lists;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.context.annotation.Profile;\n+import org.springframework.web.bind.annotation.RequestMapping;\n+import org.springframework.web.bind.annotation.RestController;\n+\n+@Profile(\"web\")\n+@RestController\n+@RequestMapping(\"/changes\")\n+public class ChangesController {\n+    @Autowired private AsanaChangesService asanaChangesService;\n+\n+    @RequestMapping(\"/projects\")\n+    public List<ProjectChange> projectChanges(){\n+        List<ProjectChange> projectChanges = asanaChangesService.getChanges();","path":"src/main/java/com/ft/changes/ChangesController.java","position":21,"original_position":21,"commit_id":"215679f8bdf4be936cc9b8cbac2ae0d2fd0fab72","original_commit_id":"69a3348118cd8b0cb89a6f2caf6f9aaa87f34812","user":{"login":"Lucas-Gluchowski","id":3206376,"avatar_url":"https://avatars.githubusercontent.com/u/3206376?v=3","gravatar_id":"","url":"https://api.github.com/users/Lucas-Gluchowski","html_url":"https://github.com/Lucas-Gluchowski","followers_url":"https://api.github.com/users/Lucas-Gluchowski/followers","following_url":"https://api.github.com/users/Lucas-Gluchowski/following{/other_user}","gists_url":"https://api.github.com/users/Lucas-Gluchowski/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucas-Gluchowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucas-Gluchowski/subscriptions","organizations_url":"https://api.github.com/users/Lucas-Gluchowski/orgs","repos_url":"https://api.github.com/users/Lucas-Gluchowski/repos","events_url":"https://api.github.com/users/Lucas-Gluchowski/events{/privacy}","received_events_url":"https://api.github.com/users/Lucas-Gluchowski/received_events","type":"User","site_admin":false},"body":"Null checking can be removed as Service returns empty array instead of null","created_at":"2015-07-17T13:33:25Z","updated_at":"2015-07-17T13:33:25Z","html_url":"https://github.com/Financial-Times/asana-bot/pull/41#discussion_r34888934","pull_request_url":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/comments/34888934"},"html":{"href":"https://github.com/Financial-Times/asana-bot/pull/41#discussion_r34888934"},"pull_request":{"href":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/41","id":40230842,"html_url":"https://github.com/Financial-Times/asana-bot/pull/41","diff_url":"https://github.com/Financial-Times/asana-bot/pull/41.diff","patch_url":"https://github.com/Financial-Times/asana-bot/pull/41.patch","issue_url":"https://api.github.com/repos/Financial-Times/asana-bot/issues/41","number":41,"state":"open","locked":false,"title":"Detect changes","user":{"login":"Lucas-Gluchowski","id":3206376,"avatar_url":"https://avatars.githubusercontent.com/u/3206376?v=3","gravatar_id":"","url":"https://api.github.com/users/Lucas-Gluchowski","html_url":"https://github.com/Lucas-Gluchowski","followers_url":"https://api.github.com/users/Lucas-Gluchowski/followers","following_url":"https://api.github.com/users/Lucas-Gluchowski/following{/other_user}","gists_url":"https://api.github.com/users/Lucas-Gluchowski/gists{/gist_id}","starred_url":"https://api.github.com/users/Lucas-Gluchowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lucas-Gluchowski/subscriptions","organizations_url":"https://api.github.com/users/Lucas-Gluchowski/orgs","repos_url":"https://api.github.com/users/Lucas-Gluchowski/repos","events_url":"https://api.github.com/users/Lucas-Gluchowski/events{/privacy}","received_events_url":"https://api.github.com/users/Lucas-Gluchowski/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-17T13:29:17Z","updated_at":"2015-07-17T13:33:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"47bd90b020b92c08cf9933c9cfd52a8e99ba366e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/41/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/41/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/asana-bot/issues/41/comments","statuses_url":"https://api.github.com/repos/Financial-Times/asana-bot/statuses/215679f8bdf4be936cc9b8cbac2ae0d2fd0fab72","head":{"label":"Financial-Times:detect-changes","ref":"detect-changes","sha":"215679f8bdf4be936cc9b8cbac2ae0d2fd0fab72","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":34671000,"name":"asana-bot","full_name":"Financial-Times/asana-bot","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/asana-bot","description":"Asana Bot Program","fork":false,"url":"https://api.github.com/repos/Financial-Times/asana-bot","forks_url":"https://api.github.com/repos/Financial-Times/asana-bot/forks","keys_url":"https://api.github.com/repos/Financial-Times/asana-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/asana-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/asana-bot/teams","hooks_url":"https://api.github.com/repos/Financial-Times/asana-bot/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/asana-bot/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/asana-bot/events","assignees_url":"https://api.github.com/repos/Financial-Times/asana-bot/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/asana-bot/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/asana-bot/tags","blobs_url":"https://api.github.com/repos/Financial-Times/asana-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/asana-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/asana-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/asana-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/asana-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/asana-bot/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/asana-bot/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/asana-bot/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/asana-bot/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/asana-bot/subscription","commits_url":"https://api.github.com/repos/Financial-Times/asana-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/asana-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/asana-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/asana-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/asana-bot/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/asana-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/asana-bot/merges","archive_url":"https://api.github.com/repos/Financial-Times/asana-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/asana-bot/downloads","issues_url":"https://api.github.com/repos/Financial-Times/asana-bot/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/asana-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/asana-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/asana-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/asana-bot/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/asana-bot/releases{/id}","created_at":"2015-04-27T14:19:37Z","updated_at":"2015-05-28T14:50:25Z","pushed_at":"2015-07-17T13:31:14Z","git_url":"git://github.com/Financial-Times/asana-bot.git","ssh_url":"git@github.com:Financial-Times/asana-bot.git","clone_url":"https://github.com/Financial-Times/asana-bot.git","svn_url":"https://github.com/Financial-Times/asana-bot","homepage":null,"size":676,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"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":1,"default_branch":"master"}},"base":{"label":"Financial-Times:staging","ref":"staging","sha":"a968d9a9a7fc0f61bc8fa02f75af9a27f1def27e","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":34671000,"name":"asana-bot","full_name":"Financial-Times/asana-bot","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/asana-bot","description":"Asana Bot Program","fork":false,"url":"https://api.github.com/repos/Financial-Times/asana-bot","forks_url":"https://api.github.com/repos/Financial-Times/asana-bot/forks","keys_url":"https://api.github.com/repos/Financial-Times/asana-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/asana-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/asana-bot/teams","hooks_url":"https://api.github.com/repos/Financial-Times/asana-bot/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/asana-bot/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/asana-bot/events","assignees_url":"https://api.github.com/repos/Financial-Times/asana-bot/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/asana-bot/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/asana-bot/tags","blobs_url":"https://api.github.com/repos/Financial-Times/asana-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/asana-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/asana-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/asana-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/asana-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/asana-bot/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/asana-bot/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/asana-bot/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/asana-bot/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/asana-bot/subscription","commits_url":"https://api.github.com/repos/Financial-Times/asana-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/asana-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/asana-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/asana-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/asana-bot/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/asana-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/asana-bot/merges","archive_url":"https://api.github.com/repos/Financial-Times/asana-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/asana-bot/downloads","issues_url":"https://api.github.com/repos/Financial-Times/asana-bot/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/asana-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/asana-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/asana-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/asana-bot/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/asana-bot/releases{/id}","created_at":"2015-04-27T14:19:37Z","updated_at":"2015-05-28T14:50:25Z","pushed_at":"2015-07-17T13:31:14Z","git_url":"git://github.com/Financial-Times/asana-bot.git","ssh_url":"git@github.com:Financial-Times/asana-bot.git","clone_url":"https://github.com/Financial-Times/asana-bot.git","svn_url":"https://github.com/Financial-Times/asana-bot","homepage":null,"size":676,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/41"},"html":{"href":"https://github.com/Financial-Times/asana-bot/pull/41"},"issue":{"href":"https://api.github.com/repos/Financial-Times/asana-bot/issues/41"},"comments":{"href":"https://api.github.com/repos/Financial-Times/asana-bot/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/asana-bot/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/asana-bot/statuses/215679f8bdf4be936cc9b8cbac2ae0d2fd0fab72"}}}}