{"action":"opened","number":69,"pull_request":{"url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/pulls/69","id":88557542,"html_url":"https://github.com/houseabsolute/perl-code-tidyall/pull/69","diff_url":"https://github.com/houseabsolute/perl-code-tidyall/pull/69.diff","patch_url":"https://github.com/houseabsolute/perl-code-tidyall/pull/69.patch","issue_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/issues/69","number":69,"state":"open","locked":false,"title":"Preserve file mode (permissions) on tidy.","user":{"login":"adamherzog","id":1744181,"avatar_url":"https://avatars.githubusercontent.com/u/1744181?v=3","gravatar_id":"","url":"https://api.github.com/users/adamherzog","html_url":"https://github.com/adamherzog","followers_url":"https://api.github.com/users/adamherzog/followers","following_url":"https://api.github.com/users/adamherzog/following{/other_user}","gists_url":"https://api.github.com/users/adamherzog/gists{/gist_id}","starred_url":"https://api.github.com/users/adamherzog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamherzog/subscriptions","organizations_url":"https://api.github.com/users/adamherzog/orgs","repos_url":"https://api.github.com/users/adamherzog/repos","events_url":"https://api.github.com/users/adamherzog/events{/privacy}","received_events_url":"https://api.github.com/users/adamherzog/received_events","type":"User","site_admin":false},"body":"Fix for issue #68.\r\n\r\nThis changes the method of writing out the tidied file from ->spew() to\r\n->append({truncate => 1}). spew() copies the new file into place, which\r\nends up resetting the file mode based on the current umask. Using append()\r\ninstead preserves the file permissions and ownership, without us having\r\nto keep track of the mode and resetting it after writing the file.\r\n\r\n(This is describe in the Path::Tiny docs, here: https://metacpan.org/pod/Path::Tiny#spew-spew_raw-spew_utf8)\r\n","created_at":"2016-10-08T20:08:24Z","updated_at":"2016-10-08T20:08:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/pulls/69/commits","review_comments_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/pulls/69/comments","review_comment_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/pulls/comments{/number}","comments_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/issues/69/comments","statuses_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/statuses/86779f389d0f3ac5427156148dd38cbc19c185a7","head":{"label":"adamherzog:preserve-file-mode","ref":"preserve-file-mode","sha":"86779f389d0f3ac5427156148dd38cbc19c185a7","user":{"login":"adamherzog","id":1744181,"avatar_url":"https://avatars.githubusercontent.com/u/1744181?v=3","gravatar_id":"","url":"https://api.github.com/users/adamherzog","html_url":"https://github.com/adamherzog","followers_url":"https://api.github.com/users/adamherzog/followers","following_url":"https://api.github.com/users/adamherzog/following{/other_user}","gists_url":"https://api.github.com/users/adamherzog/gists{/gist_id}","starred_url":"https://api.github.com/users/adamherzog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamherzog/subscriptions","organizations_url":"https://api.github.com/users/adamherzog/orgs","repos_url":"https://api.github.com/users/adamherzog/repos","events_url":"https://api.github.com/users/adamherzog/events{/privacy}","received_events_url":"https://api.github.com/users/adamherzog/received_events","type":"User","site_admin":false},"repo":{"id":70349649,"name":"perl-code-tidyall","full_name":"adamherzog/perl-code-tidyall","owner":{"login":"adamherzog","id":1744181,"avatar_url":"https://avatars.githubusercontent.com/u/1744181?v=3","gravatar_id":"","url":"https://api.github.com/users/adamherzog","html_url":"https://github.com/adamherzog","followers_url":"https://api.github.com/users/adamherzog/followers","following_url":"https://api.github.com/users/adamherzog/following{/other_user}","gists_url":"https://api.github.com/users/adamherzog/gists{/gist_id}","starred_url":"https://api.github.com/users/adamherzog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamherzog/subscriptions","organizations_url":"https://api.github.com/users/adamherzog/orgs","repos_url":"https://api.github.com/users/adamherzog/repos","events_url":"https://api.github.com/users/adamherzog/events{/privacy}","received_events_url":"https://api.github.com/users/adamherzog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/adamherzog/perl-code-tidyall","description":"Engine for tidyall, your all-in-one code tidier and validator","fork":true,"url":"https://api.github.com/repos/adamherzog/perl-code-tidyall","forks_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/forks","keys_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/teams","hooks_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/hooks","issue_events_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/issues/events{/number}","events_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/events","assignees_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/assignees{/user}","branches_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/branches{/branch}","tags_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/tags","blobs_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/git/refs{/sha}","trees_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/statuses/{sha}","languages_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/languages","stargazers_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/stargazers","contributors_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/contributors","subscribers_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/subscribers","subscription_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/subscription","commits_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/commits{/sha}","git_commits_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/git/commits{/sha}","comments_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/comments{/number}","issue_comment_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/issues/comments{/number}","contents_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/contents/{+path}","compare_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/merges","archive_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/downloads","issues_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/issues{/number}","pulls_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/pulls{/number}","milestones_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/milestones{/number}","notifications_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/labels{/name}","releases_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/releases{/id}","deployments_url":"https://api.github.com/repos/adamherzog/perl-code-tidyall/deployments","created_at":"2016-10-08T18:20:37Z","updated_at":"2016-10-08T18:20:40Z","pushed_at":"2016-10-08T20:06:39Z","git_url":"git://github.com/adamherzog/perl-code-tidyall.git","ssh_url":"git@github.com:adamherzog/perl-code-tidyall.git","clone_url":"https://github.com/adamherzog/perl-code-tidyall.git","svn_url":"https://github.com/adamherzog/perl-code-tidyall","homepage":"http://metacpan.org/release/Code-TidyAll/","size":2698,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"houseabsolute:master","ref":"master","sha":"ea3ddc464537da61ba6b200abd981bc71557c301","user":{"login":"houseabsolute","id":9559342,"avatar_url":"https://avatars.githubusercontent.com/u/9559342?v=3","gravatar_id":"","url":"https://api.github.com/users/houseabsolute","html_url":"https://github.com/houseabsolute","followers_url":"https://api.github.com/users/houseabsolute/followers","following_url":"https://api.github.com/users/houseabsolute/following{/other_user}","gists_url":"https://api.github.com/users/houseabsolute/gists{/gist_id}","starred_url":"https://api.github.com/users/houseabsolute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houseabsolute/subscriptions","organizations_url":"https://api.github.com/users/houseabsolute/orgs","repos_url":"https://api.github.com/users/houseabsolute/repos","events_url":"https://api.github.com/users/houseabsolute/events{/privacy}","received_events_url":"https://api.github.com/users/houseabsolute/received_events","type":"Organization","site_admin":false},"repo":{"id":4342098,"name":"perl-code-tidyall","full_name":"houseabsolute/perl-code-tidyall","owner":{"login":"houseabsolute","id":9559342,"avatar_url":"https://avatars.githubusercontent.com/u/9559342?v=3","gravatar_id":"","url":"https://api.github.com/users/houseabsolute","html_url":"https://github.com/houseabsolute","followers_url":"https://api.github.com/users/houseabsolute/followers","following_url":"https://api.github.com/users/houseabsolute/following{/other_user}","gists_url":"https://api.github.com/users/houseabsolute/gists{/gist_id}","starred_url":"https://api.github.com/users/houseabsolute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houseabsolute/subscriptions","organizations_url":"https://api.github.com/users/houseabsolute/orgs","repos_url":"https://api.github.com/users/houseabsolute/repos","events_url":"https://api.github.com/users/houseabsolute/events{/privacy}","received_events_url":"https://api.github.com/users/houseabsolute/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/houseabsolute/perl-code-tidyall","description":"Engine for tidyall, your all-in-one code tidier and validator","fork":false,"url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall","forks_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/forks","keys_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/keys{/key_id}","collaborators_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/teams","hooks_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/hooks","issue_events_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/issues/events{/number}","events_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/events","assignees_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/assignees{/user}","branches_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/branches{/branch}","tags_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/tags","blobs_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/git/refs{/sha}","trees_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/git/trees{/sha}","statuses_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/statuses/{sha}","languages_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/languages","stargazers_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/stargazers","contributors_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/contributors","subscribers_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/subscribers","subscription_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/subscription","commits_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/commits{/sha}","git_commits_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/git/commits{/sha}","comments_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/comments{/number}","issue_comment_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/issues/comments{/number}","contents_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/contents/{+path}","compare_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/compare/{base}...{head}","merges_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/merges","archive_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/downloads","issues_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/issues{/number}","pulls_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/pulls{/number}","milestones_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/milestones{/number}","notifications_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/labels{/name}","releases_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/releases{/id}","deployments_url":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/deployments","created_at":"2012-05-16T00:33:18Z","updated_at":"2016-10-08T18:59:11Z","pushed_at":"2016-10-08T20:08:24Z","git_url":"git://github.com/houseabsolute/perl-code-tidyall.git","ssh_url":"git@github.com:houseabsolute/perl-code-tidyall.git","clone_url":"https://github.com/houseabsolute/perl-code-tidyall.git","svn_url":"https://github.com/houseabsolute/perl-code-tidyall","homepage":"http://metacpan.org/release/Code-TidyAll/","size":2698,"stargazers_count":11,"watchers_count":11,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":15,"forks":22,"open_issues":15,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/pulls/69"},"html":{"href":"https://github.com/houseabsolute/perl-code-tidyall/pull/69"},"issue":{"href":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/issues/69"},"comments":{"href":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/houseabsolute/perl-code-tidyall/statuses/86779f389d0f3ac5427156148dd38cbc19c185a7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"adamherzog"}}