{"action":"created","comment":{"url":"https://api.github.com/repos/CommBank/ci/pulls/comments/61694477","id":61694477,"diff_hunk":"@@ -94,6 +100,68 @@ if [ \"$TAG\" = \"latest\" ]; then\n     exit 1\n fi\n \n+do_pages() {\n+  DOC_BRANCH=gh-pages\n+  \n+  if [ ! -z \"$DISABLE_DOCS\" ]; then\n+    echo \"Github pages document push disabled by DISABLE_DOCS\" 1>&2\n+    return\n+  fi\n+  \n+  GIT_REMOTE=$(git remote -v | cut -f2 | cut -d' ' -f1 | head -n1)\n+  if [ -z $GIT_REMOTE ]; then\n+    echoerr \"No git remote could be identified. Documentation build will not work.\"\n+    return\n+  fi\n+\n+  # Don't mess up .git dir branch state in real work dir - store where we were\n+  # Only relevant for local testers.\n+  ORIG_BRANCH=$(git symbolic-ref HEAD)\n+  \n+  # Make a site directory\n+  mkdir _site\n+\n+  export GIT_DIR=$(pwd)/.git\n+  export GIT_WORK_TREE=$(pwd)/_site\n+\n+  git symbolic-ref HEAD refs/heads/$DOC_BRANCH || exit 1\n+\n+  # Does gh-pages exist on the remote?\n+  if ! git show-ref refs/remotes/$GIT_REMOTE/$DOC_BRANCH; then\n+      # Create an empty branch.\n+      echoerr \"Warning: $DOC_BRANCH will be created (it did not exist on the remote)\"","path":"dockermake.bsh","position":53,"original_position":53,"commit_id":"2044aa03e48b71e87212301cd3d99a303ec15199","original_commit_id":"2044aa03e48b71e87212301cd3d99a303ec15199","user":{"login":"stephanh","id":376868,"avatar_url":"https://avatars.githubusercontent.com/u/376868?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanh","html_url":"https://github.com/stephanh","followers_url":"https://api.github.com/users/stephanh/followers","following_url":"https://api.github.com/users/stephanh/following{/other_user}","gists_url":"https://api.github.com/users/stephanh/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanh/subscriptions","organizations_url":"https://api.github.com/users/stephanh/orgs","repos_url":"https://api.github.com/users/stephanh/repos","events_url":"https://api.github.com/users/stephanh/events{/privacy}","received_events_url":"https://api.github.com/users/stephanh/received_events","type":"User","site_admin":false},"body":"Where are we creating the branch?","created_at":"2016-05-01T22:43:29Z","updated_at":"2016-05-01T22:43:29Z","html_url":"https://github.com/CommBank/ci/pull/40#discussion_r61694477","pull_request_url":"https://api.github.com/repos/CommBank/ci/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/CommBank/ci/pulls/comments/61694477"},"html":{"href":"https://github.com/CommBank/ci/pull/40#discussion_r61694477"},"pull_request":{"href":"https://api.github.com/repos/CommBank/ci/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/CommBank/ci/pulls/40","id":67836945,"html_url":"https://github.com/CommBank/ci/pull/40","diff_url":"https://github.com/CommBank/ci/pull/40.diff","patch_url":"https://github.com/CommBank/ci/pull/40.patch","issue_url":"https://api.github.com/repos/CommBank/ci/issues/40","number":40,"state":"open","locked":false,"title":"sbt-ci-build-doc.bsh and docker-version-docs.bsh script","user":{"login":"wrouesnel","id":772445,"avatar_url":"https://avatars.githubusercontent.com/u/772445?v=3","gravatar_id":"","url":"https://api.github.com/users/wrouesnel","html_url":"https://github.com/wrouesnel","followers_url":"https://api.github.com/users/wrouesnel/followers","following_url":"https://api.github.com/users/wrouesnel/following{/other_user}","gists_url":"https://api.github.com/users/wrouesnel/gists{/gist_id}","starred_url":"https://api.github.com/users/wrouesnel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrouesnel/subscriptions","organizations_url":"https://api.github.com/users/wrouesnel/orgs","repos_url":"https://api.github.com/users/wrouesnel/repos","events_url":"https://api.github.com/users/wrouesnel/events{/privacy}","received_events_url":"https://api.github.com/users/wrouesnel/received_events","type":"User","site_admin":false},"body":"Github pages build scripts. Both leave the details of the final branch push to the CI .yml file, and instead concern themselves with gently getting the project built into a subdirectory while being committed to the appropriate branch.\r\n\r\nTest suites are included for both which provides basic coverage that they run successfully (for sbt this includes building documentation for an included sample project).","created_at":"2016-04-26T07:13:11Z","updated_at":"2016-05-01T22:43:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad6e14afa31b467d766b485c6508534c6fa5ec48","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CommBank/ci/pulls/40/commits","review_comments_url":"https://api.github.com/repos/CommBank/ci/pulls/40/comments","review_comment_url":"https://api.github.com/repos/CommBank/ci/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CommBank/ci/issues/40/comments","statuses_url":"https://api.github.com/repos/CommBank/ci/statuses/2044aa03e48b71e87212301cd3d99a303ec15199","head":{"label":"wrouesnel:dockermake-ghpages","ref":"dockermake-ghpages","sha":"2044aa03e48b71e87212301cd3d99a303ec15199","user":{"login":"wrouesnel","id":772445,"avatar_url":"https://avatars.githubusercontent.com/u/772445?v=3","gravatar_id":"","url":"https://api.github.com/users/wrouesnel","html_url":"https://github.com/wrouesnel","followers_url":"https://api.github.com/users/wrouesnel/followers","following_url":"https://api.github.com/users/wrouesnel/following{/other_user}","gists_url":"https://api.github.com/users/wrouesnel/gists{/gist_id}","starred_url":"https://api.github.com/users/wrouesnel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrouesnel/subscriptions","organizations_url":"https://api.github.com/users/wrouesnel/orgs","repos_url":"https://api.github.com/users/wrouesnel/repos","events_url":"https://api.github.com/users/wrouesnel/events{/privacy}","received_events_url":"https://api.github.com/users/wrouesnel/received_events","type":"User","site_admin":false},"repo":{"id":54356184,"name":"ci","full_name":"wrouesnel/ci","owner":{"login":"wrouesnel","id":772445,"avatar_url":"https://avatars.githubusercontent.com/u/772445?v=3","gravatar_id":"","url":"https://api.github.com/users/wrouesnel","html_url":"https://github.com/wrouesnel","followers_url":"https://api.github.com/users/wrouesnel/followers","following_url":"https://api.github.com/users/wrouesnel/following{/other_user}","gists_url":"https://api.github.com/users/wrouesnel/gists{/gist_id}","starred_url":"https://api.github.com/users/wrouesnel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrouesnel/subscriptions","organizations_url":"https://api.github.com/users/wrouesnel/orgs","repos_url":"https://api.github.com/users/wrouesnel/repos","events_url":"https://api.github.com/users/wrouesnel/events{/privacy}","received_events_url":"https://api.github.com/users/wrouesnel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wrouesnel/ci","description":"Scripts used for Continuous Integration","fork":true,"url":"https://api.github.com/repos/wrouesnel/ci","forks_url":"https://api.github.com/repos/wrouesnel/ci/forks","keys_url":"https://api.github.com/repos/wrouesnel/ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wrouesnel/ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wrouesnel/ci/teams","hooks_url":"https://api.github.com/repos/wrouesnel/ci/hooks","issue_events_url":"https://api.github.com/repos/wrouesnel/ci/issues/events{/number}","events_url":"https://api.github.com/repos/wrouesnel/ci/events","assignees_url":"https://api.github.com/repos/wrouesnel/ci/assignees{/user}","branches_url":"https://api.github.com/repos/wrouesnel/ci/branches{/branch}","tags_url":"https://api.github.com/repos/wrouesnel/ci/tags","blobs_url":"https://api.github.com/repos/wrouesnel/ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wrouesnel/ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wrouesnel/ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/wrouesnel/ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wrouesnel/ci/statuses/{sha}","languages_url":"https://api.github.com/repos/wrouesnel/ci/languages","stargazers_url":"https://api.github.com/repos/wrouesnel/ci/stargazers","contributors_url":"https://api.github.com/repos/wrouesnel/ci/contributors","subscribers_url":"https://api.github.com/repos/wrouesnel/ci/subscribers","subscription_url":"https://api.github.com/repos/wrouesnel/ci/subscription","commits_url":"https://api.github.com/repos/wrouesnel/ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/wrouesnel/ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/wrouesnel/ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/wrouesnel/ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/wrouesnel/ci/contents/{+path}","compare_url":"https://api.github.com/repos/wrouesnel/ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wrouesnel/ci/merges","archive_url":"https://api.github.com/repos/wrouesnel/ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wrouesnel/ci/downloads","issues_url":"https://api.github.com/repos/wrouesnel/ci/issues{/number}","pulls_url":"https://api.github.com/repos/wrouesnel/ci/pulls{/number}","milestones_url":"https://api.github.com/repos/wrouesnel/ci/milestones{/number}","notifications_url":"https://api.github.com/repos/wrouesnel/ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wrouesnel/ci/labels{/name}","releases_url":"https://api.github.com/repos/wrouesnel/ci/releases{/id}","deployments_url":"https://api.github.com/repos/wrouesnel/ci/deployments","created_at":"2016-03-21T03:11:56Z","updated_at":"2016-03-21T03:11:57Z","pushed_at":"2016-04-26T07:24:05Z","git_url":"git://github.com/wrouesnel/ci.git","ssh_url":"git@github.com:wrouesnel/ci.git","clone_url":"https://github.com/wrouesnel/ci.git","svn_url":"https://github.com/wrouesnel/ci","homepage":null,"size":86,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"master"}},"base":{"label":"CommBank:master","ref":"master","sha":"3d8880bfd5adfd96401369077c17c3d46c15465b","user":{"login":"CommBank","id":4240076,"avatar_url":"https://avatars.githubusercontent.com/u/4240076?v=3","gravatar_id":"","url":"https://api.github.com/users/CommBank","html_url":"https://github.com/CommBank","followers_url":"https://api.github.com/users/CommBank/followers","following_url":"https://api.github.com/users/CommBank/following{/other_user}","gists_url":"https://api.github.com/users/CommBank/gists{/gist_id}","starred_url":"https://api.github.com/users/CommBank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CommBank/subscriptions","organizations_url":"https://api.github.com/users/CommBank/orgs","repos_url":"https://api.github.com/users/CommBank/repos","events_url":"https://api.github.com/users/CommBank/events{/privacy}","received_events_url":"https://api.github.com/users/CommBank/received_events","type":"Organization","site_admin":false},"repo":{"id":18632413,"name":"ci","full_name":"CommBank/ci","owner":{"login":"CommBank","id":4240076,"avatar_url":"https://avatars.githubusercontent.com/u/4240076?v=3","gravatar_id":"","url":"https://api.github.com/users/CommBank","html_url":"https://github.com/CommBank","followers_url":"https://api.github.com/users/CommBank/followers","following_url":"https://api.github.com/users/CommBank/following{/other_user}","gists_url":"https://api.github.com/users/CommBank/gists{/gist_id}","starred_url":"https://api.github.com/users/CommBank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CommBank/subscriptions","organizations_url":"https://api.github.com/users/CommBank/orgs","repos_url":"https://api.github.com/users/CommBank/repos","events_url":"https://api.github.com/users/CommBank/events{/privacy}","received_events_url":"https://api.github.com/users/CommBank/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CommBank/ci","description":"Scripts used for Continuous Integration","fork":false,"url":"https://api.github.com/repos/CommBank/ci","forks_url":"https://api.github.com/repos/CommBank/ci/forks","keys_url":"https://api.github.com/repos/CommBank/ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CommBank/ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CommBank/ci/teams","hooks_url":"https://api.github.com/repos/CommBank/ci/hooks","issue_events_url":"https://api.github.com/repos/CommBank/ci/issues/events{/number}","events_url":"https://api.github.com/repos/CommBank/ci/events","assignees_url":"https://api.github.com/repos/CommBank/ci/assignees{/user}","branches_url":"https://api.github.com/repos/CommBank/ci/branches{/branch}","tags_url":"https://api.github.com/repos/CommBank/ci/tags","blobs_url":"https://api.github.com/repos/CommBank/ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CommBank/ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CommBank/ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/CommBank/ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CommBank/ci/statuses/{sha}","languages_url":"https://api.github.com/repos/CommBank/ci/languages","stargazers_url":"https://api.github.com/repos/CommBank/ci/stargazers","contributors_url":"https://api.github.com/repos/CommBank/ci/contributors","subscribers_url":"https://api.github.com/repos/CommBank/ci/subscribers","subscription_url":"https://api.github.com/repos/CommBank/ci/subscription","commits_url":"https://api.github.com/repos/CommBank/ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/CommBank/ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/CommBank/ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/CommBank/ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/CommBank/ci/contents/{+path}","compare_url":"https://api.github.com/repos/CommBank/ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CommBank/ci/merges","archive_url":"https://api.github.com/repos/CommBank/ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CommBank/ci/downloads","issues_url":"https://api.github.com/repos/CommBank/ci/issues{/number}","pulls_url":"https://api.github.com/repos/CommBank/ci/pulls{/number}","milestones_url":"https://api.github.com/repos/CommBank/ci/milestones{/number}","notifications_url":"https://api.github.com/repos/CommBank/ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CommBank/ci/labels{/name}","releases_url":"https://api.github.com/repos/CommBank/ci/releases{/id}","deployments_url":"https://api.github.com/repos/CommBank/ci/deployments","created_at":"2014-04-10T10:22:45Z","updated_at":"2016-02-29T23:20:20Z","pushed_at":"2016-04-27T06:31:16Z","git_url":"git://github.com/CommBank/ci.git","ssh_url":"git@github.com:CommBank/ci.git","clone_url":"https://github.com/CommBank/ci.git","svn_url":"https://github.com/CommBank/ci","homepage":null,"size":92,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CommBank/ci/pulls/40"},"html":{"href":"https://github.com/CommBank/ci/pull/40"},"issue":{"href":"https://api.github.com/repos/CommBank/ci/issues/40"},"comments":{"href":"https://api.github.com/repos/CommBank/ci/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/CommBank/ci/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/CommBank/ci/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CommBank/ci/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/CommBank/ci/statuses/2044aa03e48b71e87212301cd3d99a303ec15199"}}}}