{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/owais/webpack-bundle-tracker/pulls/5","id":53608114,"html_url":"https://github.com/owais/webpack-bundle-tracker/pull/5","diff_url":"https://github.com/owais/webpack-bundle-tracker/pull/5.diff","patch_url":"https://github.com/owais/webpack-bundle-tracker/pull/5.patch","issue_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/issues/5","number":5,"state":"closed","locked":false,"title":"Ensure output directory exists before writing to the file","user":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"body":"I used `mkdirp` to make sure the output directory exists before we try to write the file.\r\n\r\nIf the directory doesn't exist, the plugin will throw.\r\n\r\nI also fixed some 3 lines with syntax errors. You probably should add a basic linter step to prevent these mishaps as long as you don't have any unit test coverage.","created_at":"2015-12-14T19:13:08Z","updated_at":"2015-12-23T11:10:27Z","closed_at":"2015-12-23T11:10:27Z","merged_at":"2015-12-23T11:10:27Z","merge_commit_sha":"0dcea0141c826f0eea09f27f91d85e3cb508f8fc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/pulls/5/commits","review_comments_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/pulls/5/comments","review_comment_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/issues/5/comments","statuses_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/statuses/dc5195139983f2a7a340a11a65a3277cd114febd","head":{"label":"SBoudrias:create-dirs","ref":"create-dirs","sha":"dc5195139983f2a7a340a11a65a3277cd114febd","user":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"repo":{"id":47995560,"name":"webpack-bundle-tracker","full_name":"SBoudrias/webpack-bundle-tracker","owner":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SBoudrias/webpack-bundle-tracker","description":"Spits out some stats about webpack compilation process to a file","fork":true,"url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker","forks_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/forks","keys_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/teams","hooks_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/hooks","issue_events_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/events","assignees_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/tags","blobs_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/languages","stargazers_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/stargazers","contributors_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/contributors","subscribers_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/subscribers","subscription_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/subscription","commits_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/merges","archive_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/downloads","issues_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/labels{/name}","releases_url":"https://api.github.com/repos/SBoudrias/webpack-bundle-tracker/releases{/id}","created_at":"2015-12-14T19:10:23Z","updated_at":"2015-12-14T19:10:24Z","pushed_at":"2015-12-14T19:11:22Z","git_url":"git://github.com/SBoudrias/webpack-bundle-tracker.git","ssh_url":"git@github.com:SBoudrias/webpack-bundle-tracker.git","clone_url":"https://github.com/SBoudrias/webpack-bundle-tracker.git","svn_url":"https://github.com/SBoudrias/webpack-bundle-tracker","homepage":null,"size":9,"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":"owais:master","ref":"master","sha":"763c326bbb06ea1028d9ac5db11e7ffc91d9257e","user":{"login":"owais","id":46186,"avatar_url":"https://avatars.githubusercontent.com/u/46186?v=3","gravatar_id":"","url":"https://api.github.com/users/owais","html_url":"https://github.com/owais","followers_url":"https://api.github.com/users/owais/followers","following_url":"https://api.github.com/users/owais/following{/other_user}","gists_url":"https://api.github.com/users/owais/gists{/gist_id}","starred_url":"https://api.github.com/users/owais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owais/subscriptions","organizations_url":"https://api.github.com/users/owais/orgs","repos_url":"https://api.github.com/users/owais/repos","events_url":"https://api.github.com/users/owais/events{/privacy}","received_events_url":"https://api.github.com/users/owais/received_events","type":"User","site_admin":false},"repo":{"id":35733197,"name":"webpack-bundle-tracker","full_name":"owais/webpack-bundle-tracker","owner":{"login":"owais","id":46186,"avatar_url":"https://avatars.githubusercontent.com/u/46186?v=3","gravatar_id":"","url":"https://api.github.com/users/owais","html_url":"https://github.com/owais","followers_url":"https://api.github.com/users/owais/followers","following_url":"https://api.github.com/users/owais/following{/other_user}","gists_url":"https://api.github.com/users/owais/gists{/gist_id}","starred_url":"https://api.github.com/users/owais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owais/subscriptions","organizations_url":"https://api.github.com/users/owais/orgs","repos_url":"https://api.github.com/users/owais/repos","events_url":"https://api.github.com/users/owais/events{/privacy}","received_events_url":"https://api.github.com/users/owais/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/owais/webpack-bundle-tracker","description":"Spits out some stats about webpack compilation process to a file","fork":false,"url":"https://api.github.com/repos/owais/webpack-bundle-tracker","forks_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/forks","keys_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/teams","hooks_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/hooks","issue_events_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/issues/events{/number}","events_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/events","assignees_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/assignees{/user}","branches_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/branches{/branch}","tags_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/tags","blobs_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/git/refs{/sha}","trees_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/statuses/{sha}","languages_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/languages","stargazers_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/stargazers","contributors_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/contributors","subscribers_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/subscribers","subscription_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/subscription","commits_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/commits{/sha}","git_commits_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/git/commits{/sha}","comments_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/comments{/number}","issue_comment_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/issues/comments{/number}","contents_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/contents/{+path}","compare_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/merges","archive_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/downloads","issues_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/issues{/number}","pulls_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/pulls{/number}","milestones_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/milestones{/number}","notifications_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/labels{/name}","releases_url":"https://api.github.com/repos/owais/webpack-bundle-tracker/releases{/id}","created_at":"2015-05-16T17:28:56Z","updated_at":"2015-12-19T11:59:15Z","pushed_at":"2015-12-23T11:10:27Z","git_url":"git://github.com/owais/webpack-bundle-tracker.git","ssh_url":"git@github.com:owais/webpack-bundle-tracker.git","clone_url":"https://github.com/owais/webpack-bundle-tracker.git","svn_url":"https://github.com/owais/webpack-bundle-tracker","homepage":null,"size":151,"stargazers_count":37,"watchers_count":37,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owais/webpack-bundle-tracker/pulls/5"},"html":{"href":"https://github.com/owais/webpack-bundle-tracker/pull/5"},"issue":{"href":"https://api.github.com/repos/owais/webpack-bundle-tracker/issues/5"},"comments":{"href":"https://api.github.com/repos/owais/webpack-bundle-tracker/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/owais/webpack-bundle-tracker/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/owais/webpack-bundle-tracker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owais/webpack-bundle-tracker/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/owais/webpack-bundle-tracker/statuses/dc5195139983f2a7a340a11a65a3277cd114febd"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"owais","id":46186,"avatar_url":"https://avatars.githubusercontent.com/u/46186?v=3","gravatar_id":"","url":"https://api.github.com/users/owais","html_url":"https://github.com/owais","followers_url":"https://api.github.com/users/owais/followers","following_url":"https://api.github.com/users/owais/following{/other_user}","gists_url":"https://api.github.com/users/owais/gists{/gist_id}","starred_url":"https://api.github.com/users/owais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owais/subscriptions","organizations_url":"https://api.github.com/users/owais/orgs","repos_url":"https://api.github.com/users/owais/repos","events_url":"https://api.github.com/users/owais/events{/privacy}","received_events_url":"https://api.github.com/users/owais/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":6,"deletions":3,"changed_files":2}}