{"action":"created","comment":{"url":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/comments/50693723","id":50693723,"diff_hunk":"@@ -0,0 +1,156 @@\n+/*jshint browser:true*/\n+'use strict';\n+\n+var SectionList = require('./section-list'),\n+    xhr = require('./xhr'),\n+    byId = document.getElementById.bind(document),\n+    byClass = document.getElementsByClassName.bind(document);\n+\n+function Controller() {\n+    this._sections = new SectionList(this);\n+    this._runButton = byId('run');\n+    this._runFailedButton = byId('runFailed');\n+\n+    this._handleButtonClicks();\n+    this._listenForEvents();\n+}\n+\n+Controller.prototype = {\n+    runState: function(state) {","path":"lib/client/controller.js","position":19,"original_position":19,"commit_id":"a7192630fdebf23cf8df2027dcdcc41da05e3d67","original_commit_id":"a7192630fdebf23cf8df2027dcdcc41da05e3d67","user":{"login":"tormozz48","id":996162,"avatar_url":"https://avatars.githubusercontent.com/u/996162?v=3","gravatar_id":"","url":"https://api.github.com/users/tormozz48","html_url":"https://github.com/tormozz48","followers_url":"https://api.github.com/users/tormozz48/followers","following_url":"https://api.github.com/users/tormozz48/following{/other_user}","gists_url":"https://api.github.com/users/tormozz48/gists{/gist_id}","starred_url":"https://api.github.com/users/tormozz48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tormozz48/subscriptions","organizations_url":"https://api.github.com/users/tormozz48/orgs","repos_url":"https://api.github.com/users/tormozz48/repos","events_url":"https://api.github.com/users/tormozz48/events{/privacy}","received_events_url":"https://api.github.com/users/tormozz48/received_events","type":"User","site_admin":false},"body":"А можно  написать `runState: this._performRun` ?","created_at":"2016-01-25T13:39:10Z","updated_at":"2016-01-25T13:39:10Z","html_url":"https://github.com/gemini-testing/gemini-gui/pull/24#discussion_r50693723","pull_request_url":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/comments/50693723"},"html":{"href":"https://github.com/gemini-testing/gemini-gui/pull/24#discussion_r50693723"},"pull_request":{"href":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/24","id":56512360,"html_url":"https://github.com/gemini-testing/gemini-gui/pull/24","diff_url":"https://github.com/gemini-testing/gemini-gui/pull/24.diff","patch_url":"https://github.com/gemini-testing/gemini-gui/pull/24.patch","issue_url":"https://api.github.com/repos/gemini-testing/gemini-gui/issues/24","number":24,"state":"open","locked":false,"title":"Added retry button to retry all states. Added buttons to retry failed states.","user":{"login":"SwinX","id":854899,"avatar_url":"https://avatars.githubusercontent.com/u/854899?v=3","gravatar_id":"","url":"https://api.github.com/users/SwinX","html_url":"https://github.com/SwinX","followers_url":"https://api.github.com/users/SwinX/followers","following_url":"https://api.github.com/users/SwinX/following{/other_user}","gists_url":"https://api.github.com/users/SwinX/gists{/gist_id}","starred_url":"https://api.github.com/users/SwinX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwinX/subscriptions","organizations_url":"https://api.github.com/users/SwinX/orgs","repos_url":"https://api.github.com/users/SwinX/repos","events_url":"https://api.github.com/users/SwinX/events{/privacy}","received_events_url":"https://api.github.com/users/SwinX/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-19T19:22:02Z","updated_at":"2016-01-25T13:39:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c03f5086eb729a3270fef8f984a9a80f9340658","assignee":{"login":"SwinX","id":854899,"avatar_url":"https://avatars.githubusercontent.com/u/854899?v=3","gravatar_id":"","url":"https://api.github.com/users/SwinX","html_url":"https://github.com/SwinX","followers_url":"https://api.github.com/users/SwinX/followers","following_url":"https://api.github.com/users/SwinX/following{/other_user}","gists_url":"https://api.github.com/users/SwinX/gists{/gist_id}","starred_url":"https://api.github.com/users/SwinX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwinX/subscriptions","organizations_url":"https://api.github.com/users/SwinX/orgs","repos_url":"https://api.github.com/users/SwinX/repos","events_url":"https://api.github.com/users/SwinX/events{/privacy}","received_events_url":"https://api.github.com/users/SwinX/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/24/commits","review_comments_url":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/24/comments","review_comment_url":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gemini-testing/gemini-gui/issues/24/comments","statuses_url":"https://api.github.com/repos/gemini-testing/gemini-gui/statuses/a7192630fdebf23cf8df2027dcdcc41da05e3d67","head":{"label":"gemini-testing:FEI-1130","ref":"FEI-1130","sha":"a7192630fdebf23cf8df2027dcdcc41da05e3d67","user":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"repo":{"id":24412537,"name":"gemini-gui","full_name":"gemini-testing/gemini-gui","owner":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gemini-testing/gemini-gui","description":"GUI for gemini","fork":false,"url":"https://api.github.com/repos/gemini-testing/gemini-gui","forks_url":"https://api.github.com/repos/gemini-testing/gemini-gui/forks","keys_url":"https://api.github.com/repos/gemini-testing/gemini-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gemini-testing/gemini-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gemini-testing/gemini-gui/teams","hooks_url":"https://api.github.com/repos/gemini-testing/gemini-gui/hooks","issue_events_url":"https://api.github.com/repos/gemini-testing/gemini-gui/issues/events{/number}","events_url":"https://api.github.com/repos/gemini-testing/gemini-gui/events","assignees_url":"https://api.github.com/repos/gemini-testing/gemini-gui/assignees{/user}","branches_url":"https://api.github.com/repos/gemini-testing/gemini-gui/branches{/branch}","tags_url":"https://api.github.com/repos/gemini-testing/gemini-gui/tags","blobs_url":"https://api.github.com/repos/gemini-testing/gemini-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gemini-testing/gemini-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gemini-testing/gemini-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/gemini-testing/gemini-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gemini-testing/gemini-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/gemini-testing/gemini-gui/languages","stargazers_url":"https://api.github.com/repos/gemini-testing/gemini-gui/stargazers","contributors_url":"https://api.github.com/repos/gemini-testing/gemini-gui/contributors","subscribers_url":"https://api.github.com/repos/gemini-testing/gemini-gui/subscribers","subscription_url":"https://api.github.com/repos/gemini-testing/gemini-gui/subscription","commits_url":"https://api.github.com/repos/gemini-testing/gemini-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/gemini-testing/gemini-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/gemini-testing/gemini-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/gemini-testing/gemini-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/gemini-testing/gemini-gui/contents/{+path}","compare_url":"https://api.github.com/repos/gemini-testing/gemini-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gemini-testing/gemini-gui/merges","archive_url":"https://api.github.com/repos/gemini-testing/gemini-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gemini-testing/gemini-gui/downloads","issues_url":"https://api.github.com/repos/gemini-testing/gemini-gui/issues{/number}","pulls_url":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/gemini-testing/gemini-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/gemini-testing/gemini-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gemini-testing/gemini-gui/labels{/name}","releases_url":"https://api.github.com/repos/gemini-testing/gemini-gui/releases{/id}","deployments_url":"https://api.github.com/repos/gemini-testing/gemini-gui/deployments","created_at":"2014-09-24T11:36:56Z","updated_at":"2016-01-19T19:05:33Z","pushed_at":"2016-01-25T13:38:11Z","git_url":"git://github.com/gemini-testing/gemini-gui.git","ssh_url":"git@github.com:gemini-testing/gemini-gui.git","clone_url":"https://github.com/gemini-testing/gemini-gui.git","svn_url":"https://github.com/gemini-testing/gemini-gui","homepage":null,"size":118,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":21,"default_branch":"master"}},"base":{"label":"gemini-testing:master","ref":"master","sha":"a914025d9ad184352f609303e649ae9be411ebb7","user":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"repo":{"id":24412537,"name":"gemini-gui","full_name":"gemini-testing/gemini-gui","owner":{"login":"gemini-testing","id":11424134,"avatar_url":"https://avatars.githubusercontent.com/u/11424134?v=3","gravatar_id":"","url":"https://api.github.com/users/gemini-testing","html_url":"https://github.com/gemini-testing","followers_url":"https://api.github.com/users/gemini-testing/followers","following_url":"https://api.github.com/users/gemini-testing/following{/other_user}","gists_url":"https://api.github.com/users/gemini-testing/gists{/gist_id}","starred_url":"https://api.github.com/users/gemini-testing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gemini-testing/subscriptions","organizations_url":"https://api.github.com/users/gemini-testing/orgs","repos_url":"https://api.github.com/users/gemini-testing/repos","events_url":"https://api.github.com/users/gemini-testing/events{/privacy}","received_events_url":"https://api.github.com/users/gemini-testing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gemini-testing/gemini-gui","description":"GUI for gemini","fork":false,"url":"https://api.github.com/repos/gemini-testing/gemini-gui","forks_url":"https://api.github.com/repos/gemini-testing/gemini-gui/forks","keys_url":"https://api.github.com/repos/gemini-testing/gemini-gui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gemini-testing/gemini-gui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gemini-testing/gemini-gui/teams","hooks_url":"https://api.github.com/repos/gemini-testing/gemini-gui/hooks","issue_events_url":"https://api.github.com/repos/gemini-testing/gemini-gui/issues/events{/number}","events_url":"https://api.github.com/repos/gemini-testing/gemini-gui/events","assignees_url":"https://api.github.com/repos/gemini-testing/gemini-gui/assignees{/user}","branches_url":"https://api.github.com/repos/gemini-testing/gemini-gui/branches{/branch}","tags_url":"https://api.github.com/repos/gemini-testing/gemini-gui/tags","blobs_url":"https://api.github.com/repos/gemini-testing/gemini-gui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gemini-testing/gemini-gui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gemini-testing/gemini-gui/git/refs{/sha}","trees_url":"https://api.github.com/repos/gemini-testing/gemini-gui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gemini-testing/gemini-gui/statuses/{sha}","languages_url":"https://api.github.com/repos/gemini-testing/gemini-gui/languages","stargazers_url":"https://api.github.com/repos/gemini-testing/gemini-gui/stargazers","contributors_url":"https://api.github.com/repos/gemini-testing/gemini-gui/contributors","subscribers_url":"https://api.github.com/repos/gemini-testing/gemini-gui/subscribers","subscription_url":"https://api.github.com/repos/gemini-testing/gemini-gui/subscription","commits_url":"https://api.github.com/repos/gemini-testing/gemini-gui/commits{/sha}","git_commits_url":"https://api.github.com/repos/gemini-testing/gemini-gui/git/commits{/sha}","comments_url":"https://api.github.com/repos/gemini-testing/gemini-gui/comments{/number}","issue_comment_url":"https://api.github.com/repos/gemini-testing/gemini-gui/issues/comments{/number}","contents_url":"https://api.github.com/repos/gemini-testing/gemini-gui/contents/{+path}","compare_url":"https://api.github.com/repos/gemini-testing/gemini-gui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gemini-testing/gemini-gui/merges","archive_url":"https://api.github.com/repos/gemini-testing/gemini-gui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gemini-testing/gemini-gui/downloads","issues_url":"https://api.github.com/repos/gemini-testing/gemini-gui/issues{/number}","pulls_url":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls{/number}","milestones_url":"https://api.github.com/repos/gemini-testing/gemini-gui/milestones{/number}","notifications_url":"https://api.github.com/repos/gemini-testing/gemini-gui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gemini-testing/gemini-gui/labels{/name}","releases_url":"https://api.github.com/repos/gemini-testing/gemini-gui/releases{/id}","deployments_url":"https://api.github.com/repos/gemini-testing/gemini-gui/deployments","created_at":"2014-09-24T11:36:56Z","updated_at":"2016-01-19T19:05:33Z","pushed_at":"2016-01-25T13:38:11Z","git_url":"git://github.com/gemini-testing/gemini-gui.git","ssh_url":"git@github.com:gemini-testing/gemini-gui.git","clone_url":"https://github.com/gemini-testing/gemini-gui.git","svn_url":"https://github.com/gemini-testing/gemini-gui","homepage":null,"size":118,"stargazers_count":21,"watchers_count":21,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/24"},"html":{"href":"https://github.com/gemini-testing/gemini-gui/pull/24"},"issue":{"href":"https://api.github.com/repos/gemini-testing/gemini-gui/issues/24"},"comments":{"href":"https://api.github.com/repos/gemini-testing/gemini-gui/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gemini-testing/gemini-gui/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/gemini-testing/gemini-gui/statuses/a7192630fdebf23cf8df2027dcdcc41da05e3d67"}}}}