{"action":"opened","number":37,"pull_request":{"url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/pulls/37","id":227373025,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3MzczMDI1","html_url":"https://github.com/alphagov/govwifi-authentication-api/pull/37","diff_url":"https://github.com/alphagov/govwifi-authentication-api/pull/37.diff","patch_url":"https://github.com/alphagov/govwifi-authentication-api/pull/37.patch","issue_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/issues/37","number":37,"state":"open","locked":false,"title":"WIP: Autodeploy to staging, one-click deploy to prod","user":{"login":"kjdchapman","id":429326,"node_id":"MDQ6VXNlcjQyOTMyNg==","avatar_url":"https://avatars2.githubusercontent.com/u/429326?v=4","gravatar_id":"","url":"https://api.github.com/users/kjdchapman","html_url":"https://github.com/kjdchapman","followers_url":"https://api.github.com/users/kjdchapman/followers","following_url":"https://api.github.com/users/kjdchapman/following{/other_user}","gists_url":"https://api.github.com/users/kjdchapman/gists{/gist_id}","starred_url":"https://api.github.com/users/kjdchapman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjdchapman/subscriptions","organizations_url":"https://api.github.com/users/kjdchapman/orgs","repos_url":"https://api.github.com/users/kjdchapman/repos","events_url":"https://api.github.com/users/kjdchapman/events{/privacy}","received_events_url":"https://api.github.com/users/kjdchapman/received_events","type":"User","site_admin":false},"body":"This is a little more complicated than [the solution for admin](https://github.com/alphagov/govwifi-admin/pull/265), because this app is across two regions.\r\n\r\nThis now works, but takes a little time to complete, as bringing up the new tasks alongside the old ones requires autoscaling to kick in and make another instance to make room.\r\n\r\nWe did consider adding in another part to this command that lets some of the old tasks go before all the new tasks are up, but it doesn't really make things any faster.\r\n\r\nThis is WIP because the syntax isn't great - this code could be more expressive/simple. Not sure whether to introduce abstraction through methods or separate build scripts, interested to hear opinions.","created_at":"2018-10-31T17:16:06Z","updated_at":"2018-10-31T17:16:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/pulls/37/commits","review_comments_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/pulls/37/comments","review_comment_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/issues/37/comments","statuses_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/statuses/1372c5396dd07503946cc640a901655914399a1f","head":{"label":"alphagov:autodeploy","ref":"autodeploy","sha":"1372c5396dd07503946cc640a901655914399a1f","user":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":134248320,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyNDgzMjA=","name":"govwifi-authentication-api","full_name":"alphagov/govwifi-authentication-api","private":false,"owner":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alphagov/govwifi-authentication-api","description":null,"fork":false,"url":"https://api.github.com/repos/alphagov/govwifi-authentication-api","forks_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/forks","keys_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/teams","hooks_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/events","assignees_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/tags","blobs_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/languages","stargazers_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/subscription","commits_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/merges","archive_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/downloads","issues_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/deployments","created_at":"2018-05-21T09:33:32Z","updated_at":"2018-10-30T14:43:33Z","pushed_at":"2018-10-31T17:05:39Z","git_url":"git://github.com/alphagov/govwifi-authentication-api.git","ssh_url":"git@github.com:alphagov/govwifi-authentication-api.git","clone_url":"https://github.com/alphagov/govwifi-authentication-api.git","svn_url":"https://github.com/alphagov/govwifi-authentication-api","homepage":null,"size":55,"stargazers_count":0,"watchers_count":0,"language":"PLpgSQL","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"d9b8f9054d7ccf8b89c1e16bfdaa446d5cfaf267","user":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":134248320,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQyNDgzMjA=","name":"govwifi-authentication-api","full_name":"alphagov/govwifi-authentication-api","private":false,"owner":{"login":"alphagov","id":596977,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5Njk3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alphagov/govwifi-authentication-api","description":null,"fork":false,"url":"https://api.github.com/repos/alphagov/govwifi-authentication-api","forks_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/forks","keys_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/teams","hooks_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/events","assignees_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/tags","blobs_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/languages","stargazers_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/subscription","commits_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/merges","archive_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/downloads","issues_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govwifi-authentication-api/deployments","created_at":"2018-05-21T09:33:32Z","updated_at":"2018-10-30T14:43:33Z","pushed_at":"2018-10-31T17:05:39Z","git_url":"git://github.com/alphagov/govwifi-authentication-api.git","ssh_url":"git@github.com:alphagov/govwifi-authentication-api.git","clone_url":"https://github.com/alphagov/govwifi-authentication-api.git","svn_url":"https://github.com/alphagov/govwifi-authentication-api","homepage":null,"size":55,"stargazers_count":0,"watchers_count":0,"language":"PLpgSQL","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/govwifi-authentication-api/pulls/37"},"html":{"href":"https://github.com/alphagov/govwifi-authentication-api/pull/37"},"issue":{"href":"https://api.github.com/repos/alphagov/govwifi-authentication-api/issues/37"},"comments":{"href":"https://api.github.com/repos/alphagov/govwifi-authentication-api/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/govwifi-authentication-api/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/govwifi-authentication-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/govwifi-authentication-api/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/govwifi-authentication-api/statuses/1372c5396dd07503946cc640a901655914399a1f"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":13,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"kjdchapman"}}