{"action":"opened","number":22,"pull_request":{"url":"https://api.github.com/repos/code-mancers/dockup/pulls/22","id":65078315,"html_url":"https://github.com/code-mancers/dockup/pull/22","diff_url":"https://github.com/code-mancers/dockup/pull/22.diff","patch_url":"https://github.com/code-mancers/dockup/pull/22.patch","issue_url":"https://api.github.com/repos/code-mancers/dockup/issues/22","number":22,"state":"open","locked":false,"title":"Wire up functions for static site deployment","user":{"login":"emilsoman","id":1707078,"avatar_url":"https://avatars.githubusercontent.com/u/1707078?v=3","gravatar_id":"","url":"https://api.github.com/users/emilsoman","html_url":"https://github.com/emilsoman","followers_url":"https://api.github.com/users/emilsoman/followers","following_url":"https://api.github.com/users/emilsoman/following{/other_user}","gists_url":"https://api.github.com/users/emilsoman/gists{/gist_id}","starred_url":"https://api.github.com/users/emilsoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emilsoman/subscriptions","organizations_url":"https://api.github.com/users/emilsoman/orgs","repos_url":"https://api.github.com/users/emilsoman/repos","events_url":"https://api.github.com/users/emilsoman/events{/privacy}","received_events_url":"https://api.github.com/users/emilsoman/received_events","type":"User","site_admin":false},"body":"How to test:\r\n```\r\n# Start app inside vagrant\r\n1. vagrant up\r\n2. cd /vagrant\r\n3. DOCKUP_DOMAIN=192.168.88.88.xip.io DOCKUP_WORKDIR=/vagrant/workdir DOCKUP_NGINX_CONFIG_DIR=/vagrant/nginx_config_dir iex -S mix\r\n```\r\n\r\n```\r\n# From host, send a request to app running in vagrant\r\ncurl -XPOST  -d '{\"repository\":\"https://github.com/syui/hugo-theme-air.git\",\"branch\":\"gh-pages\",\"callback_url\":\"fake_callback\"}' -H \"Content-Type: application/json\" http://192.168.88.88:8000/deploy\r\n```","created_at":"2016-04-03T19:45:29Z","updated_at":"2016-04-03T19:45:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/code-mancers/dockup/pulls/22/commits","review_comments_url":"https://api.github.com/repos/code-mancers/dockup/pulls/22/comments","review_comment_url":"https://api.github.com/repos/code-mancers/dockup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-mancers/dockup/issues/22/comments","statuses_url":"https://api.github.com/repos/code-mancers/dockup/statuses/90c103a22d3a3897496b1349e98f3544e0fb271e","head":{"label":"code-mancers:deploy-static-site","ref":"deploy-static-site","sha":"90c103a22d3a3897496b1349e98f3544e0fb271e","user":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"repo":{"id":50924387,"name":"dockup","full_name":"code-mancers/dockup","owner":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-mancers/dockup","description":"chatops_deployer redone in Elixir to make use of parallel builds and fault tolerance","fork":false,"url":"https://api.github.com/repos/code-mancers/dockup","forks_url":"https://api.github.com/repos/code-mancers/dockup/forks","keys_url":"https://api.github.com/repos/code-mancers/dockup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-mancers/dockup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-mancers/dockup/teams","hooks_url":"https://api.github.com/repos/code-mancers/dockup/hooks","issue_events_url":"https://api.github.com/repos/code-mancers/dockup/issues/events{/number}","events_url":"https://api.github.com/repos/code-mancers/dockup/events","assignees_url":"https://api.github.com/repos/code-mancers/dockup/assignees{/user}","branches_url":"https://api.github.com/repos/code-mancers/dockup/branches{/branch}","tags_url":"https://api.github.com/repos/code-mancers/dockup/tags","blobs_url":"https://api.github.com/repos/code-mancers/dockup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-mancers/dockup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-mancers/dockup/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-mancers/dockup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-mancers/dockup/statuses/{sha}","languages_url":"https://api.github.com/repos/code-mancers/dockup/languages","stargazers_url":"https://api.github.com/repos/code-mancers/dockup/stargazers","contributors_url":"https://api.github.com/repos/code-mancers/dockup/contributors","subscribers_url":"https://api.github.com/repos/code-mancers/dockup/subscribers","subscription_url":"https://api.github.com/repos/code-mancers/dockup/subscription","commits_url":"https://api.github.com/repos/code-mancers/dockup/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-mancers/dockup/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-mancers/dockup/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-mancers/dockup/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-mancers/dockup/contents/{+path}","compare_url":"https://api.github.com/repos/code-mancers/dockup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-mancers/dockup/merges","archive_url":"https://api.github.com/repos/code-mancers/dockup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-mancers/dockup/downloads","issues_url":"https://api.github.com/repos/code-mancers/dockup/issues{/number}","pulls_url":"https://api.github.com/repos/code-mancers/dockup/pulls{/number}","milestones_url":"https://api.github.com/repos/code-mancers/dockup/milestones{/number}","notifications_url":"https://api.github.com/repos/code-mancers/dockup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-mancers/dockup/labels{/name}","releases_url":"https://api.github.com/repos/code-mancers/dockup/releases{/id}","deployments_url":"https://api.github.com/repos/code-mancers/dockup/deployments","created_at":"2016-02-02T14:02:11Z","updated_at":"2016-03-31T13:17:41Z","pushed_at":"2016-04-03T19:45:27Z","git_url":"git://github.com/code-mancers/dockup.git","ssh_url":"git@github.com:code-mancers/dockup.git","clone_url":"https://github.com/code-mancers/dockup.git","svn_url":"https://github.com/code-mancers/dockup","homepage":null,"size":53,"stargazers_count":1,"watchers_count":1,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"code-mancers:master","ref":"master","sha":"8c646b2c265b8752ef3b72fd142b1ed17b85fb1b","user":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"repo":{"id":50924387,"name":"dockup","full_name":"code-mancers/dockup","owner":{"login":"code-mancers","id":1137275,"avatar_url":"https://avatars.githubusercontent.com/u/1137275?v=3","gravatar_id":"","url":"https://api.github.com/users/code-mancers","html_url":"https://github.com/code-mancers","followers_url":"https://api.github.com/users/code-mancers/followers","following_url":"https://api.github.com/users/code-mancers/following{/other_user}","gists_url":"https://api.github.com/users/code-mancers/gists{/gist_id}","starred_url":"https://api.github.com/users/code-mancers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-mancers/subscriptions","organizations_url":"https://api.github.com/users/code-mancers/orgs","repos_url":"https://api.github.com/users/code-mancers/repos","events_url":"https://api.github.com/users/code-mancers/events{/privacy}","received_events_url":"https://api.github.com/users/code-mancers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-mancers/dockup","description":"chatops_deployer redone in Elixir to make use of parallel builds and fault tolerance","fork":false,"url":"https://api.github.com/repos/code-mancers/dockup","forks_url":"https://api.github.com/repos/code-mancers/dockup/forks","keys_url":"https://api.github.com/repos/code-mancers/dockup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-mancers/dockup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-mancers/dockup/teams","hooks_url":"https://api.github.com/repos/code-mancers/dockup/hooks","issue_events_url":"https://api.github.com/repos/code-mancers/dockup/issues/events{/number}","events_url":"https://api.github.com/repos/code-mancers/dockup/events","assignees_url":"https://api.github.com/repos/code-mancers/dockup/assignees{/user}","branches_url":"https://api.github.com/repos/code-mancers/dockup/branches{/branch}","tags_url":"https://api.github.com/repos/code-mancers/dockup/tags","blobs_url":"https://api.github.com/repos/code-mancers/dockup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-mancers/dockup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-mancers/dockup/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-mancers/dockup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-mancers/dockup/statuses/{sha}","languages_url":"https://api.github.com/repos/code-mancers/dockup/languages","stargazers_url":"https://api.github.com/repos/code-mancers/dockup/stargazers","contributors_url":"https://api.github.com/repos/code-mancers/dockup/contributors","subscribers_url":"https://api.github.com/repos/code-mancers/dockup/subscribers","subscription_url":"https://api.github.com/repos/code-mancers/dockup/subscription","commits_url":"https://api.github.com/repos/code-mancers/dockup/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-mancers/dockup/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-mancers/dockup/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-mancers/dockup/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-mancers/dockup/contents/{+path}","compare_url":"https://api.github.com/repos/code-mancers/dockup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-mancers/dockup/merges","archive_url":"https://api.github.com/repos/code-mancers/dockup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-mancers/dockup/downloads","issues_url":"https://api.github.com/repos/code-mancers/dockup/issues{/number}","pulls_url":"https://api.github.com/repos/code-mancers/dockup/pulls{/number}","milestones_url":"https://api.github.com/repos/code-mancers/dockup/milestones{/number}","notifications_url":"https://api.github.com/repos/code-mancers/dockup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-mancers/dockup/labels{/name}","releases_url":"https://api.github.com/repos/code-mancers/dockup/releases{/id}","deployments_url":"https://api.github.com/repos/code-mancers/dockup/deployments","created_at":"2016-02-02T14:02:11Z","updated_at":"2016-03-31T13:17:41Z","pushed_at":"2016-04-03T19:45:27Z","git_url":"git://github.com/code-mancers/dockup.git","ssh_url":"git@github.com:code-mancers/dockup.git","clone_url":"https://github.com/code-mancers/dockup.git","svn_url":"https://github.com/code-mancers/dockup","homepage":null,"size":53,"stargazers_count":1,"watchers_count":1,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-mancers/dockup/pulls/22"},"html":{"href":"https://github.com/code-mancers/dockup/pull/22"},"issue":{"href":"https://api.github.com/repos/code-mancers/dockup/issues/22"},"comments":{"href":"https://api.github.com/repos/code-mancers/dockup/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/code-mancers/dockup/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/code-mancers/dockup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-mancers/dockup/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/code-mancers/dockup/statuses/90c103a22d3a3897496b1349e98f3544e0fb271e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":63,"deletions":42,"changed_files":12}}