{"action":"closed","number":75,"pull_request":{"url":"https://api.github.com/repos/cozy/cozy-monitor/pulls/75","id":34810638,"html_url":"https://github.com/cozy/cozy-monitor/pull/75","diff_url":"https://github.com/cozy/cozy-monitor/pull/75.diff","patch_url":"https://github.com/cozy/cozy-monitor/pull/75.patch","issue_url":"https://api.github.com/repos/cozy/cozy-monitor/issues/75","number":75,"state":"closed","locked":false,"title":"[enh] Enable app deployment via Git","user":{"login":"Kloadut","id":1279740,"avatar_url":"https://avatars.githubusercontent.com/u/1279740?v=3","gravatar_id":"","url":"https://api.github.com/users/Kloadut","html_url":"https://github.com/Kloadut","followers_url":"https://api.github.com/users/Kloadut/followers","following_url":"https://api.github.com/users/Kloadut/following{/other_user}","gists_url":"https://api.github.com/users/Kloadut/gists{/gist_id}","starred_url":"https://api.github.com/users/Kloadut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kloadut/subscriptions","organizations_url":"https://api.github.com/users/Kloadut/orgs","repos_url":"https://api.github.com/users/Kloadut/repos","events_url":"https://api.github.com/users/Kloadut/events{/privacy}","received_events_url":"https://api.github.com/users/Kloadut/received_events","type":"User","site_admin":false},"body":"## Idea\r\n\r\nBeing able to `git push` to the proxy and deploy an app this way.\r\n\r\n```\r\n$ git remote add cozy https://mycozy.cozycloud.cc/repo/myapp\r\n$ git push cozy master\r\nUsername for 'https://mycozy.cozycloud.cc': \r\nPassword for 'https://my@email.org@mycozy.cozycloud.cc': \r\nremote: Counting objects: 75, done.\r\nremote: Compressing objects: 100% (53/53), done.\r\nremote: Total 62 (delta 27), reused 44 (delta 9)\r\nremote: \r\nremote: info - Deploying 'myapp'\r\nremote: info - Application 'myapp' has been deployed\r\nremote:\r\nUnpacking objects: 100% (62/62), done.\r\nTo https://mycozy.cozycloud.cc/repo/myapp\r\n* [new branch]      master     -> cozy/master\r\n```\r\n\r\n## Details for cozy-monitor\r\nThe monitor is modified to handle a new action `cozy-monitor deploy` which is called during the `post-update` Git hook. It deploys an app from a local git repository without checking it out.\r\n\r\nTo merge along with:\r\n* https://github.com/cozy/cozy-home/pull/343\r\n* https://github.com/cozy/cozy-controller/pull/58\r\n* https://github.com/cozy/cozy-proxy/pull/118\r\n\r\n**It lacks of test for now, please keep this PR open**","created_at":"2015-05-06T12:18:18Z","updated_at":"2015-08-13T01:03:58Z","closed_at":"2015-08-13T01:03:58Z","merged_at":null,"merge_commit_sha":"e46edc8a4a3c024487e36a3b15411b135357cf96","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cozy/cozy-monitor/pulls/75/commits","review_comments_url":"https://api.github.com/repos/cozy/cozy-monitor/pulls/75/comments","review_comment_url":"https://api.github.com/repos/cozy/cozy-monitor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cozy/cozy-monitor/issues/75/comments","statuses_url":"https://api.github.com/repos/cozy/cozy-monitor/statuses/52abf7cb462a50e10fb7468e21939505583fd60f","head":{"label":"Kloadut:master","ref":"master","sha":"52abf7cb462a50e10fb7468e21939505583fd60f","user":{"login":"Kloadut","id":1279740,"avatar_url":"https://avatars.githubusercontent.com/u/1279740?v=3","gravatar_id":"","url":"https://api.github.com/users/Kloadut","html_url":"https://github.com/Kloadut","followers_url":"https://api.github.com/users/Kloadut/followers","following_url":"https://api.github.com/users/Kloadut/following{/other_user}","gists_url":"https://api.github.com/users/Kloadut/gists{/gist_id}","starred_url":"https://api.github.com/users/Kloadut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kloadut/subscriptions","organizations_url":"https://api.github.com/users/Kloadut/orgs","repos_url":"https://api.github.com/users/Kloadut/repos","events_url":"https://api.github.com/users/Kloadut/events{/privacy}","received_events_url":"https://api.github.com/users/Kloadut/received_events","type":"User","site_admin":false},"repo":{"id":34502538,"name":"cozy-monitor","full_name":"Kloadut/cozy-monitor","owner":{"login":"Kloadut","id":1279740,"avatar_url":"https://avatars.githubusercontent.com/u/1279740?v=3","gravatar_id":"","url":"https://api.github.com/users/Kloadut","html_url":"https://github.com/Kloadut","followers_url":"https://api.github.com/users/Kloadut/followers","following_url":"https://api.github.com/users/Kloadut/following{/other_user}","gists_url":"https://api.github.com/users/Kloadut/gists{/gist_id}","starred_url":"https://api.github.com/users/Kloadut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kloadut/subscriptions","organizations_url":"https://api.github.com/users/Kloadut/orgs","repos_url":"https://api.github.com/users/Kloadut/repos","events_url":"https://api.github.com/users/Kloadut/events{/privacy}","received_events_url":"https://api.github.com/users/Kloadut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kloadut/cozy-monitor","description":"A tool to manage your Cozy Platform from the command line.","fork":true,"url":"https://api.github.com/repos/Kloadut/cozy-monitor","forks_url":"https://api.github.com/repos/Kloadut/cozy-monitor/forks","keys_url":"https://api.github.com/repos/Kloadut/cozy-monitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kloadut/cozy-monitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kloadut/cozy-monitor/teams","hooks_url":"https://api.github.com/repos/Kloadut/cozy-monitor/hooks","issue_events_url":"https://api.github.com/repos/Kloadut/cozy-monitor/issues/events{/number}","events_url":"https://api.github.com/repos/Kloadut/cozy-monitor/events","assignees_url":"https://api.github.com/repos/Kloadut/cozy-monitor/assignees{/user}","branches_url":"https://api.github.com/repos/Kloadut/cozy-monitor/branches{/branch}","tags_url":"https://api.github.com/repos/Kloadut/cozy-monitor/tags","blobs_url":"https://api.github.com/repos/Kloadut/cozy-monitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kloadut/cozy-monitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kloadut/cozy-monitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kloadut/cozy-monitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kloadut/cozy-monitor/statuses/{sha}","languages_url":"https://api.github.com/repos/Kloadut/cozy-monitor/languages","stargazers_url":"https://api.github.com/repos/Kloadut/cozy-monitor/stargazers","contributors_url":"https://api.github.com/repos/Kloadut/cozy-monitor/contributors","subscribers_url":"https://api.github.com/repos/Kloadut/cozy-monitor/subscribers","subscription_url":"https://api.github.com/repos/Kloadut/cozy-monitor/subscription","commits_url":"https://api.github.com/repos/Kloadut/cozy-monitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kloadut/cozy-monitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kloadut/cozy-monitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kloadut/cozy-monitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kloadut/cozy-monitor/contents/{+path}","compare_url":"https://api.github.com/repos/Kloadut/cozy-monitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kloadut/cozy-monitor/merges","archive_url":"https://api.github.com/repos/Kloadut/cozy-monitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kloadut/cozy-monitor/downloads","issues_url":"https://api.github.com/repos/Kloadut/cozy-monitor/issues{/number}","pulls_url":"https://api.github.com/repos/Kloadut/cozy-monitor/pulls{/number}","milestones_url":"https://api.github.com/repos/Kloadut/cozy-monitor/milestones{/number}","notifications_url":"https://api.github.com/repos/Kloadut/cozy-monitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kloadut/cozy-monitor/labels{/name}","releases_url":"https://api.github.com/repos/Kloadut/cozy-monitor/releases{/id}","created_at":"2015-04-24T06:45:18Z","updated_at":"2015-05-06T11:20:45Z","pushed_at":"2015-05-06T11:20:45Z","git_url":"git://github.com/Kloadut/cozy-monitor.git","ssh_url":"git@github.com:Kloadut/cozy-monitor.git","clone_url":"https://github.com/Kloadut/cozy-monitor.git","svn_url":"https://github.com/Kloadut/cozy-monitor","homepage":"http://cozy.io","size":415,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","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":"cozy:master","ref":"master","sha":"a098ec8b23b45b5e4cb02006935408ab3002007b","user":{"login":"cozy","id":7690525,"avatar_url":"https://avatars.githubusercontent.com/u/7690525?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"repo":{"id":9580881,"name":"cozy-monitor","full_name":"cozy/cozy-monitor","owner":{"login":"cozy","id":7690525,"avatar_url":"https://avatars.githubusercontent.com/u/7690525?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cozy/cozy-monitor","description":"A tool to manage your Cozy Platform from the command line.","fork":false,"url":"https://api.github.com/repos/cozy/cozy-monitor","forks_url":"https://api.github.com/repos/cozy/cozy-monitor/forks","keys_url":"https://api.github.com/repos/cozy/cozy-monitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cozy/cozy-monitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cozy/cozy-monitor/teams","hooks_url":"https://api.github.com/repos/cozy/cozy-monitor/hooks","issue_events_url":"https://api.github.com/repos/cozy/cozy-monitor/issues/events{/number}","events_url":"https://api.github.com/repos/cozy/cozy-monitor/events","assignees_url":"https://api.github.com/repos/cozy/cozy-monitor/assignees{/user}","branches_url":"https://api.github.com/repos/cozy/cozy-monitor/branches{/branch}","tags_url":"https://api.github.com/repos/cozy/cozy-monitor/tags","blobs_url":"https://api.github.com/repos/cozy/cozy-monitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cozy/cozy-monitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cozy/cozy-monitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/cozy/cozy-monitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cozy/cozy-monitor/statuses/{sha}","languages_url":"https://api.github.com/repos/cozy/cozy-monitor/languages","stargazers_url":"https://api.github.com/repos/cozy/cozy-monitor/stargazers","contributors_url":"https://api.github.com/repos/cozy/cozy-monitor/contributors","subscribers_url":"https://api.github.com/repos/cozy/cozy-monitor/subscribers","subscription_url":"https://api.github.com/repos/cozy/cozy-monitor/subscription","commits_url":"https://api.github.com/repos/cozy/cozy-monitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/cozy/cozy-monitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/cozy/cozy-monitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/cozy/cozy-monitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/cozy/cozy-monitor/contents/{+path}","compare_url":"https://api.github.com/repos/cozy/cozy-monitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cozy/cozy-monitor/merges","archive_url":"https://api.github.com/repos/cozy/cozy-monitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cozy/cozy-monitor/downloads","issues_url":"https://api.github.com/repos/cozy/cozy-monitor/issues{/number}","pulls_url":"https://api.github.com/repos/cozy/cozy-monitor/pulls{/number}","milestones_url":"https://api.github.com/repos/cozy/cozy-monitor/milestones{/number}","notifications_url":"https://api.github.com/repos/cozy/cozy-monitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cozy/cozy-monitor/labels{/name}","releases_url":"https://api.github.com/repos/cozy/cozy-monitor/releases{/id}","created_at":"2013-04-21T14:53:35Z","updated_at":"2015-07-22T14:00:29Z","pushed_at":"2015-08-11T13:47:50Z","git_url":"git://github.com/cozy/cozy-monitor.git","ssh_url":"git@github.com:cozy/cozy-monitor.git","clone_url":"https://github.com/cozy/cozy-monitor.git","svn_url":"https://github.com/cozy/cozy-monitor","homepage":"http://cozy.io","size":1211,"stargazers_count":10,"watchers_count":10,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":11,"forks":11,"open_issues":11,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cozy/cozy-monitor/pulls/75"},"html":{"href":"https://github.com/cozy/cozy-monitor/pull/75"},"issue":{"href":"https://api.github.com/repos/cozy/cozy-monitor/issues/75"},"comments":{"href":"https://api.github.com/repos/cozy/cozy-monitor/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/cozy/cozy-monitor/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/cozy/cozy-monitor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cozy/cozy-monitor/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/cozy/cozy-monitor/statuses/52abf7cb462a50e10fb7468e21939505583fd60f"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"commits":2,"additions":67,"deletions":5,"changed_files":3}}