{"action":"created","comment":{"url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments/48385639","id":48385639,"diff_hunk":"@@ -37,6 +48,22 @@ public static void PromptConfirmAction(string title, string text, Action onConfi\n \t\t\t\tif (onCancel != null)\n \t\t\t\t\tonCancel();\n \t\t\t};\n+\n+\t\t\tvar restartButton = prompt.Get<ButtonWidget>(\"RESTART_BUTTON\");","path":"OpenRA.Mods.Common/Widgets/ConfirmationDialogs.cs","position":31,"original_position":31,"commit_id":"008a4e72276b4fd82b86385a46a3c523b57f1a7c","original_commit_id":"008a4e72276b4fd82b86385a46a3c523b57f1a7c","user":{"login":"Phrohdoh","id":4861023,"avatar_url":"https://avatars.githubusercontent.com/u/4861023?v=3","gravatar_id":"","url":"https://api.github.com/users/Phrohdoh","html_url":"https://github.com/Phrohdoh","followers_url":"https://api.github.com/users/Phrohdoh/followers","following_url":"https://api.github.com/users/Phrohdoh/following{/other_user}","gists_url":"https://api.github.com/users/Phrohdoh/gists{/gist_id}","starred_url":"https://api.github.com/users/Phrohdoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phrohdoh/subscriptions","organizations_url":"https://api.github.com/users/Phrohdoh/orgs","repos_url":"https://api.github.com/users/Phrohdoh/repos","events_url":"https://api.github.com/users/Phrohdoh/events{/privacy}","received_events_url":"https://api.github.com/users/Phrohdoh/received_events","type":"User","site_admin":false},"body":"Please use `GetOrDefault` followed by a null check.\r\nMods should not be required to add this button.","created_at":"2015-12-23T22:58:11Z","updated_at":"2015-12-23T22:58:11Z","html_url":"https://github.com/OpenRA/OpenRA/pull/10264#discussion_r48385639","pull_request_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10264","_links":{"self":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments/48385639"},"html":{"href":"https://github.com/OpenRA/OpenRA/pull/10264#discussion_r48385639"},"pull_request":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10264"}}},"pull_request":{"url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10264","id":54432639,"html_url":"https://github.com/OpenRA/OpenRA/pull/10264","diff_url":"https://github.com/OpenRA/OpenRA/pull/10264.diff","patch_url":"https://github.com/OpenRA/OpenRA/pull/10264.patch","issue_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/10264","number":10264,"state":"open","locked":false,"title":"Restart button for missions","user":{"login":"whinis","id":7612064,"avatar_url":"https://avatars.githubusercontent.com/u/7612064?v=3","gravatar_id":"","url":"https://api.github.com/users/whinis","html_url":"https://github.com/whinis","followers_url":"https://api.github.com/users/whinis/followers","following_url":"https://api.github.com/users/whinis/following{/other_user}","gists_url":"https://api.github.com/users/whinis/gists{/gist_id}","starred_url":"https://api.github.com/users/whinis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whinis/subscriptions","organizations_url":"https://api.github.com/users/whinis/orgs","repos_url":"https://api.github.com/users/whinis/repos","events_url":"https://api.github.com/users/whinis/events{/privacy}","received_events_url":"https://api.github.com/users/whinis/received_events","type":"User","site_admin":false},"body":"This Addresses #4874 and follows on Pull Request #7411\r\nAdds a restart button to the abort menu and end game menu to allow restarting of the mission\r\nFixes bug in Pull Request #7411 that prevented new replay files from being created for restarted missions and crashes in the resulting single file.\r\n","created_at":"2015-12-23T01:10:23Z","updated_at":"2015-12-23T22:58:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97f237296e5d2c942fa9d9331cc4bfee783b4c74","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10264/commits","review_comments_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10264/comments","review_comment_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/10264/comments","statuses_url":"https://api.github.com/repos/OpenRA/OpenRA/statuses/008a4e72276b4fd82b86385a46a3c523b57f1a7c","head":{"label":"whinis:bleed","ref":"bleed","sha":"008a4e72276b4fd82b86385a46a3c523b57f1a7c","user":{"login":"whinis","id":7612064,"avatar_url":"https://avatars.githubusercontent.com/u/7612064?v=3","gravatar_id":"","url":"https://api.github.com/users/whinis","html_url":"https://github.com/whinis","followers_url":"https://api.github.com/users/whinis/followers","following_url":"https://api.github.com/users/whinis/following{/other_user}","gists_url":"https://api.github.com/users/whinis/gists{/gist_id}","starred_url":"https://api.github.com/users/whinis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whinis/subscriptions","organizations_url":"https://api.github.com/users/whinis/orgs","repos_url":"https://api.github.com/users/whinis/repos","events_url":"https://api.github.com/users/whinis/events{/privacy}","received_events_url":"https://api.github.com/users/whinis/received_events","type":"User","site_admin":false},"repo":{"id":48453437,"name":"OpenRA","full_name":"whinis/OpenRA","owner":{"login":"whinis","id":7612064,"avatar_url":"https://avatars.githubusercontent.com/u/7612064?v=3","gravatar_id":"","url":"https://api.github.com/users/whinis","html_url":"https://github.com/whinis","followers_url":"https://api.github.com/users/whinis/followers","following_url":"https://api.github.com/users/whinis/following{/other_user}","gists_url":"https://api.github.com/users/whinis/gists{/gist_id}","starred_url":"https://api.github.com/users/whinis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whinis/subscriptions","organizations_url":"https://api.github.com/users/whinis/orgs","repos_url":"https://api.github.com/users/whinis/repos","events_url":"https://api.github.com/users/whinis/events{/privacy}","received_events_url":"https://api.github.com/users/whinis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/whinis/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/whinis/OpenRA","forks_url":"https://api.github.com/repos/whinis/OpenRA/forks","keys_url":"https://api.github.com/repos/whinis/OpenRA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whinis/OpenRA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whinis/OpenRA/teams","hooks_url":"https://api.github.com/repos/whinis/OpenRA/hooks","issue_events_url":"https://api.github.com/repos/whinis/OpenRA/issues/events{/number}","events_url":"https://api.github.com/repos/whinis/OpenRA/events","assignees_url":"https://api.github.com/repos/whinis/OpenRA/assignees{/user}","branches_url":"https://api.github.com/repos/whinis/OpenRA/branches{/branch}","tags_url":"https://api.github.com/repos/whinis/OpenRA/tags","blobs_url":"https://api.github.com/repos/whinis/OpenRA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whinis/OpenRA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whinis/OpenRA/git/refs{/sha}","trees_url":"https://api.github.com/repos/whinis/OpenRA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whinis/OpenRA/statuses/{sha}","languages_url":"https://api.github.com/repos/whinis/OpenRA/languages","stargazers_url":"https://api.github.com/repos/whinis/OpenRA/stargazers","contributors_url":"https://api.github.com/repos/whinis/OpenRA/contributors","subscribers_url":"https://api.github.com/repos/whinis/OpenRA/subscribers","subscription_url":"https://api.github.com/repos/whinis/OpenRA/subscription","commits_url":"https://api.github.com/repos/whinis/OpenRA/commits{/sha}","git_commits_url":"https://api.github.com/repos/whinis/OpenRA/git/commits{/sha}","comments_url":"https://api.github.com/repos/whinis/OpenRA/comments{/number}","issue_comment_url":"https://api.github.com/repos/whinis/OpenRA/issues/comments{/number}","contents_url":"https://api.github.com/repos/whinis/OpenRA/contents/{+path}","compare_url":"https://api.github.com/repos/whinis/OpenRA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whinis/OpenRA/merges","archive_url":"https://api.github.com/repos/whinis/OpenRA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whinis/OpenRA/downloads","issues_url":"https://api.github.com/repos/whinis/OpenRA/issues{/number}","pulls_url":"https://api.github.com/repos/whinis/OpenRA/pulls{/number}","milestones_url":"https://api.github.com/repos/whinis/OpenRA/milestones{/number}","notifications_url":"https://api.github.com/repos/whinis/OpenRA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whinis/OpenRA/labels{/name}","releases_url":"https://api.github.com/repos/whinis/OpenRA/releases{/id}","created_at":"2015-12-22T20:52:38Z","updated_at":"2015-12-22T20:52:44Z","pushed_at":"2015-12-23T16:02:36Z","git_url":"git://github.com/whinis/OpenRA.git","ssh_url":"git@github.com:whinis/OpenRA.git","clone_url":"https://github.com/whinis/OpenRA.git","svn_url":"https://github.com/whinis/OpenRA","homepage":"http://www.openra.net","size":98564,"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":"387d0d0e3f024e16d607f6ff4ee598f5a1cd4d6d","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":"Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD 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-12-23T22:51:20Z","pushed_at":"2015-12-23T20:20:36Z","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":139619,"stargazers_count":2383,"watchers_count":2383,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":845,"mirror_url":null,"open_issues_count":940,"forks":845,"open_issues":940,"watchers":2383,"default_branch":"bleed"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10264"},"html":{"href":"https://github.com/OpenRA/OpenRA/pull/10264"},"issue":{"href":"https://api.github.com/repos/OpenRA/OpenRA/issues/10264"},"comments":{"href":"https://api.github.com/repos/OpenRA/OpenRA/issues/10264/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10264/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10264/commits"},"statuses":{"href":"https://api.github.com/repos/OpenRA/OpenRA/statuses/008a4e72276b4fd82b86385a46a3c523b57f1a7c"}}}}