{"action":"created","comment":{"url":"https://api.github.com/repos/Cadasta/api-docs/pulls/comments/147137183","pull_request_review_id":72187143,"id":147137183,"diff_hunk":"@@ -1,29 +1,26 @@\n #!/bin/bash\n \n-rm -rf dddocs\n-rm -rf docs-build\n+if [ \"$TRAVIS_PULL_REQUEST\" != \"false\" -o \"$TRAVIS_REPO_SLUG\" != \"cadasta/api-docs\" ]; then\n+    echo \"Just a PR.\"\n+    exit 0\n+fi\n+\n+git clone --quiet --branch=gh-pages https://oliverroick:$API_KEY@github.com/cadasta/api-docs  /home/travis/build/cadasta/docs-branch\n+\n mkdir docs-build\n-npm install\n npm run build\n \n-git clone -b gh-pages --single-branch git@github.com:Cadasta/api-docs.git dddocs\n-yes | cp -rf docs-build/index.html dddocs\n-yes | cp -rf docs-build/bundle.js dddocs\n-yes | cp -rf css dddocs/css\n-yes | cp -rf lib dddocs/lib\n+cp -rf docs-build/index.html /home/travis/build/cadasta/docs-branch\n+cp -rf docs-build/bundle.js /home/travis/build/cadasta/docs-branch\n+cp -rf css /home/travis/build/cadasta/docs-branch/css\n+cp -rf lib /home/travis/build/cadasta/docs-branch/lib\n \n-cd dddocs\n-if [[ $(git diff) || \"$1\" == \"initial\" ]]; then\n-    echo \"Deploying...\"\n-    git add .\n-    git commit -m 'Deploy docs'\n-    git push origin gh-pages\n-else\n-    echo \"Nothing to deploy.\"\n-fi\n+cd /home/travis/build/cadasta/docs-branch\n+\n+git config --global user.name \"m-murad\"\n+git config --global user.email \"murad.kuka@gmail.com\"\n \n-echo \"Cleaning up...\"\n-cd ..\n-rm -rf dddocs\n-rm -rf docs-build\n-echo \"Done.\"\n+git add .\n+git commit -m \"Deploy docs\"","path":"deploy.sh","position":46,"original_position":46,"commit_id":"0e2ab021d3007c58e9f94fc3a7976f6cf50b4f78","original_commit_id":"0e2ab021d3007c58e9f94fc3a7976f6cf50b4f78","user":{"login":"m-murad","id":17262180,"avatar_url":"https://avatars3.githubusercontent.com/u/17262180?v=4","gravatar_id":"","url":"https://api.github.com/users/m-murad","html_url":"https://github.com/m-murad","followers_url":"https://api.github.com/users/m-murad/followers","following_url":"https://api.github.com/users/m-murad/following{/other_user}","gists_url":"https://api.github.com/users/m-murad/gists{/gist_id}","starred_url":"https://api.github.com/users/m-murad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-murad/subscriptions","organizations_url":"https://api.github.com/users/m-murad/orgs","repos_url":"https://api.github.com/users/m-murad/repos","events_url":"https://api.github.com/users/m-murad/events{/privacy}","received_events_url":"https://api.github.com/users/m-murad/received_events","type":"User","site_admin":false},"body":"I'm still not able to understand what you are trying to say.\r\n\r\nI checked this repository but no tag has been created for this repository. Maybe if you can explain it to me.\r\n\r\nWhat we can do we can use the commit message of the commit that is being build or the branch of the pull request.","created_at":"2017-10-26T13:16:32Z","updated_at":"2017-10-26T13:16:32Z","html_url":"https://github.com/Cadasta/api-docs/pull/44#discussion_r147137183","pull_request_url":"https://api.github.com/repos/Cadasta/api-docs/pulls/44","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Cadasta/api-docs/pulls/comments/147137183"},"html":{"href":"https://github.com/Cadasta/api-docs/pull/44#discussion_r147137183"},"pull_request":{"href":"https://api.github.com/repos/Cadasta/api-docs/pulls/44"}},"in_reply_to_id":147105674},"pull_request":{"url":"https://api.github.com/repos/Cadasta/api-docs/pulls/44","id":147686690,"html_url":"https://github.com/Cadasta/api-docs/pull/44","diff_url":"https://github.com/Cadasta/api-docs/pull/44.diff","patch_url":"https://github.com/Cadasta/api-docs/pull/44.patch","issue_url":"https://api.github.com/repos/Cadasta/api-docs/issues/44","number":44,"state":"open","locked":false,"title":"Auto update gh-pages branch when docs are updated.","user":{"login":"m-murad","id":17262180,"avatar_url":"https://avatars3.githubusercontent.com/u/17262180?v=4","gravatar_id":"","url":"https://api.github.com/users/m-murad","html_url":"https://github.com/m-murad","followers_url":"https://api.github.com/users/m-murad/followers","following_url":"https://api.github.com/users/m-murad/following{/other_user}","gists_url":"https://api.github.com/users/m-murad/gists{/gist_id}","starred_url":"https://api.github.com/users/m-murad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-murad/subscriptions","organizations_url":"https://api.github.com/users/m-murad/orgs","repos_url":"https://api.github.com/users/m-murad/repos","events_url":"https://api.github.com/users/m-murad/events{/privacy}","received_events_url":"https://api.github.com/users/m-murad/received_events","type":"User","site_admin":false},"body":"This PR is relate to #40 \r\nThis will auto update `gh-pages` branch when `master` branch is updated.\r\n\r\n@oliverroick please review.","created_at":"2017-10-19T23:09:21Z","updated_at":"2017-10-26T13:16:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92c8d93f15e00a63d41f0f2c580453958db26ba4","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Cadasta/api-docs/pulls/44/commits","review_comments_url":"https://api.github.com/repos/Cadasta/api-docs/pulls/44/comments","review_comment_url":"https://api.github.com/repos/Cadasta/api-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cadasta/api-docs/issues/44/comments","statuses_url":"https://api.github.com/repos/Cadasta/api-docs/statuses/0e2ab021d3007c58e9f94fc3a7976f6cf50b4f78","head":{"label":"m-murad:auto-build","ref":"auto-build","sha":"0e2ab021d3007c58e9f94fc3a7976f6cf50b4f78","user":{"login":"m-murad","id":17262180,"avatar_url":"https://avatars3.githubusercontent.com/u/17262180?v=4","gravatar_id":"","url":"https://api.github.com/users/m-murad","html_url":"https://github.com/m-murad","followers_url":"https://api.github.com/users/m-murad/followers","following_url":"https://api.github.com/users/m-murad/following{/other_user}","gists_url":"https://api.github.com/users/m-murad/gists{/gist_id}","starred_url":"https://api.github.com/users/m-murad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-murad/subscriptions","organizations_url":"https://api.github.com/users/m-murad/orgs","repos_url":"https://api.github.com/users/m-murad/repos","events_url":"https://api.github.com/users/m-murad/events{/privacy}","received_events_url":"https://api.github.com/users/m-murad/received_events","type":"User","site_admin":false},"repo":{"id":103924409,"name":"api-docs","full_name":"m-murad/api-docs","owner":{"login":"m-murad","id":17262180,"avatar_url":"https://avatars3.githubusercontent.com/u/17262180?v=4","gravatar_id":"","url":"https://api.github.com/users/m-murad","html_url":"https://github.com/m-murad","followers_url":"https://api.github.com/users/m-murad/followers","following_url":"https://api.github.com/users/m-murad/following{/other_user}","gists_url":"https://api.github.com/users/m-murad/gists{/gist_id}","starred_url":"https://api.github.com/users/m-murad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-murad/subscriptions","organizations_url":"https://api.github.com/users/m-murad/orgs","repos_url":"https://api.github.com/users/m-murad/repos","events_url":"https://api.github.com/users/m-murad/events{/privacy}","received_events_url":"https://api.github.com/users/m-murad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/m-murad/api-docs","description":"Cadasta API documentation","fork":true,"url":"https://api.github.com/repos/m-murad/api-docs","forks_url":"https://api.github.com/repos/m-murad/api-docs/forks","keys_url":"https://api.github.com/repos/m-murad/api-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/m-murad/api-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/m-murad/api-docs/teams","hooks_url":"https://api.github.com/repos/m-murad/api-docs/hooks","issue_events_url":"https://api.github.com/repos/m-murad/api-docs/issues/events{/number}","events_url":"https://api.github.com/repos/m-murad/api-docs/events","assignees_url":"https://api.github.com/repos/m-murad/api-docs/assignees{/user}","branches_url":"https://api.github.com/repos/m-murad/api-docs/branches{/branch}","tags_url":"https://api.github.com/repos/m-murad/api-docs/tags","blobs_url":"https://api.github.com/repos/m-murad/api-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/m-murad/api-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/m-murad/api-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/m-murad/api-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/m-murad/api-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/m-murad/api-docs/languages","stargazers_url":"https://api.github.com/repos/m-murad/api-docs/stargazers","contributors_url":"https://api.github.com/repos/m-murad/api-docs/contributors","subscribers_url":"https://api.github.com/repos/m-murad/api-docs/subscribers","subscription_url":"https://api.github.com/repos/m-murad/api-docs/subscription","commits_url":"https://api.github.com/repos/m-murad/api-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/m-murad/api-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/m-murad/api-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/m-murad/api-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/m-murad/api-docs/contents/{+path}","compare_url":"https://api.github.com/repos/m-murad/api-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/m-murad/api-docs/merges","archive_url":"https://api.github.com/repos/m-murad/api-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/m-murad/api-docs/downloads","issues_url":"https://api.github.com/repos/m-murad/api-docs/issues{/number}","pulls_url":"https://api.github.com/repos/m-murad/api-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/m-murad/api-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/m-murad/api-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/m-murad/api-docs/labels{/name}","releases_url":"https://api.github.com/repos/m-murad/api-docs/releases{/id}","deployments_url":"https://api.github.com/repos/m-murad/api-docs/deployments","created_at":"2017-09-18T10:18:38Z","updated_at":"2017-09-18T10:18:40Z","pushed_at":"2017-10-19T23:02:13Z","git_url":"git://github.com/m-murad/api-docs.git","ssh_url":"git@github.com:m-murad/api-docs.git","clone_url":"https://github.com/m-murad/api-docs.git","svn_url":"https://github.com/m-murad/api-docs","homepage":"https://cadasta.github.io/api-docs/","size":2562,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Cadasta:master","ref":"master","sha":"325aa3a0382691a9409c41814f2eafaf4fbc3feb","user":{"login":"Cadasta","id":11321107,"avatar_url":"https://avatars0.githubusercontent.com/u/11321107?v=4","gravatar_id":"","url":"https://api.github.com/users/Cadasta","html_url":"https://github.com/Cadasta","followers_url":"https://api.github.com/users/Cadasta/followers","following_url":"https://api.github.com/users/Cadasta/following{/other_user}","gists_url":"https://api.github.com/users/Cadasta/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadasta/subscriptions","organizations_url":"https://api.github.com/users/Cadasta/orgs","repos_url":"https://api.github.com/users/Cadasta/repos","events_url":"https://api.github.com/users/Cadasta/events{/privacy}","received_events_url":"https://api.github.com/users/Cadasta/received_events","type":"Organization","site_admin":false},"repo":{"id":68730651,"name":"api-docs","full_name":"Cadasta/api-docs","owner":{"login":"Cadasta","id":11321107,"avatar_url":"https://avatars0.githubusercontent.com/u/11321107?v=4","gravatar_id":"","url":"https://api.github.com/users/Cadasta","html_url":"https://github.com/Cadasta","followers_url":"https://api.github.com/users/Cadasta/followers","following_url":"https://api.github.com/users/Cadasta/following{/other_user}","gists_url":"https://api.github.com/users/Cadasta/gists{/gist_id}","starred_url":"https://api.github.com/users/Cadasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cadasta/subscriptions","organizations_url":"https://api.github.com/users/Cadasta/orgs","repos_url":"https://api.github.com/users/Cadasta/repos","events_url":"https://api.github.com/users/Cadasta/events{/privacy}","received_events_url":"https://api.github.com/users/Cadasta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cadasta/api-docs","description":"Cadasta API documentation","fork":false,"url":"https://api.github.com/repos/Cadasta/api-docs","forks_url":"https://api.github.com/repos/Cadasta/api-docs/forks","keys_url":"https://api.github.com/repos/Cadasta/api-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cadasta/api-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cadasta/api-docs/teams","hooks_url":"https://api.github.com/repos/Cadasta/api-docs/hooks","issue_events_url":"https://api.github.com/repos/Cadasta/api-docs/issues/events{/number}","events_url":"https://api.github.com/repos/Cadasta/api-docs/events","assignees_url":"https://api.github.com/repos/Cadasta/api-docs/assignees{/user}","branches_url":"https://api.github.com/repos/Cadasta/api-docs/branches{/branch}","tags_url":"https://api.github.com/repos/Cadasta/api-docs/tags","blobs_url":"https://api.github.com/repos/Cadasta/api-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cadasta/api-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cadasta/api-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cadasta/api-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cadasta/api-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/Cadasta/api-docs/languages","stargazers_url":"https://api.github.com/repos/Cadasta/api-docs/stargazers","contributors_url":"https://api.github.com/repos/Cadasta/api-docs/contributors","subscribers_url":"https://api.github.com/repos/Cadasta/api-docs/subscribers","subscription_url":"https://api.github.com/repos/Cadasta/api-docs/subscription","commits_url":"https://api.github.com/repos/Cadasta/api-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cadasta/api-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cadasta/api-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cadasta/api-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cadasta/api-docs/contents/{+path}","compare_url":"https://api.github.com/repos/Cadasta/api-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cadasta/api-docs/merges","archive_url":"https://api.github.com/repos/Cadasta/api-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cadasta/api-docs/downloads","issues_url":"https://api.github.com/repos/Cadasta/api-docs/issues{/number}","pulls_url":"https://api.github.com/repos/Cadasta/api-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/Cadasta/api-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/Cadasta/api-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cadasta/api-docs/labels{/name}","releases_url":"https://api.github.com/repos/Cadasta/api-docs/releases{/id}","deployments_url":"https://api.github.com/repos/Cadasta/api-docs/deployments","created_at":"2016-09-20T16:19:31Z","updated_at":"2017-01-16T08:16:33Z","pushed_at":"2017-10-19T23:09:22Z","git_url":"git://github.com/Cadasta/api-docs.git","ssh_url":"git@github.com:Cadasta/api-docs.git","clone_url":"https://github.com/Cadasta/api-docs.git","svn_url":"https://github.com/Cadasta/api-docs","homepage":"https://cadasta.github.io/api-docs/","size":2465,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cadasta/api-docs/pulls/44"},"html":{"href":"https://github.com/Cadasta/api-docs/pull/44"},"issue":{"href":"https://api.github.com/repos/Cadasta/api-docs/issues/44"},"comments":{"href":"https://api.github.com/repos/Cadasta/api-docs/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/Cadasta/api-docs/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/Cadasta/api-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cadasta/api-docs/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/Cadasta/api-docs/statuses/0e2ab021d3007c58e9f94fc3a7976f6cf50b4f78"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"m-murad"}}