{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/bensquire/php-image-optim/pulls/5","id":61873912,"html_url":"https://github.com/bensquire/php-image-optim/pull/5","diff_url":"https://github.com/bensquire/php-image-optim/pull/5.diff","patch_url":"https://github.com/bensquire/php-image-optim/pull/5.patch","issue_url":"https://api.github.com/repos/bensquire/php-image-optim/issues/5","number":5,"state":"open","locked":false,"title":"Change to a temporary directory before executing pngcrush","user":{"login":"tremby","id":199635,"avatar_url":"https://avatars.githubusercontent.com/u/199635?v=3","gravatar_id":"","url":"https://api.github.com/users/tremby","html_url":"https://github.com/tremby","followers_url":"https://api.github.com/users/tremby/followers","following_url":"https://api.github.com/users/tremby/following{/other_user}","gists_url":"https://api.github.com/users/tremby/gists{/gist_id}","starred_url":"https://api.github.com/users/tremby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tremby/subscriptions","organizations_url":"https://api.github.com/users/tremby/orgs","repos_url":"https://api.github.com/users/tremby/repos","events_url":"https://api.github.com/users/tremby/events{/privacy}","received_events_url":"https://api.github.com/users/tremby/received_events","type":"User","site_admin":false},"body":"Pngcrush writes temporary files in the current working directory.\r\nSometimes the user running PHP does not have write permissions in the\r\ncurrent working directory, so change to a temporary directory first,\r\nthen change back afterwards.\r\n\r\nSee #2 ","created_at":"2016-03-07T05:16:37Z","updated_at":"2016-03-07T05:16:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bensquire/php-image-optim/pulls/5/commits","review_comments_url":"https://api.github.com/repos/bensquire/php-image-optim/pulls/5/comments","review_comment_url":"https://api.github.com/repos/bensquire/php-image-optim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bensquire/php-image-optim/issues/5/comments","statuses_url":"https://api.github.com/repos/bensquire/php-image-optim/statuses/cfd4e5be0fea301812884092c3dba95310daa82a","head":{"label":"tremby:current-pngcrush-rebase","ref":"current-pngcrush-rebase","sha":"cfd4e5be0fea301812884092c3dba95310daa82a","user":{"login":"tremby","id":199635,"avatar_url":"https://avatars.githubusercontent.com/u/199635?v=3","gravatar_id":"","url":"https://api.github.com/users/tremby","html_url":"https://github.com/tremby","followers_url":"https://api.github.com/users/tremby/followers","following_url":"https://api.github.com/users/tremby/following{/other_user}","gists_url":"https://api.github.com/users/tremby/gists{/gist_id}","starred_url":"https://api.github.com/users/tremby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tremby/subscriptions","organizations_url":"https://api.github.com/users/tremby/orgs","repos_url":"https://api.github.com/users/tremby/repos","events_url":"https://api.github.com/users/tremby/events{/privacy}","received_events_url":"https://api.github.com/users/tremby/received_events","type":"User","site_admin":false},"repo":{"id":24960326,"name":"php-image-optim","full_name":"tremby/php-image-optim","owner":{"login":"tremby","id":199635,"avatar_url":"https://avatars.githubusercontent.com/u/199635?v=3","gravatar_id":"","url":"https://api.github.com/users/tremby","html_url":"https://github.com/tremby","followers_url":"https://api.github.com/users/tremby/followers","following_url":"https://api.github.com/users/tremby/following{/other_user}","gists_url":"https://api.github.com/users/tremby/gists{/gist_id}","starred_url":"https://api.github.com/users/tremby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tremby/subscriptions","organizations_url":"https://api.github.com/users/tremby/orgs","repos_url":"https://api.github.com/users/tremby/repos","events_url":"https://api.github.com/users/tremby/events{/privacy}","received_events_url":"https://api.github.com/users/tremby/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tremby/php-image-optim","description":"","fork":true,"url":"https://api.github.com/repos/tremby/php-image-optim","forks_url":"https://api.github.com/repos/tremby/php-image-optim/forks","keys_url":"https://api.github.com/repos/tremby/php-image-optim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tremby/php-image-optim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tremby/php-image-optim/teams","hooks_url":"https://api.github.com/repos/tremby/php-image-optim/hooks","issue_events_url":"https://api.github.com/repos/tremby/php-image-optim/issues/events{/number}","events_url":"https://api.github.com/repos/tremby/php-image-optim/events","assignees_url":"https://api.github.com/repos/tremby/php-image-optim/assignees{/user}","branches_url":"https://api.github.com/repos/tremby/php-image-optim/branches{/branch}","tags_url":"https://api.github.com/repos/tremby/php-image-optim/tags","blobs_url":"https://api.github.com/repos/tremby/php-image-optim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tremby/php-image-optim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tremby/php-image-optim/git/refs{/sha}","trees_url":"https://api.github.com/repos/tremby/php-image-optim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tremby/php-image-optim/statuses/{sha}","languages_url":"https://api.github.com/repos/tremby/php-image-optim/languages","stargazers_url":"https://api.github.com/repos/tremby/php-image-optim/stargazers","contributors_url":"https://api.github.com/repos/tremby/php-image-optim/contributors","subscribers_url":"https://api.github.com/repos/tremby/php-image-optim/subscribers","subscription_url":"https://api.github.com/repos/tremby/php-image-optim/subscription","commits_url":"https://api.github.com/repos/tremby/php-image-optim/commits{/sha}","git_commits_url":"https://api.github.com/repos/tremby/php-image-optim/git/commits{/sha}","comments_url":"https://api.github.com/repos/tremby/php-image-optim/comments{/number}","issue_comment_url":"https://api.github.com/repos/tremby/php-image-optim/issues/comments{/number}","contents_url":"https://api.github.com/repos/tremby/php-image-optim/contents/{+path}","compare_url":"https://api.github.com/repos/tremby/php-image-optim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tremby/php-image-optim/merges","archive_url":"https://api.github.com/repos/tremby/php-image-optim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tremby/php-image-optim/downloads","issues_url":"https://api.github.com/repos/tremby/php-image-optim/issues{/number}","pulls_url":"https://api.github.com/repos/tremby/php-image-optim/pulls{/number}","milestones_url":"https://api.github.com/repos/tremby/php-image-optim/milestones{/number}","notifications_url":"https://api.github.com/repos/tremby/php-image-optim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tremby/php-image-optim/labels{/name}","releases_url":"https://api.github.com/repos/tremby/php-image-optim/releases{/id}","deployments_url":"https://api.github.com/repos/tremby/php-image-optim/deployments","created_at":"2014-10-08T20:52:21Z","updated_at":"2014-10-18T02:11:20Z","pushed_at":"2016-03-07T05:16:02Z","git_url":"git://github.com/tremby/php-image-optim.git","ssh_url":"git@github.com:tremby/php-image-optim.git","clone_url":"https://github.com/tremby/php-image-optim.git","svn_url":"https://github.com/tremby/php-image-optim","homepage":null,"size":1003,"stargazers_count":1,"watchers_count":1,"language":null,"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":1,"default_branch":"master"}},"base":{"label":"bensquire:master","ref":"master","sha":"7b57c3ac2f64190b2d73ac285515dd16eccfb024","user":{"login":"bensquire","id":600237,"avatar_url":"https://avatars.githubusercontent.com/u/600237?v=3","gravatar_id":"","url":"https://api.github.com/users/bensquire","html_url":"https://github.com/bensquire","followers_url":"https://api.github.com/users/bensquire/followers","following_url":"https://api.github.com/users/bensquire/following{/other_user}","gists_url":"https://api.github.com/users/bensquire/gists{/gist_id}","starred_url":"https://api.github.com/users/bensquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bensquire/subscriptions","organizations_url":"https://api.github.com/users/bensquire/orgs","repos_url":"https://api.github.com/users/bensquire/repos","events_url":"https://api.github.com/users/bensquire/events{/privacy}","received_events_url":"https://api.github.com/users/bensquire/received_events","type":"User","site_admin":false},"repo":{"id":14995098,"name":"php-image-optim","full_name":"bensquire/php-image-optim","owner":{"login":"bensquire","id":600237,"avatar_url":"https://avatars.githubusercontent.com/u/600237?v=3","gravatar_id":"","url":"https://api.github.com/users/bensquire","html_url":"https://github.com/bensquire","followers_url":"https://api.github.com/users/bensquire/followers","following_url":"https://api.github.com/users/bensquire/following{/other_user}","gists_url":"https://api.github.com/users/bensquire/gists{/gist_id}","starred_url":"https://api.github.com/users/bensquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bensquire/subscriptions","organizations_url":"https://api.github.com/users/bensquire/orgs","repos_url":"https://api.github.com/users/bensquire/repos","events_url":"https://api.github.com/users/bensquire/events{/privacy}","received_events_url":"https://api.github.com/users/bensquire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bensquire/php-image-optim","description":"","fork":false,"url":"https://api.github.com/repos/bensquire/php-image-optim","forks_url":"https://api.github.com/repos/bensquire/php-image-optim/forks","keys_url":"https://api.github.com/repos/bensquire/php-image-optim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bensquire/php-image-optim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bensquire/php-image-optim/teams","hooks_url":"https://api.github.com/repos/bensquire/php-image-optim/hooks","issue_events_url":"https://api.github.com/repos/bensquire/php-image-optim/issues/events{/number}","events_url":"https://api.github.com/repos/bensquire/php-image-optim/events","assignees_url":"https://api.github.com/repos/bensquire/php-image-optim/assignees{/user}","branches_url":"https://api.github.com/repos/bensquire/php-image-optim/branches{/branch}","tags_url":"https://api.github.com/repos/bensquire/php-image-optim/tags","blobs_url":"https://api.github.com/repos/bensquire/php-image-optim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bensquire/php-image-optim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bensquire/php-image-optim/git/refs{/sha}","trees_url":"https://api.github.com/repos/bensquire/php-image-optim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bensquire/php-image-optim/statuses/{sha}","languages_url":"https://api.github.com/repos/bensquire/php-image-optim/languages","stargazers_url":"https://api.github.com/repos/bensquire/php-image-optim/stargazers","contributors_url":"https://api.github.com/repos/bensquire/php-image-optim/contributors","subscribers_url":"https://api.github.com/repos/bensquire/php-image-optim/subscribers","subscription_url":"https://api.github.com/repos/bensquire/php-image-optim/subscription","commits_url":"https://api.github.com/repos/bensquire/php-image-optim/commits{/sha}","git_commits_url":"https://api.github.com/repos/bensquire/php-image-optim/git/commits{/sha}","comments_url":"https://api.github.com/repos/bensquire/php-image-optim/comments{/number}","issue_comment_url":"https://api.github.com/repos/bensquire/php-image-optim/issues/comments{/number}","contents_url":"https://api.github.com/repos/bensquire/php-image-optim/contents/{+path}","compare_url":"https://api.github.com/repos/bensquire/php-image-optim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bensquire/php-image-optim/merges","archive_url":"https://api.github.com/repos/bensquire/php-image-optim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bensquire/php-image-optim/downloads","issues_url":"https://api.github.com/repos/bensquire/php-image-optim/issues{/number}","pulls_url":"https://api.github.com/repos/bensquire/php-image-optim/pulls{/number}","milestones_url":"https://api.github.com/repos/bensquire/php-image-optim/milestones{/number}","notifications_url":"https://api.github.com/repos/bensquire/php-image-optim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bensquire/php-image-optim/labels{/name}","releases_url":"https://api.github.com/repos/bensquire/php-image-optim/releases{/id}","deployments_url":"https://api.github.com/repos/bensquire/php-image-optim/deployments","created_at":"2013-12-06T22:30:09Z","updated_at":"2016-02-07T16:33:42Z","pushed_at":"2016-03-05T20:59:24Z","git_url":"git://github.com/bensquire/php-image-optim.git","ssh_url":"git@github.com:bensquire/php-image-optim.git","clone_url":"https://github.com/bensquire/php-image-optim.git","svn_url":"https://github.com/bensquire/php-image-optim","homepage":null,"size":1002,"stargazers_count":34,"watchers_count":34,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bensquire/php-image-optim/pulls/5"},"html":{"href":"https://github.com/bensquire/php-image-optim/pull/5"},"issue":{"href":"https://api.github.com/repos/bensquire/php-image-optim/issues/5"},"comments":{"href":"https://api.github.com/repos/bensquire/php-image-optim/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/bensquire/php-image-optim/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/bensquire/php-image-optim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bensquire/php-image-optim/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/bensquire/php-image-optim/statuses/cfd4e5be0fea301812884092c3dba95310daa82a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":0,"changed_files":1}}