payload: {"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/30242","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/30242/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/30242/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/30242/events","html_url":"https://github.com/Automattic/wp-calypso/pull/30242","id":400815149,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQ1OTE1ODk3","number":30242,"title":"Private by default launch flow","user":{"login":"niranjan-uma-shankar","id":1269602,"node_id":"MDQ6VXNlcjEyNjk2MDI=","avatar_url":"https://avatars1.githubusercontent.com/u/1269602?v=4","gravatar_id":"","url":"https://api.github.com/users/niranjan-uma-shankar","html_url":"https://github.com/niranjan-uma-shankar","followers_url":"https://api.github.com/users/niranjan-uma-shankar/followers","following_url":"https://api.github.com/users/niranjan-uma-shankar/following{/other_user}","gists_url":"https://api.github.com/users/niranjan-uma-shankar/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan-uma-shankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan-uma-shankar/subscriptions","organizations_url":"https://api.github.com/users/niranjan-uma-shankar/orgs","repos_url":"https://api.github.com/users/niranjan-uma-shankar/repos","events_url":"https://api.github.com/users/niranjan-uma-shankar/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan-uma-shankar/received_events","type":"User","site_admin":false},"labels":[{"id":285010057,"node_id":"MDU6TGFiZWwyODUwMTAwNTc=","url":"https://api.github.com/repos/Automattic/wp-calypso/labels/NUX","name":"NUX","color":"006b75","default":false},{"id":285010018,"node_id":"MDU6TGFiZWwyODUwMTAwMTg=","url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04","default":false},{"id":838866001,"node_id":"MDU6TGFiZWw4Mzg4NjYwMDE=","url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20e2e%20Testing","name":"[Status] Needs e2e Testing","color":"ed74b2","default":false}],"state":"open","locked":false,"assignee":{"login":"niranjan-uma-shankar","id":1269602,"node_id":"MDQ6VXNlcjEyNjk2MDI=","avatar_url":"https://avatars1.githubusercontent.com/u/1269602?v=4","gravatar_id":"","url":"https://api.github.com/users/niranjan-uma-shankar","html_url":"https://github.com/niranjan-uma-shankar","followers_url":"https://api.github.com/users/niranjan-uma-shankar/followers","following_url":"https://api.github.com/users/niranjan-uma-shankar/following{/other_user}","gists_url":"https://api.github.com/users/niranjan-uma-shankar/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan-uma-shankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan-uma-shankar/subscriptions","organizations_url":"https://api.github.com/users/niranjan-uma-shankar/orgs","repos_url":"https://api.github.com/users/niranjan-uma-shankar/repos","events_url":"https://api.github.com/users/niranjan-uma-shankar/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan-uma-shankar/received_events","type":"User","site_admin":false},"assignees":[{"login":"niranjan-uma-shankar","id":1269602,"node_id":"MDQ6VXNlcjEyNjk2MDI=","avatar_url":"https://avatars1.githubusercontent.com/u/1269602?v=4","gravatar_id":"","url":"https://api.github.com/users/niranjan-uma-shankar","html_url":"https://github.com/niranjan-uma-shankar","followers_url":"https://api.github.com/users/niranjan-uma-shankar/followers","following_url":"https://api.github.com/users/niranjan-uma-shankar/following{/other_user}","gists_url":"https://api.github.com/users/niranjan-uma-shankar/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan-uma-shankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan-uma-shankar/subscriptions","organizations_url":"https://api.github.com/users/niranjan-uma-shankar/orgs","repos_url":"https://api.github.com/users/niranjan-uma-shankar/repos","events_url":"https://api.github.com/users/niranjan-uma-shankar/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan-uma-shankar/received_events","type":"User","site_admin":false}],"milestone":null,"comments":18,"created_at":"2019-01-18T17:15:24Z","updated_at":"2019-02-11T16:14:13Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/30242","html_url":"https://github.com/Automattic/wp-calypso/pull/30242","diff_url":"https://github.com/Automattic/wp-calypso/pull/30242.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/30242.patch"},"body":"### Changes proposed in this Pull Request\r\n\r\n* This PR implements the Private by default launch flow.\r\n* The following happens when a user clicks the launch button on a private site:\r\n    - If the site does not have a domain and/or a plan, we will take them through a `site-launch` flow. \r\n    This flow will show the domain step and the plan step before taking them to the preview page with a \r\n    successful launch banner:\r\n    - If the site has both a domain and a plan, then the user is directly taken to the Preview page with a  launch banner celebrating the success.\r\n\r\n<img width=\"1658\" alt=\"screenshot 2019-01-29 at 5 25 39 pm\" src=\"https://user-images.githubusercontent.com/1269602/51906793-fcac9900-23ea-11e9-8253-bfd2d7cf1a3a.png\">\r\n\r\n    \r\n### Testing instructions\r\n\r\nPlease apply D23389-code and follow the testing instructions given there.\r\n\r\n#### Scenario-1 - Launch a site that does not have either a domain or a plan\r\n\r\n1. Create a site on the Free plan without a domain (except the default *.wordpress.com domain)\r\n2. Clicking `Launch Site` should go through the launch flow, showing both the domain and plan steps.\r\nThere are a few scenarios that can be tested here:\r\n    - Add both a domain and a plan to your cart so that you're taken to the checkout page. At this point, cancelling the purchase (by navigating away from checkout either by clicking the Trash icon in the cart on the left menu, or just closing the browser tab) should still launch the site. Check back in Preview that you no longer see the Launch Site button.\r\n    - After adding both a domain and plan to your cart, make the purchase at the Checkout page. You should be redirected to the Site preview page with a success banner message.\r\n    - You should be allowed to skip both the Domain purchase (by clicking Skip Purchase in the domain step) and Plan purchase (by clicking the Keep this Plan button in the plan step). You will then be directly taken to the Preview page with success banner (no checkout page)\r\n\r\n#### Scenario-2 - Launch a site that does not have a domain but has a plan\r\n\r\n1. Create a site with a paid plan but don't purchase a domain.\r\n2. Clicking `Launch Site` should go through the launch flow, showing only the domain step. Test both with purchasing a domain and skipping Purchase - in both cases, it should take you to the Preview page with Success banner.\r\n\r\n#### Scenario-3 - Launch a site that has a domain but does not have a plan\r\n1. Create a site with a domain but no plan (for this you need to first create a site on a paid plan, purchase a domain, and then cancel the Plan purchase while retaining the domain).\r\n2. Clicking `Launch Site` should go through the launch flow, showing only the plan step. Test both with purchasing a plan and skipping Purchase - in both cases, it should take you to the Preview page with Success banner.\r\n\r\n#### Scenario-4 - Launch a site that has both a domain and a plan\r\n\r\n1. Create a site on a paid plan with a domain\r\n2. Launch the site, it should directly take you to the preview page (without going through the launch flow) and show a success banner.\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/462387796","html_url":"https://github.com/Automattic/wp-calypso/pull/30242#issuecomment-462387796","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/30242","id":462387796,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MjM4Nzc5Ng==","user":{"login":"scruffian","id":275961,"node_id":"MDQ6VXNlcjI3NTk2MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/275961?v=4","gravatar_id":"","url":"https://api.github.com/users/scruffian","html_url":"https://github.com/scruffian","followers_url":"https://api.github.com/users/scruffian/followers","following_url":"https://api.github.com/users/scruffian/following{/other_user}","gists_url":"https://api.github.com/users/scruffian/gists{/gist_id}","starred_url":"https://api.github.com/users/scruffian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scruffian/subscriptions","organizations_url":"https://api.github.com/users/scruffian/orgs","repos_url":"https://api.github.com/users/scruffian/repos","events_url":"https://api.github.com/users/scruffian/events{/privacy}","received_events_url":"https://api.github.com/users/scruffian/received_events","type":"User","site_admin":false},"created_at":"2019-02-11T16:14:13Z","updated_at":"2019-02-11T16:14:13Z","author_association":"MEMBER","body":"The tests pass! Great job @niranjan-uma-shankar "}}
other: {"actor":{"display_login":"scruffian"}}