{"action":"created","comment":{"url":"https://api.github.com/repos/medic/medic-api/pulls/comments/134210809","pull_request_review_id":57475098,"id":134210809,"diff_hunk":"@@ -1237,3 +1237,32 @@ DELETE /api/v1/users/mary\n ```\n HTTP/1.1 200 OK\n ```\n+\n+# Upgrades\n+\n+Initiates an upgrade to the provided version. Once this endpoint is called [Horticulturalist](https://github.com/medic/horticulturalist) will take over and complete the installation.\n+\n+### Permissions\n+\n+`_admin` (CouchDB Administrator)\n+\n+## Example\n+\n+```\n+POST /api/v1/upgrade\n+{\n+  \"build\": {\n+    \"namespace\": \"medic\",\n+    \"application\": \"medic\",\n+    \"version\": \"3.0.0-beta.1\"\n+  }\n+}\n+```\n+","path":"README.md","position":25,"original_position":25,"commit_id":"2119da71ddc0a4342fb1b7b7040900344425d87c","original_commit_id":"2119da71ddc0a4342fb1b7b7040900344425d87c","user":{"login":"alxndrsn","id":191496,"avatar_url":"https://avatars3.githubusercontent.com/u/191496?v=4","gravatar_id":"","url":"https://api.github.com/users/alxndrsn","html_url":"https://github.com/alxndrsn","followers_url":"https://api.github.com/users/alxndrsn/followers","following_url":"https://api.github.com/users/alxndrsn/following{/other_user}","gists_url":"https://api.github.com/users/alxndrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/alxndrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxndrsn/subscriptions","organizations_url":"https://api.github.com/users/alxndrsn/orgs","repos_url":"https://api.github.com/users/alxndrsn/repos","events_url":"https://api.github.com/users/alxndrsn/events{/privacy}","received_events_url":"https://api.github.com/users/alxndrsn/received_events","type":"User","site_admin":false},"body":"> I'd rather Just Not for now\r\n+1 to this - let's get it in use, and build in features as they're needed","created_at":"2017-08-21T11:41:37Z","updated_at":"2017-08-21T11:41:37Z","html_url":"https://github.com/medic/medic-api/pull/187#discussion_r134210809","pull_request_url":"https://api.github.com/repos/medic/medic-api/pulls/187","_links":{"self":{"href":"https://api.github.com/repos/medic/medic-api/pulls/comments/134210809"},"html":{"href":"https://github.com/medic/medic-api/pull/187#discussion_r134210809"},"pull_request":{"href":"https://api.github.com/repos/medic/medic-api/pulls/187"}}},"pull_request":{"url":"https://api.github.com/repos/medic/medic-api/pulls/187","id":133766938,"html_url":"https://github.com/medic/medic-api/pull/187","diff_url":"https://github.com/medic/medic-api/pull/187.diff","patch_url":"https://github.com/medic/medic-api/pull/187.patch","issue_url":"https://api.github.com/repos/medic/medic-api/issues/187","number":187,"state":"open","locked":false,"title":"Horticulturalist upgrade support","user":{"login":"SCdF","id":583851,"avatar_url":"https://avatars0.githubusercontent.com/u/583851?v=4","gravatar_id":"","url":"https://api.github.com/users/SCdF","html_url":"https://github.com/SCdF","followers_url":"https://api.github.com/users/SCdF/followers","following_url":"https://api.github.com/users/SCdF/following{/other_user}","gists_url":"https://api.github.com/users/SCdF/gists{/gist_id}","starred_url":"https://api.github.com/users/SCdF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SCdF/subscriptions","organizations_url":"https://api.github.com/users/SCdF/orgs","repos_url":"https://api.github.com/users/SCdF/repos","events_url":"https://api.github.com/users/SCdF/events{/privacy}","received_events_url":"https://api.github.com/users/SCdF/received_events","type":"User","site_admin":false},"body":"# Description\r\n\r\nAPI now knows how to stage a ddoc from our builds repo for Horticulturalist to then pick up and deploy.\r\n\r\nmedic/medic-webapp#3749\r\n\r\n# Review checklist\r\n\r\n- [ ] Readable: Concise, well named, follows the [style guide](https://github.com/medic/medic-docs/blob/master/development/style-guide.md), documented if necessary.\r\n- [ ] Documented: Announced in Changes.md in plain English. Configuration and user documentation on [medic-docs](https://github.com/medic/medic-docs/)\r\n- [ ] Tested: Unit and/or e2e where appropriate\r\n- [ ] Internationalised: All user facing text\r\n- [ ] Backwards compatible: Works with existing data and configuration or includes a migration. Any breaking changes documented in Changes.md.\r\n- [ ] Webapp CI runs clean against this branch\r\n","created_at":"2017-08-02T17:36:54Z","updated_at":"2017-08-21T11:41:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a4c52bae58bbab99e9130275e74e1acb69ec234","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/medic/medic-api/pulls/187/commits","review_comments_url":"https://api.github.com/repos/medic/medic-api/pulls/187/comments","review_comment_url":"https://api.github.com/repos/medic/medic-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/medic/medic-api/issues/187/comments","statuses_url":"https://api.github.com/repos/medic/medic-api/statuses/2119da71ddc0a4342fb1b7b7040900344425d87c","head":{"label":"medic:horti-upgrade-support","ref":"horti-upgrade-support","sha":"2119da71ddc0a4342fb1b7b7040900344425d87c","user":{"login":"medic","id":474424,"avatar_url":"https://avatars2.githubusercontent.com/u/474424?v=4","gravatar_id":"","url":"https://api.github.com/users/medic","html_url":"https://github.com/medic","followers_url":"https://api.github.com/users/medic/followers","following_url":"https://api.github.com/users/medic/following{/other_user}","gists_url":"https://api.github.com/users/medic/gists{/gist_id}","starred_url":"https://api.github.com/users/medic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medic/subscriptions","organizations_url":"https://api.github.com/users/medic/orgs","repos_url":"https://api.github.com/users/medic/repos","events_url":"https://api.github.com/users/medic/events{/privacy}","received_events_url":"https://api.github.com/users/medic/received_events","type":"Organization","site_admin":false},"repo":{"id":18199775,"name":"medic-api","full_name":"medic/medic-api","owner":{"login":"medic","id":474424,"avatar_url":"https://avatars2.githubusercontent.com/u/474424?v=4","gravatar_id":"","url":"https://api.github.com/users/medic","html_url":"https://github.com/medic","followers_url":"https://api.github.com/users/medic/followers","following_url":"https://api.github.com/users/medic/following{/other_user}","gists_url":"https://api.github.com/users/medic/gists{/gist_id}","starred_url":"https://api.github.com/users/medic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medic/subscriptions","organizations_url":"https://api.github.com/users/medic/orgs","repos_url":"https://api.github.com/users/medic/repos","events_url":"https://api.github.com/users/medic/events{/privacy}","received_events_url":"https://api.github.com/users/medic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/medic/medic-api","description":"Node server to support medic-webapp","fork":false,"url":"https://api.github.com/repos/medic/medic-api","forks_url":"https://api.github.com/repos/medic/medic-api/forks","keys_url":"https://api.github.com/repos/medic/medic-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/medic/medic-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/medic/medic-api/teams","hooks_url":"https://api.github.com/repos/medic/medic-api/hooks","issue_events_url":"https://api.github.com/repos/medic/medic-api/issues/events{/number}","events_url":"https://api.github.com/repos/medic/medic-api/events","assignees_url":"https://api.github.com/repos/medic/medic-api/assignees{/user}","branches_url":"https://api.github.com/repos/medic/medic-api/branches{/branch}","tags_url":"https://api.github.com/repos/medic/medic-api/tags","blobs_url":"https://api.github.com/repos/medic/medic-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/medic/medic-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/medic/medic-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/medic/medic-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/medic/medic-api/statuses/{sha}","languages_url":"https://api.github.com/repos/medic/medic-api/languages","stargazers_url":"https://api.github.com/repos/medic/medic-api/stargazers","contributors_url":"https://api.github.com/repos/medic/medic-api/contributors","subscribers_url":"https://api.github.com/repos/medic/medic-api/subscribers","subscription_url":"https://api.github.com/repos/medic/medic-api/subscription","commits_url":"https://api.github.com/repos/medic/medic-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/medic/medic-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/medic/medic-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/medic/medic-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/medic/medic-api/contents/{+path}","compare_url":"https://api.github.com/repos/medic/medic-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/medic/medic-api/merges","archive_url":"https://api.github.com/repos/medic/medic-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/medic/medic-api/downloads","issues_url":"https://api.github.com/repos/medic/medic-api/issues{/number}","pulls_url":"https://api.github.com/repos/medic/medic-api/pulls{/number}","milestones_url":"https://api.github.com/repos/medic/medic-api/milestones{/number}","notifications_url":"https://api.github.com/repos/medic/medic-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/medic/medic-api/labels{/name}","releases_url":"https://api.github.com/repos/medic/medic-api/releases{/id}","deployments_url":"https://api.github.com/repos/medic/medic-api/deployments","created_at":"2014-03-28T03:20:43Z","updated_at":"2017-03-10T11:06:01Z","pushed_at":"2017-08-18T17:14:36Z","git_url":"git://github.com/medic/medic-api.git","ssh_url":"git@github.com:medic/medic-api.git","clone_url":"https://github.com/medic/medic-api.git","svn_url":"https://github.com/medic/medic-api","homepage":"","size":1422,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":12,"forks":5,"open_issues":12,"watchers":1,"default_branch":"master"}},"base":{"label":"medic:master","ref":"master","sha":"3378fa067c166c7832c1afb409b1819419accc4a","user":{"login":"medic","id":474424,"avatar_url":"https://avatars2.githubusercontent.com/u/474424?v=4","gravatar_id":"","url":"https://api.github.com/users/medic","html_url":"https://github.com/medic","followers_url":"https://api.github.com/users/medic/followers","following_url":"https://api.github.com/users/medic/following{/other_user}","gists_url":"https://api.github.com/users/medic/gists{/gist_id}","starred_url":"https://api.github.com/users/medic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medic/subscriptions","organizations_url":"https://api.github.com/users/medic/orgs","repos_url":"https://api.github.com/users/medic/repos","events_url":"https://api.github.com/users/medic/events{/privacy}","received_events_url":"https://api.github.com/users/medic/received_events","type":"Organization","site_admin":false},"repo":{"id":18199775,"name":"medic-api","full_name":"medic/medic-api","owner":{"login":"medic","id":474424,"avatar_url":"https://avatars2.githubusercontent.com/u/474424?v=4","gravatar_id":"","url":"https://api.github.com/users/medic","html_url":"https://github.com/medic","followers_url":"https://api.github.com/users/medic/followers","following_url":"https://api.github.com/users/medic/following{/other_user}","gists_url":"https://api.github.com/users/medic/gists{/gist_id}","starred_url":"https://api.github.com/users/medic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medic/subscriptions","organizations_url":"https://api.github.com/users/medic/orgs","repos_url":"https://api.github.com/users/medic/repos","events_url":"https://api.github.com/users/medic/events{/privacy}","received_events_url":"https://api.github.com/users/medic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/medic/medic-api","description":"Node server to support medic-webapp","fork":false,"url":"https://api.github.com/repos/medic/medic-api","forks_url":"https://api.github.com/repos/medic/medic-api/forks","keys_url":"https://api.github.com/repos/medic/medic-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/medic/medic-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/medic/medic-api/teams","hooks_url":"https://api.github.com/repos/medic/medic-api/hooks","issue_events_url":"https://api.github.com/repos/medic/medic-api/issues/events{/number}","events_url":"https://api.github.com/repos/medic/medic-api/events","assignees_url":"https://api.github.com/repos/medic/medic-api/assignees{/user}","branches_url":"https://api.github.com/repos/medic/medic-api/branches{/branch}","tags_url":"https://api.github.com/repos/medic/medic-api/tags","blobs_url":"https://api.github.com/repos/medic/medic-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/medic/medic-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/medic/medic-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/medic/medic-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/medic/medic-api/statuses/{sha}","languages_url":"https://api.github.com/repos/medic/medic-api/languages","stargazers_url":"https://api.github.com/repos/medic/medic-api/stargazers","contributors_url":"https://api.github.com/repos/medic/medic-api/contributors","subscribers_url":"https://api.github.com/repos/medic/medic-api/subscribers","subscription_url":"https://api.github.com/repos/medic/medic-api/subscription","commits_url":"https://api.github.com/repos/medic/medic-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/medic/medic-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/medic/medic-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/medic/medic-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/medic/medic-api/contents/{+path}","compare_url":"https://api.github.com/repos/medic/medic-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/medic/medic-api/merges","archive_url":"https://api.github.com/repos/medic/medic-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/medic/medic-api/downloads","issues_url":"https://api.github.com/repos/medic/medic-api/issues{/number}","pulls_url":"https://api.github.com/repos/medic/medic-api/pulls{/number}","milestones_url":"https://api.github.com/repos/medic/medic-api/milestones{/number}","notifications_url":"https://api.github.com/repos/medic/medic-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/medic/medic-api/labels{/name}","releases_url":"https://api.github.com/repos/medic/medic-api/releases{/id}","deployments_url":"https://api.github.com/repos/medic/medic-api/deployments","created_at":"2014-03-28T03:20:43Z","updated_at":"2017-03-10T11:06:01Z","pushed_at":"2017-08-18T17:14:36Z","git_url":"git://github.com/medic/medic-api.git","ssh_url":"git@github.com:medic/medic-api.git","clone_url":"https://github.com/medic/medic-api.git","svn_url":"https://github.com/medic/medic-api","homepage":"","size":1422,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":12,"forks":5,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/medic/medic-api/pulls/187"},"html":{"href":"https://github.com/medic/medic-api/pull/187"},"issue":{"href":"https://api.github.com/repos/medic/medic-api/issues/187"},"comments":{"href":"https://api.github.com/repos/medic/medic-api/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/medic/medic-api/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/medic/medic-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/medic/medic-api/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/medic/medic-api/statuses/2119da71ddc0a4342fb1b7b7040900344425d87c"}}}}
{"actor":{"display_login":"alxndrsn"}}