{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/SitePen/dts-generator/pulls/18","id":33778588,"html_url":"https://github.com/SitePen/dts-generator/pull/18","diff_url":"https://github.com/SitePen/dts-generator/pull/18.diff","patch_url":"https://github.com/SitePen/dts-generator/pull/18.patch","issue_url":"https://api.github.com/repos/SitePen/dts-generator/issues/18","number":18,"state":"open","locked":false,"title":"Reject a build if emit has diagnostic messages","user":{"login":"jason0x43","id":1042866,"avatar_url":"https://avatars.githubusercontent.com/u/1042866?v=3","gravatar_id":"","url":"https://api.github.com/users/jason0x43","html_url":"https://github.com/jason0x43","followers_url":"https://api.github.com/users/jason0x43/followers","following_url":"https://api.github.com/users/jason0x43/following{/other_user}","gists_url":"https://api.github.com/users/jason0x43/gists{/gist_id}","starred_url":"https://api.github.com/users/jason0x43/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jason0x43/subscriptions","organizations_url":"https://api.github.com/users/jason0x43/orgs","repos_url":"https://api.github.com/users/jason0x43/repos","events_url":"https://api.github.com/users/jason0x43/events{/privacy}","received_events_url":"https://api.github.com/users/jason0x43/received_events","type":"User","site_admin":false},"body":"emit can fail to produce typings even if it emits a typings file (so that `emitSkipped` is false), so `dis-generator` should also consider the presence of diagnostic messages. For example, the following class will result in an empty typings file because the exported class uses a private interface:\r\n\r\n```js\r\ninterface I {\r\n}\r\n\r\nexport class C {\r\n\tconstructor(a: I) {\r\n\t}\r\n}\r\n```","created_at":"2015-04-21T16:23:51Z","updated_at":"2015-04-21T16:23:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SitePen/dts-generator/pulls/18/commits","review_comments_url":"https://api.github.com/repos/SitePen/dts-generator/pulls/18/comments","review_comment_url":"https://api.github.com/repos/SitePen/dts-generator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SitePen/dts-generator/issues/18/comments","statuses_url":"https://api.github.com/repos/SitePen/dts-generator/statuses/cf7d86a01081207953880878f11d278654f14e96","head":{"label":"SitePen:diagnostic-fail","ref":"diagnostic-fail","sha":"cf7d86a01081207953880878f11d278654f14e96","user":{"login":"SitePen","id":1067343,"avatar_url":"https://avatars.githubusercontent.com/u/1067343?v=3","gravatar_id":"","url":"https://api.github.com/users/SitePen","html_url":"https://github.com/SitePen","followers_url":"https://api.github.com/users/SitePen/followers","following_url":"https://api.github.com/users/SitePen/following{/other_user}","gists_url":"https://api.github.com/users/SitePen/gists{/gist_id}","starred_url":"https://api.github.com/users/SitePen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SitePen/subscriptions","organizations_url":"https://api.github.com/users/SitePen/orgs","repos_url":"https://api.github.com/users/SitePen/repos","events_url":"https://api.github.com/users/SitePen/events{/privacy}","received_events_url":"https://api.github.com/users/SitePen/received_events","type":"Organization","site_admin":false},"repo":{"id":29694418,"name":"dts-generator","full_name":"SitePen/dts-generator","owner":{"login":"SitePen","id":1067343,"avatar_url":"https://avatars.githubusercontent.com/u/1067343?v=3","gravatar_id":"","url":"https://api.github.com/users/SitePen","html_url":"https://github.com/SitePen","followers_url":"https://api.github.com/users/SitePen/followers","following_url":"https://api.github.com/users/SitePen/following{/other_user}","gists_url":"https://api.github.com/users/SitePen/gists{/gist_id}","starred_url":"https://api.github.com/users/SitePen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SitePen/subscriptions","organizations_url":"https://api.github.com/users/SitePen/orgs","repos_url":"https://api.github.com/users/SitePen/repos","events_url":"https://api.github.com/users/SitePen/events{/privacy}","received_events_url":"https://api.github.com/users/SitePen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SitePen/dts-generator","description":"","fork":false,"url":"https://api.github.com/repos/SitePen/dts-generator","forks_url":"https://api.github.com/repos/SitePen/dts-generator/forks","keys_url":"https://api.github.com/repos/SitePen/dts-generator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SitePen/dts-generator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SitePen/dts-generator/teams","hooks_url":"https://api.github.com/repos/SitePen/dts-generator/hooks","issue_events_url":"https://api.github.com/repos/SitePen/dts-generator/issues/events{/number}","events_url":"https://api.github.com/repos/SitePen/dts-generator/events","assignees_url":"https://api.github.com/repos/SitePen/dts-generator/assignees{/user}","branches_url":"https://api.github.com/repos/SitePen/dts-generator/branches{/branch}","tags_url":"https://api.github.com/repos/SitePen/dts-generator/tags","blobs_url":"https://api.github.com/repos/SitePen/dts-generator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SitePen/dts-generator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SitePen/dts-generator/git/refs{/sha}","trees_url":"https://api.github.com/repos/SitePen/dts-generator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SitePen/dts-generator/statuses/{sha}","languages_url":"https://api.github.com/repos/SitePen/dts-generator/languages","stargazers_url":"https://api.github.com/repos/SitePen/dts-generator/stargazers","contributors_url":"https://api.github.com/repos/SitePen/dts-generator/contributors","subscribers_url":"https://api.github.com/repos/SitePen/dts-generator/subscribers","subscription_url":"https://api.github.com/repos/SitePen/dts-generator/subscription","commits_url":"https://api.github.com/repos/SitePen/dts-generator/commits{/sha}","git_commits_url":"https://api.github.com/repos/SitePen/dts-generator/git/commits{/sha}","comments_url":"https://api.github.com/repos/SitePen/dts-generator/comments{/number}","issue_comment_url":"https://api.github.com/repos/SitePen/dts-generator/issues/comments{/number}","contents_url":"https://api.github.com/repos/SitePen/dts-generator/contents/{+path}","compare_url":"https://api.github.com/repos/SitePen/dts-generator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SitePen/dts-generator/merges","archive_url":"https://api.github.com/repos/SitePen/dts-generator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SitePen/dts-generator/downloads","issues_url":"https://api.github.com/repos/SitePen/dts-generator/issues{/number}","pulls_url":"https://api.github.com/repos/SitePen/dts-generator/pulls{/number}","milestones_url":"https://api.github.com/repos/SitePen/dts-generator/milestones{/number}","notifications_url":"https://api.github.com/repos/SitePen/dts-generator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SitePen/dts-generator/labels{/name}","releases_url":"https://api.github.com/repos/SitePen/dts-generator/releases{/id}","created_at":"2015-01-22T18:55:19Z","updated_at":"2015-04-19T06:11:55Z","pushed_at":"2015-04-21T16:20:22Z","git_url":"git://github.com/SitePen/dts-generator.git","ssh_url":"git@github.com:SitePen/dts-generator.git","clone_url":"https://github.com/SitePen/dts-generator.git","svn_url":"https://github.com/SitePen/dts-generator","homepage":null,"size":385,"stargazers_count":16,"watchers_count":16,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":16,"default_branch":"master"}},"base":{"label":"SitePen:master","ref":"master","sha":"78b13290f27fd0a000eb70ea0b8f0ee1fdd137f8","user":{"login":"SitePen","id":1067343,"avatar_url":"https://avatars.githubusercontent.com/u/1067343?v=3","gravatar_id":"","url":"https://api.github.com/users/SitePen","html_url":"https://github.com/SitePen","followers_url":"https://api.github.com/users/SitePen/followers","following_url":"https://api.github.com/users/SitePen/following{/other_user}","gists_url":"https://api.github.com/users/SitePen/gists{/gist_id}","starred_url":"https://api.github.com/users/SitePen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SitePen/subscriptions","organizations_url":"https://api.github.com/users/SitePen/orgs","repos_url":"https://api.github.com/users/SitePen/repos","events_url":"https://api.github.com/users/SitePen/events{/privacy}","received_events_url":"https://api.github.com/users/SitePen/received_events","type":"Organization","site_admin":false},"repo":{"id":29694418,"name":"dts-generator","full_name":"SitePen/dts-generator","owner":{"login":"SitePen","id":1067343,"avatar_url":"https://avatars.githubusercontent.com/u/1067343?v=3","gravatar_id":"","url":"https://api.github.com/users/SitePen","html_url":"https://github.com/SitePen","followers_url":"https://api.github.com/users/SitePen/followers","following_url":"https://api.github.com/users/SitePen/following{/other_user}","gists_url":"https://api.github.com/users/SitePen/gists{/gist_id}","starred_url":"https://api.github.com/users/SitePen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SitePen/subscriptions","organizations_url":"https://api.github.com/users/SitePen/orgs","repos_url":"https://api.github.com/users/SitePen/repos","events_url":"https://api.github.com/users/SitePen/events{/privacy}","received_events_url":"https://api.github.com/users/SitePen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SitePen/dts-generator","description":"","fork":false,"url":"https://api.github.com/repos/SitePen/dts-generator","forks_url":"https://api.github.com/repos/SitePen/dts-generator/forks","keys_url":"https://api.github.com/repos/SitePen/dts-generator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SitePen/dts-generator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SitePen/dts-generator/teams","hooks_url":"https://api.github.com/repos/SitePen/dts-generator/hooks","issue_events_url":"https://api.github.com/repos/SitePen/dts-generator/issues/events{/number}","events_url":"https://api.github.com/repos/SitePen/dts-generator/events","assignees_url":"https://api.github.com/repos/SitePen/dts-generator/assignees{/user}","branches_url":"https://api.github.com/repos/SitePen/dts-generator/branches{/branch}","tags_url":"https://api.github.com/repos/SitePen/dts-generator/tags","blobs_url":"https://api.github.com/repos/SitePen/dts-generator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SitePen/dts-generator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SitePen/dts-generator/git/refs{/sha}","trees_url":"https://api.github.com/repos/SitePen/dts-generator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SitePen/dts-generator/statuses/{sha}","languages_url":"https://api.github.com/repos/SitePen/dts-generator/languages","stargazers_url":"https://api.github.com/repos/SitePen/dts-generator/stargazers","contributors_url":"https://api.github.com/repos/SitePen/dts-generator/contributors","subscribers_url":"https://api.github.com/repos/SitePen/dts-generator/subscribers","subscription_url":"https://api.github.com/repos/SitePen/dts-generator/subscription","commits_url":"https://api.github.com/repos/SitePen/dts-generator/commits{/sha}","git_commits_url":"https://api.github.com/repos/SitePen/dts-generator/git/commits{/sha}","comments_url":"https://api.github.com/repos/SitePen/dts-generator/comments{/number}","issue_comment_url":"https://api.github.com/repos/SitePen/dts-generator/issues/comments{/number}","contents_url":"https://api.github.com/repos/SitePen/dts-generator/contents/{+path}","compare_url":"https://api.github.com/repos/SitePen/dts-generator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SitePen/dts-generator/merges","archive_url":"https://api.github.com/repos/SitePen/dts-generator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SitePen/dts-generator/downloads","issues_url":"https://api.github.com/repos/SitePen/dts-generator/issues{/number}","pulls_url":"https://api.github.com/repos/SitePen/dts-generator/pulls{/number}","milestones_url":"https://api.github.com/repos/SitePen/dts-generator/milestones{/number}","notifications_url":"https://api.github.com/repos/SitePen/dts-generator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SitePen/dts-generator/labels{/name}","releases_url":"https://api.github.com/repos/SitePen/dts-generator/releases{/id}","created_at":"2015-01-22T18:55:19Z","updated_at":"2015-04-19T06:11:55Z","pushed_at":"2015-04-21T16:20:22Z","git_url":"git://github.com/SitePen/dts-generator.git","ssh_url":"git@github.com:SitePen/dts-generator.git","clone_url":"https://github.com/SitePen/dts-generator.git","svn_url":"https://github.com/SitePen/dts-generator","homepage":null,"size":385,"stargazers_count":16,"watchers_count":16,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SitePen/dts-generator/pulls/18"},"html":{"href":"https://github.com/SitePen/dts-generator/pull/18"},"issue":{"href":"https://api.github.com/repos/SitePen/dts-generator/issues/18"},"comments":{"href":"https://api.github.com/repos/SitePen/dts-generator/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/SitePen/dts-generator/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/SitePen/dts-generator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SitePen/dts-generator/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/SitePen/dts-generator/statuses/cf7d86a01081207953880878f11d278654f14e96"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}