{"action":"created","comment":{"url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/comments/29099577","id":29099577,"diff_hunk":"@@ -32,6 +40,16 @@ function gulpAmdCheck(options) {\n         file.contents = new Buffer(output.optimizedContent);\r\n       }\r\n \r\n+      if (options.errorOnUnusedDependencies) {\r\n+        if (output.results.length) {\r\n+          var unusedDependencies = output.results[0].unusedDependencies;\r","path":"index.js","position":37,"original_position":37,"commit_id":"149328286276b6dd01fe69ae908280e5cebc796e","original_commit_id":"149328286276b6dd01fe69ae908280e5cebc796e","user":{"login":"mehdishojaei","id":2007598,"avatar_url":"https://avatars.githubusercontent.com/u/2007598?v=3","gravatar_id":"","url":"https://api.github.com/users/mehdishojaei","html_url":"https://github.com/mehdishojaei","followers_url":"https://api.github.com/users/mehdishojaei/followers","following_url":"https://api.github.com/users/mehdishojaei/following{/other_user}","gists_url":"https://api.github.com/users/mehdishojaei/gists{/gist_id}","starred_url":"https://api.github.com/users/mehdishojaei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehdishojaei/subscriptions","organizations_url":"https://api.github.com/users/mehdishojaei/orgs","repos_url":"https://api.github.com/users/mehdishojaei/repos","events_url":"https://api.github.com/users/mehdishojaei/events{/privacy}","received_events_url":"https://api.github.com/users/mehdishojaei/received_events","type":"User","site_admin":false},"body":"Please check other `results` elements too.","created_at":"2015-04-25T10:15:42Z","updated_at":"2015-04-25T10:15:42Z","html_url":"https://github.com/mehdishojaei/gulp-amdcheck/pull/4#discussion_r29099577","pull_request_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/comments/29099577"},"html":{"href":"https://github.com/mehdishojaei/gulp-amdcheck/pull/4#discussion_r29099577"},"pull_request":{"href":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/4","id":33523802,"html_url":"https://github.com/mehdishojaei/gulp-amdcheck/pull/4","diff_url":"https://github.com/mehdishojaei/gulp-amdcheck/pull/4.diff","patch_url":"https://github.com/mehdishojaei/gulp-amdcheck/pull/4.patch","issue_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/issues/4","number":4,"state":"open","locked":false,"title":"Fail build on unused dependencies","user":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"body":"Ref #2 ","created_at":"2015-04-17T08:30:16Z","updated_at":"2015-04-25T10:15:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a49b0bf3b1f942a99fcf271adf120286416ad600","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/4/commits","review_comments_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/4/comments","review_comment_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/issues/4/comments","statuses_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/statuses/149328286276b6dd01fe69ae908280e5cebc796e","head":{"label":"SimenB:fail-build-on-unused","ref":"fail-build-on-unused","sha":"149328286276b6dd01fe69ae908280e5cebc796e","user":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"repo":{"id":34102398,"name":"gulp-amdcheck","full_name":"SimenB/gulp-amdcheck","owner":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SimenB/gulp-amdcheck","description":"Uses AST to find and remove unused dependencies in AMD modules.","fork":true,"url":"https://api.github.com/repos/SimenB/gulp-amdcheck","forks_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/forks","keys_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/teams","hooks_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/hooks","issue_events_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/issues/events{/number}","events_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/events","assignees_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/assignees{/user}","branches_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/branches{/branch}","tags_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/tags","blobs_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/git/refs{/sha}","trees_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/statuses/{sha}","languages_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/languages","stargazers_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/stargazers","contributors_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/contributors","subscribers_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/subscribers","subscription_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/subscription","commits_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/commits{/sha}","git_commits_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/git/commits{/sha}","comments_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/comments{/number}","issue_comment_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/issues/comments{/number}","contents_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/contents/{+path}","compare_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/merges","archive_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/downloads","issues_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/issues{/number}","pulls_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/pulls{/number}","milestones_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/milestones{/number}","notifications_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/labels{/name}","releases_url":"https://api.github.com/repos/SimenB/gulp-amdcheck/releases{/id}","created_at":"2015-04-17T07:20:17Z","updated_at":"2015-04-17T07:20:18Z","pushed_at":"2015-04-25T10:11:05Z","git_url":"git://github.com/SimenB/gulp-amdcheck.git","ssh_url":"git@github.com:SimenB/gulp-amdcheck.git","clone_url":"https://github.com/SimenB/gulp-amdcheck.git","svn_url":"https://github.com/SimenB/gulp-amdcheck","homepage":"https://www.npmjs.org/package/gulp-amdcheck","size":105,"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":"mehdishojaei:master","ref":"master","sha":"ab54a5597fac303709e17df2c84fedb57240f1d8","user":{"login":"mehdishojaei","id":2007598,"avatar_url":"https://avatars.githubusercontent.com/u/2007598?v=3","gravatar_id":"","url":"https://api.github.com/users/mehdishojaei","html_url":"https://github.com/mehdishojaei","followers_url":"https://api.github.com/users/mehdishojaei/followers","following_url":"https://api.github.com/users/mehdishojaei/following{/other_user}","gists_url":"https://api.github.com/users/mehdishojaei/gists{/gist_id}","starred_url":"https://api.github.com/users/mehdishojaei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehdishojaei/subscriptions","organizations_url":"https://api.github.com/users/mehdishojaei/orgs","repos_url":"https://api.github.com/users/mehdishojaei/repos","events_url":"https://api.github.com/users/mehdishojaei/events{/privacy}","received_events_url":"https://api.github.com/users/mehdishojaei/received_events","type":"User","site_admin":false},"repo":{"id":18153683,"name":"gulp-amdcheck","full_name":"mehdishojaei/gulp-amdcheck","owner":{"login":"mehdishojaei","id":2007598,"avatar_url":"https://avatars.githubusercontent.com/u/2007598?v=3","gravatar_id":"","url":"https://api.github.com/users/mehdishojaei","html_url":"https://github.com/mehdishojaei","followers_url":"https://api.github.com/users/mehdishojaei/followers","following_url":"https://api.github.com/users/mehdishojaei/following{/other_user}","gists_url":"https://api.github.com/users/mehdishojaei/gists{/gist_id}","starred_url":"https://api.github.com/users/mehdishojaei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mehdishojaei/subscriptions","organizations_url":"https://api.github.com/users/mehdishojaei/orgs","repos_url":"https://api.github.com/users/mehdishojaei/repos","events_url":"https://api.github.com/users/mehdishojaei/events{/privacy}","received_events_url":"https://api.github.com/users/mehdishojaei/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mehdishojaei/gulp-amdcheck","description":"Uses AST to find and remove unused dependencies in AMD modules.","fork":false,"url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck","forks_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/forks","keys_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/teams","hooks_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/hooks","issue_events_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/issues/events{/number}","events_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/events","assignees_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/assignees{/user}","branches_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/branches{/branch}","tags_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/tags","blobs_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/git/refs{/sha}","trees_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/statuses/{sha}","languages_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/languages","stargazers_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/stargazers","contributors_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/contributors","subscribers_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/subscribers","subscription_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/subscription","commits_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/commits{/sha}","git_commits_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/git/commits{/sha}","comments_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/comments{/number}","issue_comment_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/issues/comments{/number}","contents_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/contents/{+path}","compare_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/merges","archive_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/downloads","issues_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/issues{/number}","pulls_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls{/number}","milestones_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/milestones{/number}","notifications_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/labels{/name}","releases_url":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/releases{/id}","created_at":"2014-03-26T21:00:24Z","updated_at":"2015-04-25T10:02:28Z","pushed_at":"2015-04-25T10:02:28Z","git_url":"git://github.com/mehdishojaei/gulp-amdcheck.git","ssh_url":"git@github.com:mehdishojaei/gulp-amdcheck.git","clone_url":"https://github.com/mehdishojaei/gulp-amdcheck.git","svn_url":"https://github.com/mehdishojaei/gulp-amdcheck","homepage":"https://www.npmjs.org/package/gulp-amdcheck","size":339,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/4"},"html":{"href":"https://github.com/mehdishojaei/gulp-amdcheck/pull/4"},"issue":{"href":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/issues/4"},"comments":{"href":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/mehdishojaei/gulp-amdcheck/statuses/149328286276b6dd01fe69ae908280e5cebc796e"}}}}