{"action":"opened","number":31,"pull_request":{"url":"https://api.github.com/repos/leukeleu/deploytool/pulls/31","id":30466261,"html_url":"https://github.com/leukeleu/deploytool/pull/31","diff_url":"https://github.com/leukeleu/deploytool/pull/31.diff","patch_url":"https://github.com/leukeleu/deploytool/pull/31.patch","issue_url":"https://api.github.com/repos/leukeleu/deploytool/issues/31","number":31,"state":"open","locked":false,"title":"Rotate logs","user":{"login":"jaap3","id":48517,"avatar_url":"https://avatars.githubusercontent.com/u/48517?v=3","gravatar_id":"","url":"https://api.github.com/users/jaap3","html_url":"https://github.com/jaap3","followers_url":"https://api.github.com/users/jaap3/followers","following_url":"https://api.github.com/users/jaap3/following{/other_user}","gists_url":"https://api.github.com/users/jaap3/gists{/gist_id}","starred_url":"https://api.github.com/users/jaap3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaap3/subscriptions","organizations_url":"https://api.github.com/users/jaap3/orgs","repos_url":"https://api.github.com/users/jaap3/repos","events_url":"https://api.github.com/users/jaap3/events{/privacy}","received_events_url":"https://api.github.com/users/jaap3/received_events","type":"User","site_admin":false},"body":"Introduces a generic utility command to rotate logs after they reached a certain file size.\r\nRotate fabric.log when it exceeds 1MB (and keep 5 backups). This should be enough to keep a history of about 50 deploys.\r\nRotate pip log when it exceeds 512 bytes (and keep 10 backups). This rotates the pip.log after (almost) each run of pip_install_requirements, so you'll get the history of 10 runs.","created_at":"2015-03-04T13:51:29Z","updated_at":"2015-03-04T13:51:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/leukeleu/deploytool/pulls/31/commits","review_comments_url":"https://api.github.com/repos/leukeleu/deploytool/pulls/31/comments","review_comment_url":"https://api.github.com/repos/leukeleu/deploytool/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leukeleu/deploytool/issues/31/comments","statuses_url":"https://api.github.com/repos/leukeleu/deploytool/statuses/370f861c51a90b42146c3d00732cd2ecaf84e4f0","head":{"label":"leukeleu:rotate-logs","ref":"rotate-logs","sha":"370f861c51a90b42146c3d00732cd2ecaf84e4f0","user":{"login":"leukeleu","id":352786,"avatar_url":"https://avatars.githubusercontent.com/u/352786?v=3","gravatar_id":"","url":"https://api.github.com/users/leukeleu","html_url":"https://github.com/leukeleu","followers_url":"https://api.github.com/users/leukeleu/followers","following_url":"https://api.github.com/users/leukeleu/following{/other_user}","gists_url":"https://api.github.com/users/leukeleu/gists{/gist_id}","starred_url":"https://api.github.com/users/leukeleu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leukeleu/subscriptions","organizations_url":"https://api.github.com/users/leukeleu/orgs","repos_url":"https://api.github.com/users/leukeleu/repos","events_url":"https://api.github.com/users/leukeleu/events{/privacy}","received_events_url":"https://api.github.com/users/leukeleu/received_events","type":"Organization","site_admin":false},"repo":{"id":2827178,"name":"deploytool","full_name":"leukeleu/deploytool","owner":{"login":"leukeleu","id":352786,"avatar_url":"https://avatars.githubusercontent.com/u/352786?v=3","gravatar_id":"","url":"https://api.github.com/users/leukeleu","html_url":"https://github.com/leukeleu","followers_url":"https://api.github.com/users/leukeleu/followers","following_url":"https://api.github.com/users/leukeleu/following{/other_user}","gists_url":"https://api.github.com/users/leukeleu/gists{/gist_id}","starred_url":"https://api.github.com/users/leukeleu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leukeleu/subscriptions","organizations_url":"https://api.github.com/users/leukeleu/orgs","repos_url":"https://api.github.com/users/leukeleu/repos","events_url":"https://api.github.com/users/leukeleu/events{/privacy}","received_events_url":"https://api.github.com/users/leukeleu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leukeleu/deploytool","description":"","fork":false,"url":"https://api.github.com/repos/leukeleu/deploytool","forks_url":"https://api.github.com/repos/leukeleu/deploytool/forks","keys_url":"https://api.github.com/repos/leukeleu/deploytool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leukeleu/deploytool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leukeleu/deploytool/teams","hooks_url":"https://api.github.com/repos/leukeleu/deploytool/hooks","issue_events_url":"https://api.github.com/repos/leukeleu/deploytool/issues/events{/number}","events_url":"https://api.github.com/repos/leukeleu/deploytool/events","assignees_url":"https://api.github.com/repos/leukeleu/deploytool/assignees{/user}","branches_url":"https://api.github.com/repos/leukeleu/deploytool/branches{/branch}","tags_url":"https://api.github.com/repos/leukeleu/deploytool/tags","blobs_url":"https://api.github.com/repos/leukeleu/deploytool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leukeleu/deploytool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leukeleu/deploytool/git/refs{/sha}","trees_url":"https://api.github.com/repos/leukeleu/deploytool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leukeleu/deploytool/statuses/{sha}","languages_url":"https://api.github.com/repos/leukeleu/deploytool/languages","stargazers_url":"https://api.github.com/repos/leukeleu/deploytool/stargazers","contributors_url":"https://api.github.com/repos/leukeleu/deploytool/contributors","subscribers_url":"https://api.github.com/repos/leukeleu/deploytool/subscribers","subscription_url":"https://api.github.com/repos/leukeleu/deploytool/subscription","commits_url":"https://api.github.com/repos/leukeleu/deploytool/commits{/sha}","git_commits_url":"https://api.github.com/repos/leukeleu/deploytool/git/commits{/sha}","comments_url":"https://api.github.com/repos/leukeleu/deploytool/comments{/number}","issue_comment_url":"https://api.github.com/repos/leukeleu/deploytool/issues/comments{/number}","contents_url":"https://api.github.com/repos/leukeleu/deploytool/contents/{+path}","compare_url":"https://api.github.com/repos/leukeleu/deploytool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leukeleu/deploytool/merges","archive_url":"https://api.github.com/repos/leukeleu/deploytool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leukeleu/deploytool/downloads","issues_url":"https://api.github.com/repos/leukeleu/deploytool/issues{/number}","pulls_url":"https://api.github.com/repos/leukeleu/deploytool/pulls{/number}","milestones_url":"https://api.github.com/repos/leukeleu/deploytool/milestones{/number}","notifications_url":"https://api.github.com/repos/leukeleu/deploytool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leukeleu/deploytool/labels{/name}","releases_url":"https://api.github.com/repos/leukeleu/deploytool/releases{/id}","created_at":"2011-11-22T11:16:22Z","updated_at":"2014-05-23T10:19:11Z","pushed_at":"2015-03-04T13:43:05Z","git_url":"git://github.com/leukeleu/deploytool.git","ssh_url":"git@github.com:leukeleu/deploytool.git","clone_url":"https://github.com/leukeleu/deploytool.git","svn_url":"https://github.com/leukeleu/deploytool","homepage":"","size":699,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":17,"forks":4,"open_issues":17,"watchers":6,"default_branch":"master"}},"base":{"label":"leukeleu:puppet","ref":"puppet","sha":"101d7ca6c1220c5b3ad69b1e77602fd096de0a69","user":{"login":"leukeleu","id":352786,"avatar_url":"https://avatars.githubusercontent.com/u/352786?v=3","gravatar_id":"","url":"https://api.github.com/users/leukeleu","html_url":"https://github.com/leukeleu","followers_url":"https://api.github.com/users/leukeleu/followers","following_url":"https://api.github.com/users/leukeleu/following{/other_user}","gists_url":"https://api.github.com/users/leukeleu/gists{/gist_id}","starred_url":"https://api.github.com/users/leukeleu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leukeleu/subscriptions","organizations_url":"https://api.github.com/users/leukeleu/orgs","repos_url":"https://api.github.com/users/leukeleu/repos","events_url":"https://api.github.com/users/leukeleu/events{/privacy}","received_events_url":"https://api.github.com/users/leukeleu/received_events","type":"Organization","site_admin":false},"repo":{"id":2827178,"name":"deploytool","full_name":"leukeleu/deploytool","owner":{"login":"leukeleu","id":352786,"avatar_url":"https://avatars.githubusercontent.com/u/352786?v=3","gravatar_id":"","url":"https://api.github.com/users/leukeleu","html_url":"https://github.com/leukeleu","followers_url":"https://api.github.com/users/leukeleu/followers","following_url":"https://api.github.com/users/leukeleu/following{/other_user}","gists_url":"https://api.github.com/users/leukeleu/gists{/gist_id}","starred_url":"https://api.github.com/users/leukeleu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leukeleu/subscriptions","organizations_url":"https://api.github.com/users/leukeleu/orgs","repos_url":"https://api.github.com/users/leukeleu/repos","events_url":"https://api.github.com/users/leukeleu/events{/privacy}","received_events_url":"https://api.github.com/users/leukeleu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/leukeleu/deploytool","description":"","fork":false,"url":"https://api.github.com/repos/leukeleu/deploytool","forks_url":"https://api.github.com/repos/leukeleu/deploytool/forks","keys_url":"https://api.github.com/repos/leukeleu/deploytool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leukeleu/deploytool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leukeleu/deploytool/teams","hooks_url":"https://api.github.com/repos/leukeleu/deploytool/hooks","issue_events_url":"https://api.github.com/repos/leukeleu/deploytool/issues/events{/number}","events_url":"https://api.github.com/repos/leukeleu/deploytool/events","assignees_url":"https://api.github.com/repos/leukeleu/deploytool/assignees{/user}","branches_url":"https://api.github.com/repos/leukeleu/deploytool/branches{/branch}","tags_url":"https://api.github.com/repos/leukeleu/deploytool/tags","blobs_url":"https://api.github.com/repos/leukeleu/deploytool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leukeleu/deploytool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leukeleu/deploytool/git/refs{/sha}","trees_url":"https://api.github.com/repos/leukeleu/deploytool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leukeleu/deploytool/statuses/{sha}","languages_url":"https://api.github.com/repos/leukeleu/deploytool/languages","stargazers_url":"https://api.github.com/repos/leukeleu/deploytool/stargazers","contributors_url":"https://api.github.com/repos/leukeleu/deploytool/contributors","subscribers_url":"https://api.github.com/repos/leukeleu/deploytool/subscribers","subscription_url":"https://api.github.com/repos/leukeleu/deploytool/subscription","commits_url":"https://api.github.com/repos/leukeleu/deploytool/commits{/sha}","git_commits_url":"https://api.github.com/repos/leukeleu/deploytool/git/commits{/sha}","comments_url":"https://api.github.com/repos/leukeleu/deploytool/comments{/number}","issue_comment_url":"https://api.github.com/repos/leukeleu/deploytool/issues/comments{/number}","contents_url":"https://api.github.com/repos/leukeleu/deploytool/contents/{+path}","compare_url":"https://api.github.com/repos/leukeleu/deploytool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leukeleu/deploytool/merges","archive_url":"https://api.github.com/repos/leukeleu/deploytool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leukeleu/deploytool/downloads","issues_url":"https://api.github.com/repos/leukeleu/deploytool/issues{/number}","pulls_url":"https://api.github.com/repos/leukeleu/deploytool/pulls{/number}","milestones_url":"https://api.github.com/repos/leukeleu/deploytool/milestones{/number}","notifications_url":"https://api.github.com/repos/leukeleu/deploytool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leukeleu/deploytool/labels{/name}","releases_url":"https://api.github.com/repos/leukeleu/deploytool/releases{/id}","created_at":"2011-11-22T11:16:22Z","updated_at":"2014-05-23T10:19:11Z","pushed_at":"2015-03-04T13:43:05Z","git_url":"git://github.com/leukeleu/deploytool.git","ssh_url":"git@github.com:leukeleu/deploytool.git","clone_url":"https://github.com/leukeleu/deploytool.git","svn_url":"https://github.com/leukeleu/deploytool","homepage":"","size":699,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":17,"forks":4,"open_issues":17,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leukeleu/deploytool/pulls/31"},"html":{"href":"https://github.com/leukeleu/deploytool/pull/31"},"issue":{"href":"https://api.github.com/repos/leukeleu/deploytool/issues/31"},"comments":{"href":"https://api.github.com/repos/leukeleu/deploytool/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/leukeleu/deploytool/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/leukeleu/deploytool/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leukeleu/deploytool/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/leukeleu/deploytool/statuses/370f861c51a90b42146c3d00732cd2ecaf84e4f0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":47,"deletions":3,"changed_files":2}}