{"action":"created","comment":{"url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments/30014287","id":30014287,"diff_hunk":"@@ -161,19 +160,15 @@ public MainMenuLogic(Widget widget, World world)\n \t\t\t\tif (currentNews != null)\n \t\t\t\t\tDisplayNews(currentNews);\n \n+                var newsButton = newsBG.GetOrNull<DropDownButtonWidget>(\"NEWS_BUTTON\");\n+\n \t\t\t\t// Only query for new stories once per day\n \t\t\t\tvar cacheValid = currentNews != null && DateTime.Today.ToUniversalTime() <= Game.Settings.Game.NewsFetchedDate;\n \t\t\t\tif (!cacheValid)\n-\t\t\t\t\tnew Download(Game.Settings.Game.NewsUrl, cacheFile, e => { }, (e, c) => NewsDownloadComplete(e, c, cacheFile, currentNews));\n-\n-\t\t\t\tvar newsButton = newsBG.GetOrNull<DropDownButtonWidget>(\"NEWS_BUTTON\");\n-\t\t\t\tnewsButton.OnClick = () =>\n-\t\t\t\t{\n-\t\t\t\t\tnewsButton.AttachPanel(newsPanel);\n-\t\t\t\t\tnewsHighlighted = false;\n-\t\t\t\t};\n+\t\t\t\t\tnew Download(Game.Settings.Game.NewsUrl, cacheFile, e => { },\n+                        (e, c) => NewsDownloadComplete(e, c, cacheFile, currentNews, () => newsButton.AttachPanel(newsPanel)));\n \n-\t\t\t\tnewsButton.IsHighlighted = () => newsHighlighted && Game.LocalTick % 50 < 25;\n+                newsButton.OnClick = () => newsButton.AttachPanel(newsPanel);","path":"OpenRA.Mods.Common/Widgets/Logic/MainMenuLogic.cs","position":29,"original_position":29,"commit_id":"958b7d60788eeccf01d0688427b02973cf80bc6b","original_commit_id":"958b7d60788eeccf01d0688427b02973cf80bc6b","user":{"login":"Mailaender","id":756669,"avatar_url":"https://avatars.githubusercontent.com/u/756669?v=3","gravatar_id":"","url":"https://api.github.com/users/Mailaender","html_url":"https://github.com/Mailaender","followers_url":"https://api.github.com/users/Mailaender/followers","following_url":"https://api.github.com/users/Mailaender/following{/other_user}","gists_url":"https://api.github.com/users/Mailaender/gists{/gist_id}","starred_url":"https://api.github.com/users/Mailaender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mailaender/subscriptions","organizations_url":"https://api.github.com/users/Mailaender/orgs","repos_url":"https://api.github.com/users/Mailaender/repos","events_url":"https://api.github.com/users/Mailaender/events{/privacy}","received_events_url":"https://api.github.com/users/Mailaender/received_events","type":"User","site_admin":false},"body":"Please use tabs instead of spaces.","created_at":"2015-05-11T05:54:10Z","updated_at":"2015-05-11T05:54:10Z","html_url":"https://github.com/OpenRA/OpenRA/pull/8140#discussion_r30014287","pull_request_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/8140","_links":{"self":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments/30014287"},"html":{"href":"https://github.com/OpenRA/OpenRA/pull/8140#discussion_r30014287"},"pull_request":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/8140"}}},"pull_request":{"url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/8140","id":35094757,"html_url":"https://github.com/OpenRA/OpenRA/pull/8140","diff_url":"https://github.com/OpenRA/OpenRA/pull/8140.diff","patch_url":"https://github.com/OpenRA/OpenRA/pull/8140.patch","issue_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8140","number":8140,"state":"open","locked":false,"title":"Fixing code style validation error","user":{"login":"bean601","id":1154670,"avatar_url":"https://avatars.githubusercontent.com/u/1154670?v=3","gravatar_id":"","url":"https://api.github.com/users/bean601","html_url":"https://github.com/bean601","followers_url":"https://api.github.com/users/bean601/followers","following_url":"https://api.github.com/users/bean601/following{/other_user}","gists_url":"https://api.github.com/users/bean601/gists{/gist_id}","starred_url":"https://api.github.com/users/bean601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bean601/subscriptions","organizations_url":"https://api.github.com/users/bean601/orgs","repos_url":"https://api.github.com/users/bean601/repos","events_url":"https://api.github.com/users/bean601/events{/privacy}","received_events_url":"https://api.github.com/users/bean601/received_events","type":"User","site_admin":false},"body":"CI build broke with earlier commit for Battlefield News now expanded if new news had been downloaded ","created_at":"2015-05-11T02:51:44Z","updated_at":"2015-05-11T05:54:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"906eae4533612a453210366b34622d90fef82c20","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/8140/commits","review_comments_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/8140/comments","review_comment_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/8140/comments","statuses_url":"https://api.github.com/repos/OpenRA/OpenRA/statuses/958b7d60788eeccf01d0688427b02973cf80bc6b","head":{"label":"bean601:bleed","ref":"bleed","sha":"958b7d60788eeccf01d0688427b02973cf80bc6b","user":{"login":"bean601","id":1154670,"avatar_url":"https://avatars.githubusercontent.com/u/1154670?v=3","gravatar_id":"","url":"https://api.github.com/users/bean601","html_url":"https://github.com/bean601","followers_url":"https://api.github.com/users/bean601/followers","following_url":"https://api.github.com/users/bean601/following{/other_user}","gists_url":"https://api.github.com/users/bean601/gists{/gist_id}","starred_url":"https://api.github.com/users/bean601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bean601/subscriptions","organizations_url":"https://api.github.com/users/bean601/orgs","repos_url":"https://api.github.com/users/bean601/repos","events_url":"https://api.github.com/users/bean601/events{/privacy}","received_events_url":"https://api.github.com/users/bean601/received_events","type":"User","site_admin":false},"repo":{"id":35345444,"name":"OpenRA","full_name":"bean601/OpenRA","owner":{"login":"bean601","id":1154670,"avatar_url":"https://avatars.githubusercontent.com/u/1154670?v=3","gravatar_id":"","url":"https://api.github.com/users/bean601","html_url":"https://github.com/bean601","followers_url":"https://api.github.com/users/bean601/followers","following_url":"https://api.github.com/users/bean601/following{/other_user}","gists_url":"https://api.github.com/users/bean601/gists{/gist_id}","starred_url":"https://api.github.com/users/bean601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bean601/subscriptions","organizations_url":"https://api.github.com/users/bean601/orgs","repos_url":"https://api.github.com/users/bean601/repos","events_url":"https://api.github.com/users/bean601/events{/privacy}","received_events_url":"https://api.github.com/users/bean601/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bean601/OpenRA","description":"An open-source implementation of the Command & Conquer: Red Alert engine using .NET/Mono and OpenGL. Runs on Windows, Linux and Mac OS X.","fork":true,"url":"https://api.github.com/repos/bean601/OpenRA","forks_url":"https://api.github.com/repos/bean601/OpenRA/forks","keys_url":"https://api.github.com/repos/bean601/OpenRA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bean601/OpenRA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bean601/OpenRA/teams","hooks_url":"https://api.github.com/repos/bean601/OpenRA/hooks","issue_events_url":"https://api.github.com/repos/bean601/OpenRA/issues/events{/number}","events_url":"https://api.github.com/repos/bean601/OpenRA/events","assignees_url":"https://api.github.com/repos/bean601/OpenRA/assignees{/user}","branches_url":"https://api.github.com/repos/bean601/OpenRA/branches{/branch}","tags_url":"https://api.github.com/repos/bean601/OpenRA/tags","blobs_url":"https://api.github.com/repos/bean601/OpenRA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bean601/OpenRA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bean601/OpenRA/git/refs{/sha}","trees_url":"https://api.github.com/repos/bean601/OpenRA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bean601/OpenRA/statuses/{sha}","languages_url":"https://api.github.com/repos/bean601/OpenRA/languages","stargazers_url":"https://api.github.com/repos/bean601/OpenRA/stargazers","contributors_url":"https://api.github.com/repos/bean601/OpenRA/contributors","subscribers_url":"https://api.github.com/repos/bean601/OpenRA/subscribers","subscription_url":"https://api.github.com/repos/bean601/OpenRA/subscription","commits_url":"https://api.github.com/repos/bean601/OpenRA/commits{/sha}","git_commits_url":"https://api.github.com/repos/bean601/OpenRA/git/commits{/sha}","comments_url":"https://api.github.com/repos/bean601/OpenRA/comments{/number}","issue_comment_url":"https://api.github.com/repos/bean601/OpenRA/issues/comments{/number}","contents_url":"https://api.github.com/repos/bean601/OpenRA/contents/{+path}","compare_url":"https://api.github.com/repos/bean601/OpenRA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bean601/OpenRA/merges","archive_url":"https://api.github.com/repos/bean601/OpenRA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bean601/OpenRA/downloads","issues_url":"https://api.github.com/repos/bean601/OpenRA/issues{/number}","pulls_url":"https://api.github.com/repos/bean601/OpenRA/pulls{/number}","milestones_url":"https://api.github.com/repos/bean601/OpenRA/milestones{/number}","notifications_url":"https://api.github.com/repos/bean601/OpenRA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bean601/OpenRA/labels{/name}","releases_url":"https://api.github.com/repos/bean601/OpenRA/releases{/id}","created_at":"2015-05-09T21:04:12Z","updated_at":"2015-05-09T21:04:17Z","pushed_at":"2015-05-11T03:06:23Z","git_url":"git://github.com/bean601/OpenRA.git","ssh_url":"git@github.com:bean601/OpenRA.git","clone_url":"https://github.com/bean601/OpenRA.git","svn_url":"https://github.com/bean601/OpenRA","homepage":"http://www.openra.net","size":86498,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"bleed"}},"base":{"label":"OpenRA:bleed","ref":"bleed","sha":"648dc31e24b640f67cf241e9300fa12b50e18707","user":{"login":"OpenRA","id":409046,"avatar_url":"https://avatars.githubusercontent.com/u/409046?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"repo":{"id":959908,"name":"OpenRA","full_name":"OpenRA/OpenRA","owner":{"login":"OpenRA","id":409046,"avatar_url":"https://avatars.githubusercontent.com/u/409046?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenRA/OpenRA","description":"An open-source implementation of the Command & Conquer: Red Alert engine using .NET/Mono and OpenGL. Runs on Windows, Linux and Mac OS X.","fork":false,"url":"https://api.github.com/repos/OpenRA/OpenRA","forks_url":"https://api.github.com/repos/OpenRA/OpenRA/forks","keys_url":"https://api.github.com/repos/OpenRA/OpenRA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenRA/OpenRA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenRA/OpenRA/teams","hooks_url":"https://api.github.com/repos/OpenRA/OpenRA/hooks","issue_events_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/events{/number}","events_url":"https://api.github.com/repos/OpenRA/OpenRA/events","assignees_url":"https://api.github.com/repos/OpenRA/OpenRA/assignees{/user}","branches_url":"https://api.github.com/repos/OpenRA/OpenRA/branches{/branch}","tags_url":"https://api.github.com/repos/OpenRA/OpenRA/tags","blobs_url":"https://api.github.com/repos/OpenRA/OpenRA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenRA/OpenRA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenRA/OpenRA/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenRA/OpenRA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenRA/OpenRA/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenRA/OpenRA/languages","stargazers_url":"https://api.github.com/repos/OpenRA/OpenRA/stargazers","contributors_url":"https://api.github.com/repos/OpenRA/OpenRA/contributors","subscribers_url":"https://api.github.com/repos/OpenRA/OpenRA/subscribers","subscription_url":"https://api.github.com/repos/OpenRA/OpenRA/subscription","commits_url":"https://api.github.com/repos/OpenRA/OpenRA/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenRA/OpenRA/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenRA/OpenRA/contents/{+path}","compare_url":"https://api.github.com/repos/OpenRA/OpenRA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenRA/OpenRA/merges","archive_url":"https://api.github.com/repos/OpenRA/OpenRA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenRA/OpenRA/downloads","issues_url":"https://api.github.com/repos/OpenRA/OpenRA/issues{/number}","pulls_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenRA/OpenRA/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenRA/OpenRA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/labels{/name}","releases_url":"https://api.github.com/repos/OpenRA/OpenRA/releases{/id}","created_at":"2010-10-04T07:38:05Z","updated_at":"2015-05-10T17:43:23Z","pushed_at":"2015-05-11T03:06:23Z","git_url":"git://github.com/OpenRA/OpenRA.git","ssh_url":"git@github.com:OpenRA/OpenRA.git","clone_url":"https://github.com/OpenRA/OpenRA.git","svn_url":"https://github.com/OpenRA/OpenRA","homepage":"http://www.openra.net","size":174110,"stargazers_count":1897,"watchers_count":1897,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":688,"mirror_url":null,"open_issues_count":807,"forks":688,"open_issues":807,"watchers":1897,"default_branch":"bleed"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/8140"},"html":{"href":"https://github.com/OpenRA/OpenRA/pull/8140"},"issue":{"href":"https://api.github.com/repos/OpenRA/OpenRA/issues/8140"},"comments":{"href":"https://api.github.com/repos/OpenRA/OpenRA/issues/8140/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/8140/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/8140/commits"},"statuses":{"href":"https://api.github.com/repos/OpenRA/OpenRA/statuses/958b7d60788eeccf01d0688427b02973cf80bc6b"}}}}