{"action":"created","comment":{"url":"https://api.github.com/repos/github/VisualStudio/pulls/comments/38146502","id":38146502,"diff_hunk":"@@ -129,23 +182,70 @@ void UpdateConnection()\n         void OnPropertyChange(object sender, System.ComponentModel.PropertyChangedEventArgs e)\n         {\n             if (e.PropertyName == \"IsVisible\" && IsVisible && View == null)\n-                View = new GitHubConnectContent() { DataContext = this };\n+                View = new GitHubConnectContent { DataContext = this };\n+        }\n+\n+        void UpdateIcons(object sender, NotifyCollectionChangedEventArgs e)\n+        {\n+            if (e.Action == NotifyCollectionChangedAction.Add)\n+            {\n+                e.NewItems\n+                    .Cast<ISimpleRepositoryModel>()\n+                    .Select(async r =>\n+                {\n+                    if (String.Equals(Holder.ActiveRepo?.RepositoryPath, r.LocalPath, StringComparison.CurrentCultureIgnoreCase))\n+                        SelectedRepository = r;\n+                    var repo = await ApiFactory.Create(r.CloneUrl).GetRepository();\n+                    r.SetIcon(repo.Private, repo.Fork);\n+                }).ToList();","path":"src/GitHub.VisualStudio/TeamExplorer/Connect/GitHubConnectSection.cs","position":165,"original_position":165,"commit_id":"9f21317bbc1f1c84438223876907220eac8f5023","original_commit_id":"9f21317bbc1f1c84438223876907220eac8f5023","user":{"login":"shana","id":310137,"avatar_url":"https://avatars.githubusercontent.com/u/310137?v=3","gravatar_id":"","url":"https://api.github.com/users/shana","html_url":"https://github.com/shana","followers_url":"https://api.github.com/users/shana/followers","following_url":"https://api.github.com/users/shana/following{/other_user}","gists_url":"https://api.github.com/users/shana/gists{/gist_id}","starred_url":"https://api.github.com/users/shana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shana/subscriptions","organizations_url":"https://api.github.com/users/shana/orgs","repos_url":"https://api.github.com/users/shana/repos","events_url":"https://api.github.com/users/shana/events{/privacy}","received_events_url":"https://api.github.com/users/shana/received_events","type":"User","site_admin":true},"body":"Yup, ForEach is better! :+1: ","created_at":"2015-08-27T21:10:24Z","updated_at":"2015-08-27T21:10:24Z","html_url":"https://github.com/github/VisualStudio/pull/32#discussion_r38146502","pull_request_url":"https://api.github.com/repos/github/VisualStudio/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/github/VisualStudio/pulls/comments/38146502"},"html":{"href":"https://github.com/github/VisualStudio/pull/32#discussion_r38146502"},"pull_request":{"href":"https://api.github.com/repos/github/VisualStudio/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/github/VisualStudio/pulls/32","id":41676555,"html_url":"https://github.com/github/VisualStudio/pull/32","diff_url":"https://github.com/github/VisualStudio/pull/32.diff","patch_url":"https://github.com/github/VisualStudio/pull/32.patch","issue_url":"https://api.github.com/repos/github/VisualStudio/issues/32","number":32,"state":"open","locked":false,"title":"Add list of repos to the connect page","user":{"login":"shana","id":310137,"avatar_url":"https://avatars.githubusercontent.com/u/310137?v=3","gravatar_id":"","url":"https://api.github.com/users/shana","html_url":"https://github.com/shana","followers_url":"https://api.github.com/users/shana/followers","following_url":"https://api.github.com/users/shana/following{/other_user}","gists_url":"https://api.github.com/users/shana/gists{/gist_id}","starred_url":"https://api.github.com/users/shana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shana/subscriptions","organizations_url":"https://api.github.com/users/shana/orgs","repos_url":"https://api.github.com/users/shana/repos","events_url":"https://api.github.com/users/shana/events{/privacy}","received_events_url":"https://api.github.com/users/shana/received_events","type":"User","site_admin":true},"body":"I'm not sure it's worth caching the known GitHub repositories list in our connection cache instead of just poking the registry every time the Connect page is loaded. I'll have to monitor the registry for changes so I can update our cache when new repos get added to VS (because there's no API to notify us of that)","created_at":"2015-08-05T13:10:20Z","updated_at":"2015-08-27T21:10:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc2c3910a4ae0dbff63fc97585c7c97d24da38d8","assignee":null,"milestone":{"url":"https://api.github.com/repos/github/VisualStudio/milestones/1","html_url":"https://github.com/github/VisualStudio/milestones/1.0.13","labels_url":"https://api.github.com/repos/github/VisualStudio/milestones/1/labels","id":1252332,"number":1,"title":"1.0.13","description":null,"creator":{"login":"shana","id":310137,"avatar_url":"https://avatars.githubusercontent.com/u/310137?v=3","gravatar_id":"","url":"https://api.github.com/users/shana","html_url":"https://github.com/shana","followers_url":"https://api.github.com/users/shana/followers","following_url":"https://api.github.com/users/shana/following{/other_user}","gists_url":"https://api.github.com/users/shana/gists{/gist_id}","starred_url":"https://api.github.com/users/shana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shana/subscriptions","organizations_url":"https://api.github.com/users/shana/orgs","repos_url":"https://api.github.com/users/shana/repos","events_url":"https://api.github.com/users/shana/events{/privacy}","received_events_url":"https://api.github.com/users/shana/received_events","type":"User","site_admin":true},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2015-08-12T18:50:10Z","updated_at":"2015-08-27T09:41:49Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/github/VisualStudio/pulls/32/commits","review_comments_url":"https://api.github.com/repos/github/VisualStudio/pulls/32/comments","review_comment_url":"https://api.github.com/repos/github/VisualStudio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/github/VisualStudio/issues/32/comments","statuses_url":"https://api.github.com/repos/github/VisualStudio/statuses/9f21317bbc1f1c84438223876907220eac8f5023","head":{"label":"github:shana/list-git-repos","ref":"shana/list-git-repos","sha":"9f21317bbc1f1c84438223876907220eac8f5023","user":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"repo":{"id":38325182,"name":"VisualStudio","full_name":"github/VisualStudio","owner":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github/VisualStudio","description":"GitHub Extension for Visual Studio","fork":false,"url":"https://api.github.com/repos/github/VisualStudio","forks_url":"https://api.github.com/repos/github/VisualStudio/forks","keys_url":"https://api.github.com/repos/github/VisualStudio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github/VisualStudio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github/VisualStudio/teams","hooks_url":"https://api.github.com/repos/github/VisualStudio/hooks","issue_events_url":"https://api.github.com/repos/github/VisualStudio/issues/events{/number}","events_url":"https://api.github.com/repos/github/VisualStudio/events","assignees_url":"https://api.github.com/repos/github/VisualStudio/assignees{/user}","branches_url":"https://api.github.com/repos/github/VisualStudio/branches{/branch}","tags_url":"https://api.github.com/repos/github/VisualStudio/tags","blobs_url":"https://api.github.com/repos/github/VisualStudio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github/VisualStudio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github/VisualStudio/git/refs{/sha}","trees_url":"https://api.github.com/repos/github/VisualStudio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github/VisualStudio/statuses/{sha}","languages_url":"https://api.github.com/repos/github/VisualStudio/languages","stargazers_url":"https://api.github.com/repos/github/VisualStudio/stargazers","contributors_url":"https://api.github.com/repos/github/VisualStudio/contributors","subscribers_url":"https://api.github.com/repos/github/VisualStudio/subscribers","subscription_url":"https://api.github.com/repos/github/VisualStudio/subscription","commits_url":"https://api.github.com/repos/github/VisualStudio/commits{/sha}","git_commits_url":"https://api.github.com/repos/github/VisualStudio/git/commits{/sha}","comments_url":"https://api.github.com/repos/github/VisualStudio/comments{/number}","issue_comment_url":"https://api.github.com/repos/github/VisualStudio/issues/comments{/number}","contents_url":"https://api.github.com/repos/github/VisualStudio/contents/{+path}","compare_url":"https://api.github.com/repos/github/VisualStudio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github/VisualStudio/merges","archive_url":"https://api.github.com/repos/github/VisualStudio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github/VisualStudio/downloads","issues_url":"https://api.github.com/repos/github/VisualStudio/issues{/number}","pulls_url":"https://api.github.com/repos/github/VisualStudio/pulls{/number}","milestones_url":"https://api.github.com/repos/github/VisualStudio/milestones{/number}","notifications_url":"https://api.github.com/repos/github/VisualStudio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github/VisualStudio/labels{/name}","releases_url":"https://api.github.com/repos/github/VisualStudio/releases{/id}","created_at":"2015-06-30T18:11:40Z","updated_at":"2015-08-27T17:40:30Z","pushed_at":"2015-08-27T17:59:18Z","git_url":"git://github.com/github/VisualStudio.git","ssh_url":"git@github.com:github/VisualStudio.git","clone_url":"https://github.com/github/VisualStudio.git","svn_url":"https://github.com/github/VisualStudio","homepage":"https://visualstudio.github.com","size":11913,"stargazers_count":254,"watchers_count":254,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":24,"forks":39,"open_issues":24,"watchers":254,"default_branch":"master"}},"base":{"label":"github:master","ref":"master","sha":"8096a8e185bb09504f96d346ff2566611395fa97","user":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"repo":{"id":38325182,"name":"VisualStudio","full_name":"github/VisualStudio","owner":{"login":"github","id":9919,"avatar_url":"https://avatars.githubusercontent.com/u/9919?v=3","gravatar_id":"","url":"https://api.github.com/users/github","html_url":"https://github.com/github","followers_url":"https://api.github.com/users/github/followers","following_url":"https://api.github.com/users/github/following{/other_user}","gists_url":"https://api.github.com/users/github/gists{/gist_id}","starred_url":"https://api.github.com/users/github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/github/subscriptions","organizations_url":"https://api.github.com/users/github/orgs","repos_url":"https://api.github.com/users/github/repos","events_url":"https://api.github.com/users/github/events{/privacy}","received_events_url":"https://api.github.com/users/github/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/github/VisualStudio","description":"GitHub Extension for Visual Studio","fork":false,"url":"https://api.github.com/repos/github/VisualStudio","forks_url":"https://api.github.com/repos/github/VisualStudio/forks","keys_url":"https://api.github.com/repos/github/VisualStudio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/github/VisualStudio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/github/VisualStudio/teams","hooks_url":"https://api.github.com/repos/github/VisualStudio/hooks","issue_events_url":"https://api.github.com/repos/github/VisualStudio/issues/events{/number}","events_url":"https://api.github.com/repos/github/VisualStudio/events","assignees_url":"https://api.github.com/repos/github/VisualStudio/assignees{/user}","branches_url":"https://api.github.com/repos/github/VisualStudio/branches{/branch}","tags_url":"https://api.github.com/repos/github/VisualStudio/tags","blobs_url":"https://api.github.com/repos/github/VisualStudio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/github/VisualStudio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/github/VisualStudio/git/refs{/sha}","trees_url":"https://api.github.com/repos/github/VisualStudio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/github/VisualStudio/statuses/{sha}","languages_url":"https://api.github.com/repos/github/VisualStudio/languages","stargazers_url":"https://api.github.com/repos/github/VisualStudio/stargazers","contributors_url":"https://api.github.com/repos/github/VisualStudio/contributors","subscribers_url":"https://api.github.com/repos/github/VisualStudio/subscribers","subscription_url":"https://api.github.com/repos/github/VisualStudio/subscription","commits_url":"https://api.github.com/repos/github/VisualStudio/commits{/sha}","git_commits_url":"https://api.github.com/repos/github/VisualStudio/git/commits{/sha}","comments_url":"https://api.github.com/repos/github/VisualStudio/comments{/number}","issue_comment_url":"https://api.github.com/repos/github/VisualStudio/issues/comments{/number}","contents_url":"https://api.github.com/repos/github/VisualStudio/contents/{+path}","compare_url":"https://api.github.com/repos/github/VisualStudio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/github/VisualStudio/merges","archive_url":"https://api.github.com/repos/github/VisualStudio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/github/VisualStudio/downloads","issues_url":"https://api.github.com/repos/github/VisualStudio/issues{/number}","pulls_url":"https://api.github.com/repos/github/VisualStudio/pulls{/number}","milestones_url":"https://api.github.com/repos/github/VisualStudio/milestones{/number}","notifications_url":"https://api.github.com/repos/github/VisualStudio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/github/VisualStudio/labels{/name}","releases_url":"https://api.github.com/repos/github/VisualStudio/releases{/id}","created_at":"2015-06-30T18:11:40Z","updated_at":"2015-08-27T17:40:30Z","pushed_at":"2015-08-27T17:59:18Z","git_url":"git://github.com/github/VisualStudio.git","ssh_url":"git@github.com:github/VisualStudio.git","clone_url":"https://github.com/github/VisualStudio.git","svn_url":"https://github.com/github/VisualStudio","homepage":"https://visualstudio.github.com","size":11913,"stargazers_count":254,"watchers_count":254,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"open_issues_count":24,"forks":39,"open_issues":24,"watchers":254,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/github/VisualStudio/pulls/32"},"html":{"href":"https://github.com/github/VisualStudio/pull/32"},"issue":{"href":"https://api.github.com/repos/github/VisualStudio/issues/32"},"comments":{"href":"https://api.github.com/repos/github/VisualStudio/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/github/VisualStudio/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/github/VisualStudio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/github/VisualStudio/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/github/VisualStudio/statuses/9f21317bbc1f1c84438223876907220eac8f5023"}}}}