{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/dart-lang/one-hour-codelab/pulls/2","id":31627518,"html_url":"https://github.com/dart-lang/one-hour-codelab/pull/2","diff_url":"https://github.com/dart-lang/one-hour-codelab/pull/2.diff","patch_url":"https://github.com/dart-lang/one-hour-codelab/pull/2.patch","issue_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/issues/2","number":2,"state":"open","locked":false,"title":"Removed then parts, added support for async and await","user":{"login":"Janamou","id":445360,"avatar_url":"https://avatars.githubusercontent.com/u/445360?v=3","gravatar_id":"","url":"https://api.github.com/users/Janamou","html_url":"https://github.com/Janamou","followers_url":"https://api.github.com/users/Janamou/followers","following_url":"https://api.github.com/users/Janamou/following{/other_user}","gists_url":"https://api.github.com/users/Janamou/gists{/gist_id}","starred_url":"https://api.github.com/users/Janamou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Janamou/subscriptions","organizations_url":"https://api.github.com/users/Janamou/orgs","repos_url":"https://api.github.com/users/Janamou/repos","events_url":"https://api.github.com/users/Janamou/events{/privacy}","received_events_url":"https://api.github.com/users/Janamou/received_events","type":"User","site_admin":false},"body":"I changed the code to use async/await. It affected only step 6. \r\n\r\nThe main function has signature:\r\n`void  main() {`\r\n\r\nbut because of async, tha `void` had to be removed for step 6 to be:\r\n`main() async {`\r\n\r\nI think that this should be explained somewhere. Or maybe change it so that the `main()` will call some separate function which will have the async/await content and the signature of the `main()` will not change?","created_at":"2015-03-20T16:10:13Z","updated_at":"2015-03-20T16:10:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/pulls/2/commits","review_comments_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/pulls/2/comments","review_comment_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/issues/2/comments","statuses_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/statuses/9e0e84927bfae0981f917f62fb2adb55eb887d34","head":{"label":"Janamou:async-await","ref":"async-await","sha":"9e0e84927bfae0981f917f62fb2adb55eb887d34","user":{"login":"Janamou","id":445360,"avatar_url":"https://avatars.githubusercontent.com/u/445360?v=3","gravatar_id":"","url":"https://api.github.com/users/Janamou","html_url":"https://github.com/Janamou","followers_url":"https://api.github.com/users/Janamou/followers","following_url":"https://api.github.com/users/Janamou/following{/other_user}","gists_url":"https://api.github.com/users/Janamou/gists{/gist_id}","starred_url":"https://api.github.com/users/Janamou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Janamou/subscriptions","organizations_url":"https://api.github.com/users/Janamou/orgs","repos_url":"https://api.github.com/users/Janamou/repos","events_url":"https://api.github.com/users/Janamou/events{/privacy}","received_events_url":"https://api.github.com/users/Janamou/received_events","type":"User","site_admin":false},"repo":{"id":32589852,"name":"one-hour-codelab","full_name":"Janamou/one-hour-codelab","owner":{"login":"Janamou","id":445360,"avatar_url":"https://avatars.githubusercontent.com/u/445360?v=3","gravatar_id":"","url":"https://api.github.com/users/Janamou","html_url":"https://github.com/Janamou","followers_url":"https://api.github.com/users/Janamou/followers","following_url":"https://api.github.com/users/Janamou/following{/other_user}","gists_url":"https://api.github.com/users/Janamou/gists{/gist_id}","starred_url":"https://api.github.com/users/Janamou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Janamou/subscriptions","organizations_url":"https://api.github.com/users/Janamou/orgs","repos_url":"https://api.github.com/users/Janamou/repos","events_url":"https://api.github.com/users/Janamou/events{/privacy}","received_events_url":"https://api.github.com/users/Janamou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Janamou/one-hour-codelab","description":"Learn how to build a webapp with Dart in one hour.","fork":true,"url":"https://api.github.com/repos/Janamou/one-hour-codelab","forks_url":"https://api.github.com/repos/Janamou/one-hour-codelab/forks","keys_url":"https://api.github.com/repos/Janamou/one-hour-codelab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Janamou/one-hour-codelab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Janamou/one-hour-codelab/teams","hooks_url":"https://api.github.com/repos/Janamou/one-hour-codelab/hooks","issue_events_url":"https://api.github.com/repos/Janamou/one-hour-codelab/issues/events{/number}","events_url":"https://api.github.com/repos/Janamou/one-hour-codelab/events","assignees_url":"https://api.github.com/repos/Janamou/one-hour-codelab/assignees{/user}","branches_url":"https://api.github.com/repos/Janamou/one-hour-codelab/branches{/branch}","tags_url":"https://api.github.com/repos/Janamou/one-hour-codelab/tags","blobs_url":"https://api.github.com/repos/Janamou/one-hour-codelab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Janamou/one-hour-codelab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Janamou/one-hour-codelab/git/refs{/sha}","trees_url":"https://api.github.com/repos/Janamou/one-hour-codelab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Janamou/one-hour-codelab/statuses/{sha}","languages_url":"https://api.github.com/repos/Janamou/one-hour-codelab/languages","stargazers_url":"https://api.github.com/repos/Janamou/one-hour-codelab/stargazers","contributors_url":"https://api.github.com/repos/Janamou/one-hour-codelab/contributors","subscribers_url":"https://api.github.com/repos/Janamou/one-hour-codelab/subscribers","subscription_url":"https://api.github.com/repos/Janamou/one-hour-codelab/subscription","commits_url":"https://api.github.com/repos/Janamou/one-hour-codelab/commits{/sha}","git_commits_url":"https://api.github.com/repos/Janamou/one-hour-codelab/git/commits{/sha}","comments_url":"https://api.github.com/repos/Janamou/one-hour-codelab/comments{/number}","issue_comment_url":"https://api.github.com/repos/Janamou/one-hour-codelab/issues/comments{/number}","contents_url":"https://api.github.com/repos/Janamou/one-hour-codelab/contents/{+path}","compare_url":"https://api.github.com/repos/Janamou/one-hour-codelab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Janamou/one-hour-codelab/merges","archive_url":"https://api.github.com/repos/Janamou/one-hour-codelab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Janamou/one-hour-codelab/downloads","issues_url":"https://api.github.com/repos/Janamou/one-hour-codelab/issues{/number}","pulls_url":"https://api.github.com/repos/Janamou/one-hour-codelab/pulls{/number}","milestones_url":"https://api.github.com/repos/Janamou/one-hour-codelab/milestones{/number}","notifications_url":"https://api.github.com/repos/Janamou/one-hour-codelab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Janamou/one-hour-codelab/labels{/name}","releases_url":"https://api.github.com/repos/Janamou/one-hour-codelab/releases{/id}","created_at":"2015-03-20T14:56:34Z","updated_at":"2015-03-20T14:56:38Z","pushed_at":"2015-03-20T15:47:44Z","git_url":"git://github.com/Janamou/one-hour-codelab.git","ssh_url":"git@github.com:Janamou/one-hour-codelab.git","clone_url":"https://github.com/Janamou/one-hour-codelab.git","svn_url":"https://github.com/Janamou/one-hour-codelab","homepage":null,"size":96,"stargazers_count":0,"watchers_count":0,"language":"Dart","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":"dart-lang:master","ref":"master","sha":"eda47b66e1d0f6de93792661c9400f85ff7fceb4","user":{"login":"dart-lang","id":1609975,"avatar_url":"https://avatars.githubusercontent.com/u/1609975?v=3","gravatar_id":"","url":"https://api.github.com/users/dart-lang","html_url":"https://github.com/dart-lang","followers_url":"https://api.github.com/users/dart-lang/followers","following_url":"https://api.github.com/users/dart-lang/following{/other_user}","gists_url":"https://api.github.com/users/dart-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/dart-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dart-lang/subscriptions","organizations_url":"https://api.github.com/users/dart-lang/orgs","repos_url":"https://api.github.com/users/dart-lang/repos","events_url":"https://api.github.com/users/dart-lang/events{/privacy}","received_events_url":"https://api.github.com/users/dart-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":14151353,"name":"one-hour-codelab","full_name":"dart-lang/one-hour-codelab","owner":{"login":"dart-lang","id":1609975,"avatar_url":"https://avatars.githubusercontent.com/u/1609975?v=3","gravatar_id":"","url":"https://api.github.com/users/dart-lang","html_url":"https://github.com/dart-lang","followers_url":"https://api.github.com/users/dart-lang/followers","following_url":"https://api.github.com/users/dart-lang/following{/other_user}","gists_url":"https://api.github.com/users/dart-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/dart-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dart-lang/subscriptions","organizations_url":"https://api.github.com/users/dart-lang/orgs","repos_url":"https://api.github.com/users/dart-lang/repos","events_url":"https://api.github.com/users/dart-lang/events{/privacy}","received_events_url":"https://api.github.com/users/dart-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dart-lang/one-hour-codelab","description":"Learn how to build a webapp with Dart in one hour.","fork":false,"url":"https://api.github.com/repos/dart-lang/one-hour-codelab","forks_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/forks","keys_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/teams","hooks_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/hooks","issue_events_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/issues/events{/number}","events_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/events","assignees_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/assignees{/user}","branches_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/branches{/branch}","tags_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/tags","blobs_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/git/refs{/sha}","trees_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/statuses/{sha}","languages_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/languages","stargazers_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/stargazers","contributors_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/contributors","subscribers_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/subscribers","subscription_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/subscription","commits_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/commits{/sha}","git_commits_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/git/commits{/sha}","comments_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/comments{/number}","issue_comment_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/issues/comments{/number}","contents_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/contents/{+path}","compare_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/merges","archive_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/downloads","issues_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/issues{/number}","pulls_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/pulls{/number}","milestones_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/milestones{/number}","notifications_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/labels{/name}","releases_url":"https://api.github.com/repos/dart-lang/one-hour-codelab/releases{/id}","created_at":"2013-11-05T19:19:57Z","updated_at":"2015-03-20T15:11:00Z","pushed_at":"2015-03-20T16:10:13Z","git_url":"git://github.com/dart-lang/one-hour-codelab.git","ssh_url":"git@github.com:dart-lang/one-hour-codelab.git","clone_url":"https://github.com/dart-lang/one-hour-codelab.git","svn_url":"https://github.com/dart-lang/one-hour-codelab","homepage":null,"size":259,"stargazers_count":31,"watchers_count":31,"language":"Dart","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"open_issues_count":2,"forks":42,"open_issues":2,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dart-lang/one-hour-codelab/pulls/2"},"html":{"href":"https://github.com/dart-lang/one-hour-codelab/pull/2"},"issue":{"href":"https://api.github.com/repos/dart-lang/one-hour-codelab/issues/2"},"comments":{"href":"https://api.github.com/repos/dart-lang/one-hour-codelab/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/dart-lang/one-hour-codelab/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/dart-lang/one-hour-codelab/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dart-lang/one-hour-codelab/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/dart-lang/one-hour-codelab/statuses/9e0e84927bfae0981f917f62fb2adb55eb887d34"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":18,"changed_files":1}}