{"action":"created","comment":{"url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments/51361206","id":51361206,"diff_hunk":"@@ -124,10 +126,17 @@ public void refresh(boolean isNotificationPaneShowing) {\n             } else {\n                 logger.info(\"Opening \" + repoId);\n                 UI.status.displayMessage(\"Opening \" + repoId);\n+                Platform.runLater(() -> UI.events.triggerEvent(new RepoOpeningEvent(repoId, isPrimaryRepository)));","path":"src/main/java/backend/Logic.java","position":20,"original_position":20,"commit_id":"79d1d0006034ac142f78256681b0b1a00efb25a2","original_commit_id":"79d1d0006034ac142f78256681b0b1a00efb25a2","user":{"login":"ndt93","id":5065989,"avatar_url":"https://avatars.githubusercontent.com/u/5065989?v=3","gravatar_id":"","url":"https://api.github.com/users/ndt93","html_url":"https://github.com/ndt93","followers_url":"https://api.github.com/users/ndt93/followers","following_url":"https://api.github.com/users/ndt93/following{/other_user}","gists_url":"https://api.github.com/users/ndt93/gists{/gist_id}","starred_url":"https://api.github.com/users/ndt93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndt93/subscriptions","organizations_url":"https://api.github.com/users/ndt93/orgs","repos_url":"https://api.github.com/users/ndt93/repos","events_url":"https://api.github.com/users/ndt93/events{/privacy}","received_events_url":"https://api.github.com/users/ndt93/received_events","type":"User","site_admin":false},"body":"The `else` clause is not needed here. Not your code in this PR but would be nice if you help refactor this part :-P.","created_at":"2016-01-31T14:36:22Z","updated_at":"2016-01-31T14:36:22Z","html_url":"https://github.com/HubTurbo/HubTurbo/pull/1213#discussion_r51361206","pull_request_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1213","_links":{"self":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments/51361206"},"html":{"href":"https://github.com/HubTurbo/HubTurbo/pull/1213#discussion_r51361206"},"pull_request":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1213"}}},"pull_request":{"url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1213","id":57291310,"html_url":"https://github.com/HubTurbo/HubTurbo/pull/1213","diff_url":"https://github.com/HubTurbo/HubTurbo/pull/1213.diff","patch_url":"https://github.com/HubTurbo/HubTurbo/pull/1213.patch","issue_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1213","number":1213,"state":"open","locked":false,"title":"Added an indicator to show that a panel is loading repo #1113","user":{"login":"nicholaslum444","id":7083004,"avatar_url":"https://avatars.githubusercontent.com/u/7083004?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholaslum444","html_url":"https://github.com/nicholaslum444","followers_url":"https://api.github.com/users/nicholaslum444/followers","following_url":"https://api.github.com/users/nicholaslum444/following{/other_user}","gists_url":"https://api.github.com/users/nicholaslum444/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholaslum444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholaslum444/subscriptions","organizations_url":"https://api.github.com/users/nicholaslum444/orgs","repos_url":"https://api.github.com/users/nicholaslum444/repos","events_url":"https://api.github.com/users/nicholaslum444/events{/privacy}","received_events_url":"https://api.github.com/users/nicholaslum444/received_events","type":"User","site_admin":false},"body":"Fixes #1113 \r\n\r\n1. RepoOpeningEvent is triggered when a repo is going to be opened\r\n2. FilterPanel receives event and will apply panel-loading indicator if it is concerned with that repo\r\n3. RepoOpenedEvent is triggered when a repo is loaded\r\n4. FilterPanel receives event and will remove panel-loading indicator if it is concerned with that repo","created_at":"2016-01-26T23:37:30Z","updated_at":"2016-01-31T14:36:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbb76dbae89ddd158676f2c318d8d4278e9a8178","assignee":{"login":"ndt93","id":5065989,"avatar_url":"https://avatars.githubusercontent.com/u/5065989?v=3","gravatar_id":"","url":"https://api.github.com/users/ndt93","html_url":"https://github.com/ndt93","followers_url":"https://api.github.com/users/ndt93/followers","following_url":"https://api.github.com/users/ndt93/following{/other_user}","gists_url":"https://api.github.com/users/ndt93/gists{/gist_id}","starred_url":"https://api.github.com/users/ndt93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndt93/subscriptions","organizations_url":"https://api.github.com/users/ndt93/orgs","repos_url":"https://api.github.com/users/ndt93/repos","events_url":"https://api.github.com/users/ndt93/events{/privacy}","received_events_url":"https://api.github.com/users/ndt93/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1213/commits","review_comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1213/comments","review_comment_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1213/comments","statuses_url":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/79d1d0006034ac142f78256681b0b1a00efb25a2","head":{"label":"nicholaslum444:1113-panel-loading-indicator","ref":"1113-panel-loading-indicator","sha":"79d1d0006034ac142f78256681b0b1a00efb25a2","user":{"login":"nicholaslum444","id":7083004,"avatar_url":"https://avatars.githubusercontent.com/u/7083004?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholaslum444","html_url":"https://github.com/nicholaslum444","followers_url":"https://api.github.com/users/nicholaslum444/followers","following_url":"https://api.github.com/users/nicholaslum444/following{/other_user}","gists_url":"https://api.github.com/users/nicholaslum444/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholaslum444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholaslum444/subscriptions","organizations_url":"https://api.github.com/users/nicholaslum444/orgs","repos_url":"https://api.github.com/users/nicholaslum444/repos","events_url":"https://api.github.com/users/nicholaslum444/events{/privacy}","received_events_url":"https://api.github.com/users/nicholaslum444/received_events","type":"User","site_admin":false},"repo":{"id":45123547,"name":"HubTurbo","full_name":"nicholaslum444/HubTurbo","owner":{"login":"nicholaslum444","id":7083004,"avatar_url":"https://avatars.githubusercontent.com/u/7083004?v=3","gravatar_id":"","url":"https://api.github.com/users/nicholaslum444","html_url":"https://github.com/nicholaslum444","followers_url":"https://api.github.com/users/nicholaslum444/followers","following_url":"https://api.github.com/users/nicholaslum444/following{/other_user}","gists_url":"https://api.github.com/users/nicholaslum444/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholaslum444/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholaslum444/subscriptions","organizations_url":"https://api.github.com/users/nicholaslum444/orgs","repos_url":"https://api.github.com/users/nicholaslum444/repos","events_url":"https://api.github.com/users/nicholaslum444/events{/privacy}","received_events_url":"https://api.github.com/users/nicholaslum444/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicholaslum444/HubTurbo","description":"A companion to GitHub for your desktop","fork":true,"url":"https://api.github.com/repos/nicholaslum444/HubTurbo","forks_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/forks","keys_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/teams","hooks_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/hooks","issue_events_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/issues/events{/number}","events_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/events","assignees_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/assignees{/user}","branches_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/branches{/branch}","tags_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/tags","blobs_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/statuses/{sha}","languages_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/languages","stargazers_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/stargazers","contributors_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/contributors","subscribers_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/subscribers","subscription_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/subscription","commits_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/contents/{+path}","compare_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/merges","archive_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/downloads","issues_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/issues{/number}","pulls_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/pulls{/number}","milestones_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/milestones{/number}","notifications_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/labels{/name}","releases_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/releases{/id}","deployments_url":"https://api.github.com/repos/nicholaslum444/HubTurbo/deployments","created_at":"2015-10-28T15:47:51Z","updated_at":"2016-01-13T09:52:07Z","pushed_at":"2016-01-31T06:09:48Z","git_url":"git://github.com/nicholaslum444/HubTurbo.git","ssh_url":"git@github.com:nicholaslum444/HubTurbo.git","clone_url":"https://github.com/nicholaslum444/HubTurbo.git","svn_url":"https://github.com/nicholaslum444/HubTurbo","homepage":"http://hubturbo.info","size":132566,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"HubTurbo:master","ref":"master","sha":"1a87f9c3cf3de085efb134d6b39f18d7a91967fd","user":{"login":"HubTurbo","id":7955871,"avatar_url":"https://avatars.githubusercontent.com/u/7955871?v=3","gravatar_id":"","url":"https://api.github.com/users/HubTurbo","html_url":"https://github.com/HubTurbo","followers_url":"https://api.github.com/users/HubTurbo/followers","following_url":"https://api.github.com/users/HubTurbo/following{/other_user}","gists_url":"https://api.github.com/users/HubTurbo/gists{/gist_id}","starred_url":"https://api.github.com/users/HubTurbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubTurbo/subscriptions","organizations_url":"https://api.github.com/users/HubTurbo/orgs","repos_url":"https://api.github.com/users/HubTurbo/repos","events_url":"https://api.github.com/users/HubTurbo/events{/privacy}","received_events_url":"https://api.github.com/users/HubTurbo/received_events","type":"Organization","site_admin":false},"repo":{"id":20919534,"name":"HubTurbo","full_name":"HubTurbo/HubTurbo","owner":{"login":"HubTurbo","id":7955871,"avatar_url":"https://avatars.githubusercontent.com/u/7955871?v=3","gravatar_id":"","url":"https://api.github.com/users/HubTurbo","html_url":"https://github.com/HubTurbo","followers_url":"https://api.github.com/users/HubTurbo/followers","following_url":"https://api.github.com/users/HubTurbo/following{/other_user}","gists_url":"https://api.github.com/users/HubTurbo/gists{/gist_id}","starred_url":"https://api.github.com/users/HubTurbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HubTurbo/subscriptions","organizations_url":"https://api.github.com/users/HubTurbo/orgs","repos_url":"https://api.github.com/users/HubTurbo/repos","events_url":"https://api.github.com/users/HubTurbo/events{/privacy}","received_events_url":"https://api.github.com/users/HubTurbo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HubTurbo/HubTurbo","description":"A companion to GitHub for your desktop","fork":false,"url":"https://api.github.com/repos/HubTurbo/HubTurbo","forks_url":"https://api.github.com/repos/HubTurbo/HubTurbo/forks","keys_url":"https://api.github.com/repos/HubTurbo/HubTurbo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HubTurbo/HubTurbo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HubTurbo/HubTurbo/teams","hooks_url":"https://api.github.com/repos/HubTurbo/HubTurbo/hooks","issue_events_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/events{/number}","events_url":"https://api.github.com/repos/HubTurbo/HubTurbo/events","assignees_url":"https://api.github.com/repos/HubTurbo/HubTurbo/assignees{/user}","branches_url":"https://api.github.com/repos/HubTurbo/HubTurbo/branches{/branch}","tags_url":"https://api.github.com/repos/HubTurbo/HubTurbo/tags","blobs_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/refs{/sha}","trees_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/{sha}","languages_url":"https://api.github.com/repos/HubTurbo/HubTurbo/languages","stargazers_url":"https://api.github.com/repos/HubTurbo/HubTurbo/stargazers","contributors_url":"https://api.github.com/repos/HubTurbo/HubTurbo/contributors","subscribers_url":"https://api.github.com/repos/HubTurbo/HubTurbo/subscribers","subscription_url":"https://api.github.com/repos/HubTurbo/HubTurbo/subscription","commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/commits{/sha}","git_commits_url":"https://api.github.com/repos/HubTurbo/HubTurbo/git/commits{/sha}","comments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/comments{/number}","issue_comment_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/comments{/number}","contents_url":"https://api.github.com/repos/HubTurbo/HubTurbo/contents/{+path}","compare_url":"https://api.github.com/repos/HubTurbo/HubTurbo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HubTurbo/HubTurbo/merges","archive_url":"https://api.github.com/repos/HubTurbo/HubTurbo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HubTurbo/HubTurbo/downloads","issues_url":"https://api.github.com/repos/HubTurbo/HubTurbo/issues{/number}","pulls_url":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls{/number}","milestones_url":"https://api.github.com/repos/HubTurbo/HubTurbo/milestones{/number}","notifications_url":"https://api.github.com/repos/HubTurbo/HubTurbo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HubTurbo/HubTurbo/labels{/name}","releases_url":"https://api.github.com/repos/HubTurbo/HubTurbo/releases{/id}","deployments_url":"https://api.github.com/repos/HubTurbo/HubTurbo/deployments","created_at":"2014-06-17T10:35:39Z","updated_at":"2016-01-13T06:03:59Z","pushed_at":"2016-01-31T14:23:03Z","git_url":"git://github.com/HubTurbo/HubTurbo.git","ssh_url":"git@github.com:HubTurbo/HubTurbo.git","clone_url":"https://github.com/HubTurbo/HubTurbo.git","svn_url":"https://github.com/HubTurbo/HubTurbo","homepage":"http://hubturbo.info","size":132891,"stargazers_count":15,"watchers_count":15,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":156,"forks":24,"open_issues":156,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1213"},"html":{"href":"https://github.com/HubTurbo/HubTurbo/pull/1213"},"issue":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1213"},"comments":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/issues/1213/comments"},"review_comments":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1213/comments"},"review_comment":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/pulls/1213/commits"},"statuses":{"href":"https://api.github.com/repos/HubTurbo/HubTurbo/statuses/79d1d0006034ac142f78256681b0b1a00efb25a2"}}}}