{"action":"created","comment":{"url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/comments/77461010","id":77461010,"diff_hunk":"@@ -0,0 +1,51 @@\n+var React = require('react');\n+var ReactRedux = require('react-redux');\n+var actions = require('../_actions.js');\n+\n+var DeployHistory = function(props) {\n+\tvar tableRows = [];\n+\n+\tfor (var i in props.data) {\n+\t\tvar row = props.data[i];\n+\t\ttableRows.push(\n+\t\t\t<tr key={i}>\n+\t\t\t\t<td>{row.CreatedDate}</td>\n+\t\t\t\t<td>{row.CommitMessage}</td>\n+\t\t\t\t<td>{row.Deployer}</td>\n+\t\t\t\t<td>{row.State}</td>\n+\t\t\t</tr>\n+\t\t);\n+\t}\n+\n+\treturn (\n+\t\t<div>\n+\t\t\t<h4>History</h4>\n+\t\t\t<table className=\"table table-striped table-hover\">\n+\t\t\t\t<thead>\n+\t\t\t\t\t<tr>\n+\t\t\t\t\t\t<th>Request date</th>\n+\t\t\t\t\t\t<th>Build details</th>\n+\t\t\t\t\t\t<th>Deployed by</th>\n+\t\t\t\t\t\t<th>Status</th>\n+\t\t\t\t\t</tr>\n+\t\t\t\t</thead>\n+\t\t\t\t<tbody>\n+\t\t\t\t\t{tableRows}\n+\t\t\t\t</tbody>\n+\t\t\t</table>\n+\t\t</div>\n+\t);\n+};\n+\n+const mapStateToProps = function(state) {\n+\treturn {\n+\t\tdata: state.deployhistory.data\n+\t};\n+};\n+\n+const mapDispatchToProps = function(dispatch) {\n+\tdispatch(actions.getDeployHistory());","path":"js/containers/DeployHistory.jsx","position":47,"original_position":47,"commit_id":"1fdbbf7f6e205f2b22f60188df771f5c70950d04","original_commit_id":"1fdbbf7f6e205f2b22f60188df771f5c70950d04","user":{"login":"stojg","id":485130,"avatar_url":"https://avatars.githubusercontent.com/u/485130?v=3","gravatar_id":"","url":"https://api.github.com/users/stojg","html_url":"https://github.com/stojg","followers_url":"https://api.github.com/users/stojg/followers","following_url":"https://api.github.com/users/stojg/following{/other_user}","gists_url":"https://api.github.com/users/stojg/gists{/gist_id}","starred_url":"https://api.github.com/users/stojg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stojg/subscriptions","organizations_url":"https://api.github.com/users/stojg/orgs","repos_url":"https://api.github.com/users/stojg/repos","events_url":"https://api.github.com/users/stojg/events{/privacy}","received_events_url":"https://api.github.com/users/stojg/received_events","type":"User","site_admin":false},"body":"this should not be here, this section is used for sending props that are callbacks for dispatching actions. For example a refresh button / link.\r\n\r\nSee Plan.jsx `store.dispatch(actions.getRevisionsIfNeeded());`","created_at":"2016-09-04T23:57:42Z","updated_at":"2016-09-04T23:57:42Z","html_url":"https://github.com/silverstripe/deploynaut/pull/622#discussion_r77461010","pull_request_url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/622","_links":{"self":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/comments/77461010"},"html":{"href":"https://github.com/silverstripe/deploynaut/pull/622#discussion_r77461010"},"pull_request":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/622"}}},"pull_request":{"url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/622","id":83937708,"html_url":"https://github.com/silverstripe/deploynaut/pull/622","diff_url":"https://github.com/silverstripe/deploynaut/pull/622.diff","patch_url":"https://github.com/silverstripe/deploynaut/pull/622.patch","issue_url":"https://api.github.com/repos/silverstripe/deploynaut/issues/622","number":622,"state":"open","locked":false,"title":"[wip] Adding deploy history to new deploy plan page","user":{"login":"halkyon","id":138450,"avatar_url":"https://avatars.githubusercontent.com/u/138450?v=3","gravatar_id":"","url":"https://api.github.com/users/halkyon","html_url":"https://github.com/halkyon","followers_url":"https://api.github.com/users/halkyon/followers","following_url":"https://api.github.com/users/halkyon/following{/other_user}","gists_url":"https://api.github.com/users/halkyon/gists{/gist_id}","starred_url":"https://api.github.com/users/halkyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halkyon/subscriptions","organizations_url":"https://api.github.com/users/halkyon/orgs","repos_url":"https://api.github.com/users/halkyon/repos","events_url":"https://api.github.com/users/halkyon/events{/privacy}","received_events_url":"https://api.github.com/users/halkyon/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-04T23:41:17Z","updated_at":"2016-09-04T23:57:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1865d3747beab2c10f6fe375b94f9879c767e3c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/622/commits","review_comments_url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/622/comments","review_comment_url":"https://api.github.com/repos/silverstripe/deploynaut/pulls/comments{/number}","comments_url":"https://api.github.com/repos/silverstripe/deploynaut/issues/622/comments","statuses_url":"https://api.github.com/repos/silverstripe/deploynaut/statuses/1fdbbf7f6e205f2b22f60188df771f5c70950d04","head":{"label":"silverstripe:deploy-history","ref":"deploy-history","sha":"1fdbbf7f6e205f2b22f60188df771f5c70950d04","user":{"login":"silverstripe","id":379348,"avatar_url":"https://avatars.githubusercontent.com/u/379348?v=3","gravatar_id":"","url":"https://api.github.com/users/silverstripe","html_url":"https://github.com/silverstripe","followers_url":"https://api.github.com/users/silverstripe/followers","following_url":"https://api.github.com/users/silverstripe/following{/other_user}","gists_url":"https://api.github.com/users/silverstripe/gists{/gist_id}","starred_url":"https://api.github.com/users/silverstripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverstripe/subscriptions","organizations_url":"https://api.github.com/users/silverstripe/orgs","repos_url":"https://api.github.com/users/silverstripe/repos","events_url":"https://api.github.com/users/silverstripe/events{/privacy}","received_events_url":"https://api.github.com/users/silverstripe/received_events","type":"Organization","site_admin":false},"repo":{"id":23821541,"name":"deploynaut","full_name":"silverstripe/deploynaut","owner":{"login":"silverstripe","id":379348,"avatar_url":"https://avatars.githubusercontent.com/u/379348?v=3","gravatar_id":"","url":"https://api.github.com/users/silverstripe","html_url":"https://github.com/silverstripe","followers_url":"https://api.github.com/users/silverstripe/followers","following_url":"https://api.github.com/users/silverstripe/following{/other_user}","gists_url":"https://api.github.com/users/silverstripe/gists{/gist_id}","starred_url":"https://api.github.com/users/silverstripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverstripe/subscriptions","organizations_url":"https://api.github.com/users/silverstripe/orgs","repos_url":"https://api.github.com/users/silverstripe/repos","events_url":"https://api.github.com/users/silverstripe/events{/privacy}","received_events_url":"https://api.github.com/users/silverstripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/silverstripe/deploynaut","description":"A web based tool for performing deployments","fork":false,"url":"https://api.github.com/repos/silverstripe/deploynaut","forks_url":"https://api.github.com/repos/silverstripe/deploynaut/forks","keys_url":"https://api.github.com/repos/silverstripe/deploynaut/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silverstripe/deploynaut/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silverstripe/deploynaut/teams","hooks_url":"https://api.github.com/repos/silverstripe/deploynaut/hooks","issue_events_url":"https://api.github.com/repos/silverstripe/deploynaut/issues/events{/number}","events_url":"https://api.github.com/repos/silverstripe/deploynaut/events","assignees_url":"https://api.github.com/repos/silverstripe/deploynaut/assignees{/user}","branches_url":"https://api.github.com/repos/silverstripe/deploynaut/branches{/branch}","tags_url":"https://api.github.com/repos/silverstripe/deploynaut/tags","blobs_url":"https://api.github.com/repos/silverstripe/deploynaut/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silverstripe/deploynaut/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silverstripe/deploynaut/git/refs{/sha}","trees_url":"https://api.github.com/repos/silverstripe/deploynaut/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silverstripe/deploynaut/statuses/{sha}","languages_url":"https://api.github.com/repos/silverstripe/deploynaut/languages","stargazers_url":"https://api.github.com/repos/silverstripe/deploynaut/stargazers","contributors_url":"https://api.github.com/repos/silverstripe/deploynaut/contributors","subscribers_url":"https://api.github.com/repos/silverstripe/deploynaut/subscribers","subscription_url":"https://api.github.com/repos/silverstripe/deploynaut/subscription","commits_url":"https://api.github.com/repos/silverstripe/deploynaut/commits{/sha}","git_commits_url":"https://api.github.com/repos/silverstripe/deploynaut/git/commits{/sha}","comments_url":"https://api.github.com/repos/silverstripe/deploynaut/comments{/number}","issue_comment_url":"https://api.github.com/repos/silverstripe/deploynaut/issues/comments{/number}","contents_url":"https://api.github.com/repos/silverstripe/deploynaut/contents/{+path}","compare_url":"https://api.github.com/repos/silverstripe/deploynaut/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silverstripe/deploynaut/merges","archive_url":"https://api.github.com/repos/silverstripe/deploynaut/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silverstripe/deploynaut/downloads","issues_url":"https://api.github.com/repos/silverstripe/deploynaut/issues{/number}","pulls_url":"https://api.github.com/repos/silverstripe/deploynaut/pulls{/number}","milestones_url":"https://api.github.com/repos/silverstripe/deploynaut/milestones{/number}","notifications_url":"https://api.github.com/repos/silverstripe/deploynaut/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silverstripe/deploynaut/labels{/name}","releases_url":"https://api.github.com/repos/silverstripe/deploynaut/releases{/id}","deployments_url":"https://api.github.com/repos/silverstripe/deploynaut/deployments","created_at":"2014-09-09T06:09:55Z","updated_at":"2016-08-28T04:15:04Z","pushed_at":"2016-09-04T23:43:20Z","git_url":"git://github.com/silverstripe/deploynaut.git","ssh_url":"git@github.com:silverstripe/deploynaut.git","clone_url":"https://github.com/silverstripe/deploynaut.git","svn_url":"https://github.com/silverstripe/deploynaut","homepage":"","size":7760,"stargazers_count":65,"watchers_count":65,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":52,"forks":31,"open_issues":52,"watchers":65,"default_branch":"1.1"}},"base":{"label":"silverstripe:master","ref":"master","sha":"c8af5e413ead6c98382261f9a8e5668d697735a8","user":{"login":"silverstripe","id":379348,"avatar_url":"https://avatars.githubusercontent.com/u/379348?v=3","gravatar_id":"","url":"https://api.github.com/users/silverstripe","html_url":"https://github.com/silverstripe","followers_url":"https://api.github.com/users/silverstripe/followers","following_url":"https://api.github.com/users/silverstripe/following{/other_user}","gists_url":"https://api.github.com/users/silverstripe/gists{/gist_id}","starred_url":"https://api.github.com/users/silverstripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverstripe/subscriptions","organizations_url":"https://api.github.com/users/silverstripe/orgs","repos_url":"https://api.github.com/users/silverstripe/repos","events_url":"https://api.github.com/users/silverstripe/events{/privacy}","received_events_url":"https://api.github.com/users/silverstripe/received_events","type":"Organization","site_admin":false},"repo":{"id":23821541,"name":"deploynaut","full_name":"silverstripe/deploynaut","owner":{"login":"silverstripe","id":379348,"avatar_url":"https://avatars.githubusercontent.com/u/379348?v=3","gravatar_id":"","url":"https://api.github.com/users/silverstripe","html_url":"https://github.com/silverstripe","followers_url":"https://api.github.com/users/silverstripe/followers","following_url":"https://api.github.com/users/silverstripe/following{/other_user}","gists_url":"https://api.github.com/users/silverstripe/gists{/gist_id}","starred_url":"https://api.github.com/users/silverstripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverstripe/subscriptions","organizations_url":"https://api.github.com/users/silverstripe/orgs","repos_url":"https://api.github.com/users/silverstripe/repos","events_url":"https://api.github.com/users/silverstripe/events{/privacy}","received_events_url":"https://api.github.com/users/silverstripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/silverstripe/deploynaut","description":"A web based tool for performing deployments","fork":false,"url":"https://api.github.com/repos/silverstripe/deploynaut","forks_url":"https://api.github.com/repos/silverstripe/deploynaut/forks","keys_url":"https://api.github.com/repos/silverstripe/deploynaut/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silverstripe/deploynaut/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silverstripe/deploynaut/teams","hooks_url":"https://api.github.com/repos/silverstripe/deploynaut/hooks","issue_events_url":"https://api.github.com/repos/silverstripe/deploynaut/issues/events{/number}","events_url":"https://api.github.com/repos/silverstripe/deploynaut/events","assignees_url":"https://api.github.com/repos/silverstripe/deploynaut/assignees{/user}","branches_url":"https://api.github.com/repos/silverstripe/deploynaut/branches{/branch}","tags_url":"https://api.github.com/repos/silverstripe/deploynaut/tags","blobs_url":"https://api.github.com/repos/silverstripe/deploynaut/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silverstripe/deploynaut/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silverstripe/deploynaut/git/refs{/sha}","trees_url":"https://api.github.com/repos/silverstripe/deploynaut/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silverstripe/deploynaut/statuses/{sha}","languages_url":"https://api.github.com/repos/silverstripe/deploynaut/languages","stargazers_url":"https://api.github.com/repos/silverstripe/deploynaut/stargazers","contributors_url":"https://api.github.com/repos/silverstripe/deploynaut/contributors","subscribers_url":"https://api.github.com/repos/silverstripe/deploynaut/subscribers","subscription_url":"https://api.github.com/repos/silverstripe/deploynaut/subscription","commits_url":"https://api.github.com/repos/silverstripe/deploynaut/commits{/sha}","git_commits_url":"https://api.github.com/repos/silverstripe/deploynaut/git/commits{/sha}","comments_url":"https://api.github.com/repos/silverstripe/deploynaut/comments{/number}","issue_comment_url":"https://api.github.com/repos/silverstripe/deploynaut/issues/comments{/number}","contents_url":"https://api.github.com/repos/silverstripe/deploynaut/contents/{+path}","compare_url":"https://api.github.com/repos/silverstripe/deploynaut/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silverstripe/deploynaut/merges","archive_url":"https://api.github.com/repos/silverstripe/deploynaut/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silverstripe/deploynaut/downloads","issues_url":"https://api.github.com/repos/silverstripe/deploynaut/issues{/number}","pulls_url":"https://api.github.com/repos/silverstripe/deploynaut/pulls{/number}","milestones_url":"https://api.github.com/repos/silverstripe/deploynaut/milestones{/number}","notifications_url":"https://api.github.com/repos/silverstripe/deploynaut/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silverstripe/deploynaut/labels{/name}","releases_url":"https://api.github.com/repos/silverstripe/deploynaut/releases{/id}","deployments_url":"https://api.github.com/repos/silverstripe/deploynaut/deployments","created_at":"2014-09-09T06:09:55Z","updated_at":"2016-08-28T04:15:04Z","pushed_at":"2016-09-04T23:43:20Z","git_url":"git://github.com/silverstripe/deploynaut.git","ssh_url":"git@github.com:silverstripe/deploynaut.git","clone_url":"https://github.com/silverstripe/deploynaut.git","svn_url":"https://github.com/silverstripe/deploynaut","homepage":"","size":7760,"stargazers_count":65,"watchers_count":65,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":52,"forks":31,"open_issues":52,"watchers":65,"default_branch":"1.1"}},"_links":{"self":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/622"},"html":{"href":"https://github.com/silverstripe/deploynaut/pull/622"},"issue":{"href":"https://api.github.com/repos/silverstripe/deploynaut/issues/622"},"comments":{"href":"https://api.github.com/repos/silverstripe/deploynaut/issues/622/comments"},"review_comments":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/622/comments"},"review_comment":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/silverstripe/deploynaut/pulls/622/commits"},"statuses":{"href":"https://api.github.com/repos/silverstripe/deploynaut/statuses/1fdbbf7f6e205f2b22f60188df771f5c70950d04"}}}}
{"actor":{"display_login":"stojg"}}