{"action":"created","comment":{"url":"https://api.github.com/repos/angular/angular/pulls/comments/30474517","id":30474517,"diff_hunk":"@@ -0,0 +1,201 @@\n+var glob = require('glob');\n+var path = require('canonical-path');\n+var _ = require('lodash');\n+var ts = require('typescript');\n+\n+module.exports = function readTypeScriptModules(tsParser, readFilesProcessor, modules, getFileInfo, getExportDocType, getContent, log) {\n+\n+  return {\n+    $runAfter: ['files-read'],\n+    $runBefore: ['parsing-tags'],\n+\n+    $validate: {\n+      sourceFiles: {presence: true},\n+      basePath: {presence: true},\n+      hidePrivateMembers: { inclusion: [true, false] },\n+      hideSpecialExports: { inclusion: [true, false] }\n+    },\n+\n+    sourceFiles: [],\n+    basePath: '.',\n+    hidePrivateMembers: false,\n+    hideSpecialExports: true,\n+\n+    $process: function(docs) {\n+\n+      var hideSpecialExports = this.hideSpecialExports;\n+      var hidePrivateMembers = this.hidePrivateMembers;\n+\n+      var basePath = path.resolve(readFilesProcessor.basePath, this.basePath);\n+      var filesPaths = expandSourceFiles(this.sourceFiles, basePath);\n+      var parseInfo = tsParser.parse(filesPaths, this.basePath);\n+      var moduleSymbols = parseInfo.moduleSymbols;\n+\n+      // Iterate through each of the modules that were parsed and generate a module doc\n+      // as well as docs for each module's exports.\n+      moduleSymbols.forEach(function(moduleSymbol) {\n+\n+        var moduleDoc = createModuleDoc(moduleSymbol, basePath);\n+\n+        // Add this module doc to the module lookup collection and the docs collection\n+        modules[moduleDoc.id] = moduleDoc;\n+        docs.push(moduleDoc);\n+\n+        // Iterate through this module's exports and generate a doc for each\n+        moduleSymbol.exportArray.forEach(function(exportSymbol) {\n+\n+          // Ignore exports starting with an underscore\n+          if (hideSpecialExports && exportSymbol.name.charAt(0) === '_') return;\n+\n+          // If the symbol is an Alias then for most things we want the original resolved symbol\n+          var resolvedExport = exportSymbol.resolvedSymbol || exportSymbol;\n+          var exportDoc = createExportDoc(exportSymbol.name, resolvedExport, moduleDoc, basePath, parseInfo.typeChecker);\n+          log.debug('>>>> EXPORT: ' + exportDoc.name + ' (' + exportDoc.docType + ') from ' + moduleDoc.id);\n+\n+          // Generate docs for each of the export's members\n+          if (resolvedExport.flags & ts.SymbolFlags.HasMembers) {\n+\n+            exportDoc.members = [];\n+            for(var memberName in resolvedExport.members) {\n+              log.silly('>>>>>> member: ' + memberName + ' from ' + exportDoc.id + ' in ' + moduleDoc.id);\n+              var memberSymbol = resolvedExport.members[memberName];\n+              var memberDoc = createMemberDoc(memberSymbol, exportDoc, basePath, parseInfo.typeChecker);\n+\n+              // We special case the constructor and sort the other members alphabetically\n+              if (memberSymbol.flags & ts.SymbolFlags.Constructor) {\n+                exportDoc.constructorDoc = memberDoc;\n+                docs.push(memberDoc);\n+              } else if (!hidePrivateMembers || memberSymbol.name.charAt(0) !== '_') {\n+                docs.push(memberDoc);\n+                insertSorted(exportDoc.members, memberDoc, 'name');\n+              }\n+            }\n+          }\n+\n+          // Add this export doc to its module doc\n+          moduleDoc.exports.push(exportDoc);\n+          docs.push(exportDoc);\n+        });\n+      });\n+    }\n+  };\n+\n+\n+  function createModuleDoc(moduleSymbol, basePath) {\n+    var id = moduleSymbol.name.replace(/^\"|\"$/g, '');\n+    var moduleDoc = {\n+      docType: 'module',\n+      id: id,\n+      aliases: [id],\n+      moduleTree: moduleSymbol,\n+      content: getContent(moduleSymbol),\n+      exports: [],\n+      fileInfo: getFileInfo(moduleSymbol, basePath),\n+      location: getLocation(moduleSymbol)\n+    };\n+    return moduleDoc;\n+  }\n+\n+  function createExportDoc(name, exportSymbol, moduleDoc, basePath, typeChecker) {\n+    var exportDoc = {\n+      docType: getExportDocType(exportSymbol),\n+      name: name,\n+      id: name,\n+      aliases: [name],\n+      moduleDoc: moduleDoc,\n+      content: getContent(exportSymbol),\n+      fileInfo: getFileInfo(exportSymbol, basePath),\n+      location: getLocation(exportSymbol)\n+    };\n+    if(exportSymbol.flags & ts.SymbolFlags.Function) {\n+      exportDoc.parameters = getParameters(typeChecker, exportSymbol);\n+      exportDoc.returnType = getReturnType(typeChecker, exportSymbol);\n+    }\n+    return exportDoc;\n+  }\n+\n+  function createMemberDoc(memberSymbol, classDoc, basePath, typeChecker) {\n+    var memberDoc = {\n+      docType: 'member',\n+      classDoc: classDoc,\n+      name: memberSymbol.name,\n+      id: memberSymbol.name,\n+      content: getContent(memberSymbol),\n+      fileInfo: getFileInfo(memberSymbol, basePath),\n+      location: getLocation(memberSymbol)\n+    };\n+\n+    if (memberSymbol.flags & ts.SymbolFlags.Method) {\n+      // NOTE: we use the property name `parameters` here so we don't conflict\n+      // with the `params` property that will be updated by dgeni reading the\n+      // `@param` tags from the docs\n+      memberDoc.parameters = getParameters(typeChecker, memberSymbol);\n+      memberDoc.returnType = getReturnType(typeChecker, memberSymbol);\n+    }\n+\n+    if (memberSymbol.flags & ts.SymbolFlags.Constructor) {\n+      memberDoc.parameters = getParameters(typeChecker, memberSymbol);\n+      memberDoc.name = 'constructor';\n+    }\n+\n+    return memberDoc;\n+  }\n+\n+\n+  function getParameters(typeChecker, symbol) {\n+    var declaration = symbol.valueDeclaration || symbol.declarations[0];\n+    var sourceFile = ts.getSourceFileOfNode(declaration);\n+    if(!declaration.parameters) {\n+      console.log(declaration);\n+      throw 'missing declaration parameters';\n+    }\n+    var signature = typeChecker.getSignatureFromDeclaration(declaration);\n+    return declaration.parameters.map(function(parameter) {\n+      return getText(sourceFile, parameter).trim();\n+    });\n+  }\n+\n+  function getReturnType(typeChecker, symbol) {\n+    var declaration = symbol.valueDeclaration || symbol.declarations[0];\n+    var sourceFile = ts.getSourceFileOfNode(declaration);\n+    if(declaration.type) {\n+      var signature = typeChecker.getSignatureFromDeclaration(declaration);\n+      return getText(sourceFile, declaration.type).trim();\n+    }\n+  }\n+\n+\n+  function expandSourceFiles(sourceFiles, basePath) {\n+    var filePaths = [];\n+    sourceFiles.forEach(function(sourcePattern) {\n+      filePaths = filePaths.concat(glob.sync(sourcePattern, { cwd: basePath }));\n+    });\n+    return filePaths;\n+  }\n+\n+\n+  function getText(sourceFile, node) {\n+    return sourceFile.text.substring(node.pos, node.end);\n+  }\n+\n+\n+  function getLocation(symbol) {\n+    var node = symbol.valueDeclaration || symbol.declarations[0];\n+    var sourceFile = ts.getSourceFileOfNode(node);\n+    var location = {\n+      start: ts.getLineAndCharacterOfPosition(sourceFile, node.pos),\n+      end: ts.getLineAndCharacterOfPosition(sourceFile, node.end)\n+    };\n+    return location;\n+  }\n+\n+};\n+\n+function insertSorted(collection, item, property) {","path":"docs/dgeni-package/processors/readTypeScriptModules.js","position":200,"original_position":194,"commit_id":"1635ef113293fbf1663a76be4b26bf034d45cf0b","original_commit_id":"6b6cff0de20bb8e0b902a5433c8458f6b1212181","user":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"body":"Yes, you're right but I think that it doesn't matter much in the bigger picture. The biggest bottleneck in dgeni is the file access.","created_at":"2015-05-17T20:28:38Z","updated_at":"2015-05-17T20:28:38Z","html_url":"https://github.com/angular/angular/pull/1886#discussion_r30474517","pull_request_url":"https://api.github.com/repos/angular/angular/pulls/1886","_links":{"self":{"href":"https://api.github.com/repos/angular/angular/pulls/comments/30474517"},"html":{"href":"https://github.com/angular/angular/pull/1886#discussion_r30474517"},"pull_request":{"href":"https://api.github.com/repos/angular/angular/pulls/1886"}}},"pull_request":{"url":"https://api.github.com/repos/angular/angular/pulls/1886","id":35374434,"html_url":"https://github.com/angular/angular/pull/1886","diff_url":"https://github.com/angular/angular/pull/1886.diff","patch_url":"https://github.com/angular/angular/pull/1886.patch","issue_url":"https://api.github.com/repos/angular/angular/issues/1886","number":1886,"state":"open","locked":false,"title":"TypeScript based documentation generation","user":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"body":"Closes #1729","created_at":"2015-05-13T21:48:11Z","updated_at":"2015-05-17T20:28:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c59c109b9157766b777cd0b2585576623ba77d4","assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/23","html_url":"https://github.com/angular/angular/milestones/M8:%20GT%20Customer%20(non-blocking)","labels_url":"https://api.github.com/repos/angular/angular/milestones/23/labels","id":1054731,"number":23,"title":"M8: GT Customer (non-blocking)","description":"","creator":{"login":"mhevery","id":111951,"avatar_url":"https://avatars.githubusercontent.com/u/111951?v=3","gravatar_id":"","url":"https://api.github.com/users/mhevery","html_url":"https://github.com/mhevery","followers_url":"https://api.github.com/users/mhevery/followers","following_url":"https://api.github.com/users/mhevery/following{/other_user}","gists_url":"https://api.github.com/users/mhevery/gists{/gist_id}","starred_url":"https://api.github.com/users/mhevery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhevery/subscriptions","organizations_url":"https://api.github.com/users/mhevery/orgs","repos_url":"https://api.github.com/users/mhevery/repos","events_url":"https://api.github.com/users/mhevery/events{/privacy}","received_events_url":"https://api.github.com/users/mhevery/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":63,"state":"open","created_at":"2015-04-06T16:59:20Z","updated_at":"2015-05-15T20:54:16Z","due_on":"2015-05-05T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/angular/angular/pulls/1886/commits","review_comments_url":"https://api.github.com/repos/angular/angular/pulls/1886/comments","review_comment_url":"https://api.github.com/repos/angular/angular/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular/issues/1886/comments","statuses_url":"https://api.github.com/repos/angular/angular/statuses/1635ef113293fbf1663a76be4b26bf034d45cf0b","head":{"label":"petebacondarwin:ts-doc-gen","ref":"ts-doc-gen","sha":"1635ef113293fbf1663a76be4b26bf034d45cf0b","user":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"repo":{"id":27181953,"name":"angular","full_name":"petebacondarwin/angular","owner":{"login":"petebacondarwin","id":15655,"avatar_url":"https://avatars.githubusercontent.com/u/15655?v=3","gravatar_id":"","url":"https://api.github.com/users/petebacondarwin","html_url":"https://github.com/petebacondarwin","followers_url":"https://api.github.com/users/petebacondarwin/followers","following_url":"https://api.github.com/users/petebacondarwin/following{/other_user}","gists_url":"https://api.github.com/users/petebacondarwin/gists{/gist_id}","starred_url":"https://api.github.com/users/petebacondarwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petebacondarwin/subscriptions","organizations_url":"https://api.github.com/users/petebacondarwin/orgs","repos_url":"https://api.github.com/users/petebacondarwin/repos","events_url":"https://api.github.com/users/petebacondarwin/events{/privacy}","received_events_url":"https://api.github.com/users/petebacondarwin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/petebacondarwin/angular","description":"","fork":true,"url":"https://api.github.com/repos/petebacondarwin/angular","forks_url":"https://api.github.com/repos/petebacondarwin/angular/forks","keys_url":"https://api.github.com/repos/petebacondarwin/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/petebacondarwin/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/petebacondarwin/angular/teams","hooks_url":"https://api.github.com/repos/petebacondarwin/angular/hooks","issue_events_url":"https://api.github.com/repos/petebacondarwin/angular/issues/events{/number}","events_url":"https://api.github.com/repos/petebacondarwin/angular/events","assignees_url":"https://api.github.com/repos/petebacondarwin/angular/assignees{/user}","branches_url":"https://api.github.com/repos/petebacondarwin/angular/branches{/branch}","tags_url":"https://api.github.com/repos/petebacondarwin/angular/tags","blobs_url":"https://api.github.com/repos/petebacondarwin/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/petebacondarwin/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/petebacondarwin/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/petebacondarwin/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/petebacondarwin/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/petebacondarwin/angular/languages","stargazers_url":"https://api.github.com/repos/petebacondarwin/angular/stargazers","contributors_url":"https://api.github.com/repos/petebacondarwin/angular/contributors","subscribers_url":"https://api.github.com/repos/petebacondarwin/angular/subscribers","subscription_url":"https://api.github.com/repos/petebacondarwin/angular/subscription","commits_url":"https://api.github.com/repos/petebacondarwin/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/petebacondarwin/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/petebacondarwin/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/petebacondarwin/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/petebacondarwin/angular/contents/{+path}","compare_url":"https://api.github.com/repos/petebacondarwin/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/petebacondarwin/angular/merges","archive_url":"https://api.github.com/repos/petebacondarwin/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/petebacondarwin/angular/downloads","issues_url":"https://api.github.com/repos/petebacondarwin/angular/issues{/number}","pulls_url":"https://api.github.com/repos/petebacondarwin/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/petebacondarwin/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/petebacondarwin/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/petebacondarwin/angular/labels{/name}","releases_url":"https://api.github.com/repos/petebacondarwin/angular/releases{/id}","created_at":"2014-11-26T15:01:46Z","updated_at":"2014-11-26T15:01:46Z","pushed_at":"2015-05-17T20:06:02Z","git_url":"git://github.com/petebacondarwin/angular.git","ssh_url":"git@github.com:petebacondarwin/angular.git","clone_url":"https://github.com/petebacondarwin/angular.git","svn_url":"https://github.com/petebacondarwin/angular","homepage":null,"size":6381,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"angular:master","ref":"master","sha":"666336be1a45a8787e8a7e812d88a54edbdb9347","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":24195339,"name":"angular","full_name":"angular/angular","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/angular","description":"","fork":false,"url":"https://api.github.com/repos/angular/angular","forks_url":"https://api.github.com/repos/angular/angular/forks","keys_url":"https://api.github.com/repos/angular/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular/teams","hooks_url":"https://api.github.com/repos/angular/angular/hooks","issue_events_url":"https://api.github.com/repos/angular/angular/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular/events","assignees_url":"https://api.github.com/repos/angular/angular/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular/tags","blobs_url":"https://api.github.com/repos/angular/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular/languages","stargazers_url":"https://api.github.com/repos/angular/angular/stargazers","contributors_url":"https://api.github.com/repos/angular/angular/contributors","subscribers_url":"https://api.github.com/repos/angular/angular/subscribers","subscription_url":"https://api.github.com/repos/angular/angular/subscription","commits_url":"https://api.github.com/repos/angular/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular/merges","archive_url":"https://api.github.com/repos/angular/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular/downloads","issues_url":"https://api.github.com/repos/angular/angular/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular/releases{/id}","created_at":"2014-09-18T16:12:01Z","updated_at":"2015-05-17T16:52:44Z","pushed_at":"2015-05-17T20:06:04Z","git_url":"git://github.com/angular/angular.git","ssh_url":"git@github.com:angular/angular.git","clone_url":"https://github.com/angular/angular.git","svn_url":"https://github.com/angular/angular","homepage":null,"size":26463,"stargazers_count":3081,"watchers_count":3081,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":790,"mirror_url":null,"open_issues_count":338,"forks":790,"open_issues":338,"watchers":3081,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular/pulls/1886"},"html":{"href":"https://github.com/angular/angular/pull/1886"},"issue":{"href":"https://api.github.com/repos/angular/angular/issues/1886"},"comments":{"href":"https://api.github.com/repos/angular/angular/issues/1886/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular/pulls/1886/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular/pulls/1886/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular/statuses/1635ef113293fbf1663a76be4b26bf034d45cf0b"}}}}