{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/204551121","pull_request_review_id":139650798,"id":204551121,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDU1MTEyMQ==","diff_hunk":"@@ -109,7 +113,118 @@ namespace ts {\n         }\r\n     }\r\n \r\n+    function addConvertToAsyncFunctionDiagnostics(node: Node, checker: TypeChecker, diags: DiagnosticWithLocation[]): void {\r\n+        if (isAsyncFunction(node)) {\r\n+            return;\r\n+        }\r\n+\r\n+        if (isFunctionLikeDeclaration(node) && !node.body) {\r\n+            return; // break on ambient functions\r\n+        }\r\n+\r\n+        const returnType = checker.getTypeAtLocation(node);\r\n+        if (!returnType) {\r\n+            return;\r\n+        }\r\n+\r\n+        if (checker.isPromiseLikeType(returnType)) {\r\n+            // collect all the return statements\r\n+            // check that a property access expression exists in there and that it is a handler\r\n+            let varDeclFlagsMap: Map<NodeFlags | undefined> = new MapCtr();\r\n+            const retStmts = getReturnStatementsWithPromiseCallbacks(node, varDeclFlagsMap);\r\n+            if (retStmts.length > 0) {\r\n+                diags.push(createDiagnosticForNode(isVariableDeclaration(node.parent) ? node.parent.name : node, Diagnostics.This_may_be_converted_to_an_async_function));\r\n+            }\r\n+        }\r\n+    }\r\n+\r\n     function getErrorNodeFromCommonJsIndicator(commonJsModuleIndicator: Node): Node {\r\n         return isBinaryExpression(commonJsModuleIndicator) ? commonJsModuleIndicator.left : commonJsModuleIndicator;\r\n     }\r\n+\r\n+    export function getReturnStatementsWithPromiseCallbacks(node: Node, varDeclFlagsMap: Map<NodeFlags | undefined>): [Node[], Map<NodeFlags | undefined>, ReturnStatement | undefined] {\r\n+        const retStmts: Node[] = [];\r\n+        let hasFollowingRetStmt: ReturnStatement | undefined;\r\n+        forEachChild(node, visit);\r\n+\r\n+        function visit(child: Node) {\r\n+\r\n+            if (isFunctionLike(child)) {\r\n+                return;\r\n+            }\r\n+\r\n+            if (isReturnStatement(child)) {\r\n+                forEachChild(child, hasCallback);\r\n+            }\r\n+\r\n+            function hasCallback(returnChild: Node) {\r\n+                //const symbol = checker.getSymbolAtLocation(returnChild);\r\n+\r\n+                if (isCallback(returnChild)) {\r\n+                    retStmts.push(child as ReturnStatement);\r\n+                }\r\n+                else if (isIdentifier(returnChild) && isReturnStatement(child)\r\n+                    && child.expression && isIdentifier(child.expression)) {\r\n+                    hasFollowingRetStmt = child;\r\n+                    retStmts.push(child);\r\n+                    forEachChild(node, findCallbackUses);\r\n+                }\r\n+                else if (!isFunctionLike(returnChild)) {\r\n+                    forEachChild(returnChild, hasCallback);\r\n+                }\r\n+\r\n+                let parent: Node;\r\n+\r\n+                function findCallbackUses(identUse: Node) {\r\n+                    if (isVariableDeclarationList(identUse)) {\r\n+\r\n+                        let isCallback = false;\r\n+                        for (const varDecl of identUse.declarations) {\r\n+                            /*\r\n+                            const maybeSymbol = checker.getSymbolAtLocation(varDecl.name);\r\n+                            const varDeclSymbol = !maybeSymbol && varDecl.original ? checker.getSymbolAtLocation((<VariableDeclaration>varDecl.original)!.name) : maybeSymbol;*/\r\n+                            if (varDecl.initializer && isCallExpression(varDecl.initializer) /*&&\r\n+                        symbol === varDeclSymbol*/) {\r\n+                                isCallback = true;\r\n+                                const flags = identUse.original ? identUse.original.flags : identUse.flags;\r\n+                                varDeclFlagsMap.set((<Identifier>varDecl.name).text, flags);\r\n+                            }\r\n+                        }\r\n+\r\n+                        if (isCallback) {\r\n+                            retStmts.push(parent);\r\n+                        }\r\n+                    }\r\n+                    else if (isCallback(identUse)) {\r\n+                        /*\r\n+                        const expr = (<PropertyAccessExpression>(<CallExpression>identUse).expression).expression;\r\n+                        const maybeSymbol = checker.getSymbolAtLocation(expr);\r\n+                        const varDeclSymbol = !maybeSymbol && expr.original ? checker.getSymbolAtLocation(expr.original) : maybeSymbol;\r\n+                        if (symbol === varDeclSymbol) {*/\r\n+                            retStmts.push(parent as CallExpression);\r\n+                        //}\r\n+                    }\r\n+                    else if (isAssignmentExpression(identUse)) {\r\n+                        retStmts.push(parent);\r\n+                        /*\r\n+                        const maybeSymbol = checker.getSymbolAtLocation(identUse.left);\r\n+                        const varDeclSymbol = !maybeSymbol && identUse.left.original ? checker.getSymbolAtLocation(identUse.left.original) : maybeSymbol;*/\r\n+                        varDeclFlagsMap.set((<Identifier>identUse.left).text, undefined);\r\n+                    }\r\n+                    else {\r\n+                        parent = identUse;\r\n+                        forEachChild(identUse, findCallbackUses);\r\n+                    }\r\n+                }\r\n+            }\r\n+\r\n+            forEachChild(child, visit);\r\n+        }\r\n+        return [retStmts, varDeclFlagsMap, hasFollowingRetStmt];\r\n+    }\r\n+\r\n+    function isCallback(node: Node): boolean {\r\n+        return (isCallExpression(node) && isPropertyAccessExpression(node.expression) &&\r\n+            (node.expression.name.text === \"then\" || node.expression.name.text === \"catch\"));\r","path":"src/services/suggestionDiagnostics.ts","position":134,"original_position":134,"commit_id":"99320bc5d1e49590ae85fde6cd725824a47c19c8","original_commit_id":"99320bc5d1e49590ae85fde6cd725824a47c19c8","user":{"login":"mhegazy","id":8000722,"node_id":"MDQ6VXNlcjgwMDA3MjI=","avatar_url":"https://avatars3.githubusercontent.com/u/8000722?v=4","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"body":"what about `\"finally\"`?","created_at":"2018-07-23T20:55:56Z","updated_at":"2018-07-23T20:55:56Z","html_url":"https://github.com/Microsoft/TypeScript/pull/24939#discussion_r204551121","pull_request_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/24939","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/204551121"},"html":{"href":"https://github.com/Microsoft/TypeScript/pull/24939#discussion_r204551121"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/24939"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/24939","id":194739428,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NzM5NDI4","html_url":"https://github.com/Microsoft/TypeScript/pull/24939","diff_url":"https://github.com/Microsoft/TypeScript/pull/24939.diff","patch_url":"https://github.com/Microsoft/TypeScript/pull/24939.patch","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/24939","number":24939,"state":"open","locked":false,"title":"[WIP] Promises to Async Await Code Fix ","user":{"login":"elizabethdinella","id":8715900,"node_id":"MDQ6VXNlcjg3MTU5MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/8715900?v=4","gravatar_id":"","url":"https://api.github.com/users/elizabethdinella","html_url":"https://github.com/elizabethdinella","followers_url":"https://api.github.com/users/elizabethdinella/followers","following_url":"https://api.github.com/users/elizabethdinella/following{/other_user}","gists_url":"https://api.github.com/users/elizabethdinella/gists{/gist_id}","starred_url":"https://api.github.com/users/elizabethdinella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizabethdinella/subscriptions","organizations_url":"https://api.github.com/users/elizabethdinella/orgs","repos_url":"https://api.github.com/users/elizabethdinella/repos","events_url":"https://api.github.com/users/elizabethdinella/events{/privacy}","received_events_url":"https://api.github.com/users/elizabethdinella/received_events","type":"User","site_admin":false},"body":"<!--\r\nThank you for submitting a pull request!\r\n\r\nHere's a checklist you might find useful.\r\n* [ ] There is an associated issue that is labeled\r\n  'Bug' or 'help wanted' or is in the Community milestone\r\n* [ ] Code is up-to-date with the `master` branch\r\n* [ ] You've successfully run `jake runtests` locally\r\n* [ ] You've signed the CLA\r\n* [ ] There are new or updated unit tests validating the change\r\n\r\nRefer to CONTRIBUTING.MD for more details.\r\n  https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md\r\n-->\r\n\r\nFixes #\r\n\r\n","created_at":"2018-06-13T23:06:38Z","updated_at":"2018-07-23T20:55:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9400d79273d49f72984eafcfa838d0831f2bd8e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rbuckton","id":3902892,"node_id":"MDQ6VXNlcjM5MDI4OTI=","avatar_url":"https://avatars2.githubusercontent.com/u/3902892?v=4","gravatar_id":"","url":"https://api.github.com/users/rbuckton","html_url":"https://github.com/rbuckton","followers_url":"https://api.github.com/users/rbuckton/followers","following_url":"https://api.github.com/users/rbuckton/following{/other_user}","gists_url":"https://api.github.com/users/rbuckton/gists{/gist_id}","starred_url":"https://api.github.com/users/rbuckton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbuckton/subscriptions","organizations_url":"https://api.github.com/users/rbuckton/orgs","repos_url":"https://api.github.com/users/rbuckton/repos","events_url":"https://api.github.com/users/rbuckton/events{/privacy}","received_events_url":"https://api.github.com/users/rbuckton/received_events","type":"User","site_admin":false},{"login":"RyanCavanaugh","id":6685088,"node_id":"MDQ6VXNlcjY2ODUwODg=","avatar_url":"https://avatars3.githubusercontent.com/u/6685088?v=4","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/24939/commits","review_comments_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/24939/comments","review_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/24939/comments","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/99320bc5d1e49590ae85fde6cd725824a47c19c8","head":{"label":"elizabethdinella:promisesToAsyncAwaitCodeFix","ref":"promisesToAsyncAwaitCodeFix","sha":"99320bc5d1e49590ae85fde6cd725824a47c19c8","user":{"login":"elizabethdinella","id":8715900,"node_id":"MDQ6VXNlcjg3MTU5MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/8715900?v=4","gravatar_id":"","url":"https://api.github.com/users/elizabethdinella","html_url":"https://github.com/elizabethdinella","followers_url":"https://api.github.com/users/elizabethdinella/followers","following_url":"https://api.github.com/users/elizabethdinella/following{/other_user}","gists_url":"https://api.github.com/users/elizabethdinella/gists{/gist_id}","starred_url":"https://api.github.com/users/elizabethdinella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizabethdinella/subscriptions","organizations_url":"https://api.github.com/users/elizabethdinella/orgs","repos_url":"https://api.github.com/users/elizabethdinella/repos","events_url":"https://api.github.com/users/elizabethdinella/events{/privacy}","received_events_url":"https://api.github.com/users/elizabethdinella/received_events","type":"User","site_admin":false},"repo":{"id":137280366,"node_id":"MDEwOlJlcG9zaXRvcnkxMzcyODAzNjY=","name":"TypeScript","full_name":"elizabethdinella/TypeScript","owner":{"login":"elizabethdinella","id":8715900,"node_id":"MDQ6VXNlcjg3MTU5MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/8715900?v=4","gravatar_id":"","url":"https://api.github.com/users/elizabethdinella","html_url":"https://github.com/elizabethdinella","followers_url":"https://api.github.com/users/elizabethdinella/followers","following_url":"https://api.github.com/users/elizabethdinella/following{/other_user}","gists_url":"https://api.github.com/users/elizabethdinella/gists{/gist_id}","starred_url":"https://api.github.com/users/elizabethdinella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elizabethdinella/subscriptions","organizations_url":"https://api.github.com/users/elizabethdinella/orgs","repos_url":"https://api.github.com/users/elizabethdinella/repos","events_url":"https://api.github.com/users/elizabethdinella/events{/privacy}","received_events_url":"https://api.github.com/users/elizabethdinella/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elizabethdinella/TypeScript","description":"TypeScript is a superset of JavaScript that compiles to clean JavaScript output.","fork":true,"url":"https://api.github.com/repos/elizabethdinella/TypeScript","forks_url":"https://api.github.com/repos/elizabethdinella/TypeScript/forks","keys_url":"https://api.github.com/repos/elizabethdinella/TypeScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elizabethdinella/TypeScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elizabethdinella/TypeScript/teams","hooks_url":"https://api.github.com/repos/elizabethdinella/TypeScript/hooks","issue_events_url":"https://api.github.com/repos/elizabethdinella/TypeScript/issues/events{/number}","events_url":"https://api.github.com/repos/elizabethdinella/TypeScript/events","assignees_url":"https://api.github.com/repos/elizabethdinella/TypeScript/assignees{/user}","branches_url":"https://api.github.com/repos/elizabethdinella/TypeScript/branches{/branch}","tags_url":"https://api.github.com/repos/elizabethdinella/TypeScript/tags","blobs_url":"https://api.github.com/repos/elizabethdinella/TypeScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elizabethdinella/TypeScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elizabethdinella/TypeScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/elizabethdinella/TypeScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elizabethdinella/TypeScript/statuses/{sha}","languages_url":"https://api.github.com/repos/elizabethdinella/TypeScript/languages","stargazers_url":"https://api.github.com/repos/elizabethdinella/TypeScript/stargazers","contributors_url":"https://api.github.com/repos/elizabethdinella/TypeScript/contributors","subscribers_url":"https://api.github.com/repos/elizabethdinella/TypeScript/subscribers","subscription_url":"https://api.github.com/repos/elizabethdinella/TypeScript/subscription","commits_url":"https://api.github.com/repos/elizabethdinella/TypeScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/elizabethdinella/TypeScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/elizabethdinella/TypeScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/elizabethdinella/TypeScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/elizabethdinella/TypeScript/contents/{+path}","compare_url":"https://api.github.com/repos/elizabethdinella/TypeScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elizabethdinella/TypeScript/merges","archive_url":"https://api.github.com/repos/elizabethdinella/TypeScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elizabethdinella/TypeScript/downloads","issues_url":"https://api.github.com/repos/elizabethdinella/TypeScript/issues{/number}","pulls_url":"https://api.github.com/repos/elizabethdinella/TypeScript/pulls{/number}","milestones_url":"https://api.github.com/repos/elizabethdinella/TypeScript/milestones{/number}","notifications_url":"https://api.github.com/repos/elizabethdinella/TypeScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elizabethdinella/TypeScript/labels{/name}","releases_url":"https://api.github.com/repos/elizabethdinella/TypeScript/releases{/id}","deployments_url":"https://api.github.com/repos/elizabethdinella/TypeScript/deployments","created_at":"2018-06-13T22:58:50Z","updated_at":"2018-06-28T16:45:27Z","pushed_at":"2018-07-23T18:50:02Z","git_url":"git://github.com/elizabethdinella/TypeScript.git","ssh_url":"git@github.com:elizabethdinella/TypeScript.git","clone_url":"https://github.com/elizabethdinella/TypeScript.git","svn_url":"https://github.com/elizabethdinella/TypeScript","homepage":"http://www.typescriptlang.org","size":734593,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"bf508cbe119243be262c0ef140cdd20014f34238","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":20929025,"node_id":"MDEwOlJlcG9zaXRvcnkyMDkyOTAyNQ==","name":"TypeScript","full_name":"Microsoft/TypeScript","owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TypeScript","description":"TypeScript is a superset of JavaScript that compiles to clean JavaScript output.","fork":false,"url":"https://api.github.com/repos/Microsoft/TypeScript","forks_url":"https://api.github.com/repos/Microsoft/TypeScript/forks","keys_url":"https://api.github.com/repos/Microsoft/TypeScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TypeScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TypeScript/teams","hooks_url":"https://api.github.com/repos/Microsoft/TypeScript/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TypeScript/events","assignees_url":"https://api.github.com/repos/Microsoft/TypeScript/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TypeScript/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TypeScript/tags","blobs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TypeScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TypeScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TypeScript/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TypeScript/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TypeScript/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TypeScript/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TypeScript/subscription","commits_url":"https://api.github.com/repos/Microsoft/TypeScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TypeScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/TypeScript/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TypeScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TypeScript/merges","archive_url":"https://api.github.com/repos/Microsoft/TypeScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TypeScript/downloads","issues_url":"https://api.github.com/repos/Microsoft/TypeScript/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TypeScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TypeScript/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/TypeScript/deployments","created_at":"2014-06-17T15:28:39Z","updated_at":"2018-07-23T20:51:28Z","pushed_at":"2018-07-23T18:50:08Z","git_url":"git://github.com/Microsoft/TypeScript.git","ssh_url":"git@github.com:Microsoft/TypeScript.git","clone_url":"https://github.com/Microsoft/TypeScript.git","svn_url":"https://github.com/Microsoft/TypeScript","homepage":"http://www.typescriptlang.org","size":763620,"stargazers_count":36968,"watchers_count":36968,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5295,"mirror_url":null,"archived":false,"open_issues_count":2842,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":5295,"open_issues":2842,"watchers":36968,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/24939"},"html":{"href":"https://github.com/Microsoft/TypeScript/pull/24939"},"issue":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/24939"},"comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/24939/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/24939/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/24939/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/TypeScript/statuses/99320bc5d1e49590ae85fde6cd725824a47c19c8"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mhegazy"}}