{"action":"opened","number":339,"pull_request":{"url":"https://api.github.com/repos/square/p2/pulls/339","id":52762544,"html_url":"https://github.com/square/p2/pull/339","diff_url":"https://github.com/square/p2/pull/339.diff","patch_url":"https://github.com/square/p2/pull/339.patch","issue_url":"https://api.github.com/repos/square/p2/issues/339","number":339,"state":"open","locked":false,"title":"Allow shorthand for memory limits.","user":{"login":"anthonybishopric","id":540783,"avatar_url":"https://avatars.githubusercontent.com/u/540783?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonybishopric","html_url":"https://github.com/anthonybishopric","followers_url":"https://api.github.com/users/anthonybishopric/followers","following_url":"https://api.github.com/users/anthonybishopric/following{/other_user}","gists_url":"https://api.github.com/users/anthonybishopric/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonybishopric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonybishopric/subscriptions","organizations_url":"https://api.github.com/users/anthonybishopric/orgs","repos_url":"https://api.github.com/users/anthonybishopric/repos","events_url":"https://api.github.com/users/anthonybishopric/events{/privacy}","received_events_url":"https://api.github.com/users/anthonybishopric/received_events","type":"User","site_admin":false},"body":"This change allows manifest authors to specify a shorthand for\r\nthe byte limits of their cgroups. Previously, all `memory` entries\r\nfor the `cgroup` stanza had to be in the form of an integer\r\nnumber of bytes. Authors may now use a shorthand as defined by\r\nthe package `github.com/square/p2/pkg/util/size`.\r\n\r\nAn author wishing to limit their launchable to a maximum resident\r\nmemory limit of 4 Gibibytes may use the shorthand `4G` instead of\r\n`4294967296`.\r\n\r\nThe old form of specifying an integer limit of bytes is also supported.","created_at":"2015-12-05T19:37:02Z","updated_at":"2015-12-05T19:37:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0834145ed76788a9c5a066cae6a26329abecb558","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/square/p2/pulls/339/commits","review_comments_url":"https://api.github.com/repos/square/p2/pulls/339/comments","review_comment_url":"https://api.github.com/repos/square/p2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/p2/issues/339/comments","statuses_url":"https://api.github.com/repos/square/p2/statuses/0b75cc5a950fb19bfaf2c007fd102adf832a1610","head":{"label":"anthonybishopric:abishopric/manifest_memory","ref":"abishopric/manifest_memory","sha":"0b75cc5a950fb19bfaf2c007fd102adf832a1610","user":{"login":"anthonybishopric","id":540783,"avatar_url":"https://avatars.githubusercontent.com/u/540783?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonybishopric","html_url":"https://github.com/anthonybishopric","followers_url":"https://api.github.com/users/anthonybishopric/followers","following_url":"https://api.github.com/users/anthonybishopric/following{/other_user}","gists_url":"https://api.github.com/users/anthonybishopric/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonybishopric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonybishopric/subscriptions","organizations_url":"https://api.github.com/users/anthonybishopric/orgs","repos_url":"https://api.github.com/users/anthonybishopric/repos","events_url":"https://api.github.com/users/anthonybishopric/events{/privacy}","received_events_url":"https://api.github.com/users/anthonybishopric/received_events","type":"User","site_admin":false},"repo":{"id":25321022,"name":"p2","full_name":"anthonybishopric/p2","owner":{"login":"anthonybishopric","id":540783,"avatar_url":"https://avatars.githubusercontent.com/u/540783?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonybishopric","html_url":"https://github.com/anthonybishopric","followers_url":"https://api.github.com/users/anthonybishopric/followers","following_url":"https://api.github.com/users/anthonybishopric/following{/other_user}","gists_url":"https://api.github.com/users/anthonybishopric/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonybishopric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonybishopric/subscriptions","organizations_url":"https://api.github.com/users/anthonybishopric/orgs","repos_url":"https://api.github.com/users/anthonybishopric/repos","events_url":"https://api.github.com/users/anthonybishopric/events{/privacy}","received_events_url":"https://api.github.com/users/anthonybishopric/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anthonybishopric/p2","description":"Platypus Platform: Tools for Scalable Deployment","fork":true,"url":"https://api.github.com/repos/anthonybishopric/p2","forks_url":"https://api.github.com/repos/anthonybishopric/p2/forks","keys_url":"https://api.github.com/repos/anthonybishopric/p2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anthonybishopric/p2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anthonybishopric/p2/teams","hooks_url":"https://api.github.com/repos/anthonybishopric/p2/hooks","issue_events_url":"https://api.github.com/repos/anthonybishopric/p2/issues/events{/number}","events_url":"https://api.github.com/repos/anthonybishopric/p2/events","assignees_url":"https://api.github.com/repos/anthonybishopric/p2/assignees{/user}","branches_url":"https://api.github.com/repos/anthonybishopric/p2/branches{/branch}","tags_url":"https://api.github.com/repos/anthonybishopric/p2/tags","blobs_url":"https://api.github.com/repos/anthonybishopric/p2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anthonybishopric/p2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anthonybishopric/p2/git/refs{/sha}","trees_url":"https://api.github.com/repos/anthonybishopric/p2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anthonybishopric/p2/statuses/{sha}","languages_url":"https://api.github.com/repos/anthonybishopric/p2/languages","stargazers_url":"https://api.github.com/repos/anthonybishopric/p2/stargazers","contributors_url":"https://api.github.com/repos/anthonybishopric/p2/contributors","subscribers_url":"https://api.github.com/repos/anthonybishopric/p2/subscribers","subscription_url":"https://api.github.com/repos/anthonybishopric/p2/subscription","commits_url":"https://api.github.com/repos/anthonybishopric/p2/commits{/sha}","git_commits_url":"https://api.github.com/repos/anthonybishopric/p2/git/commits{/sha}","comments_url":"https://api.github.com/repos/anthonybishopric/p2/comments{/number}","issue_comment_url":"https://api.github.com/repos/anthonybishopric/p2/issues/comments{/number}","contents_url":"https://api.github.com/repos/anthonybishopric/p2/contents/{+path}","compare_url":"https://api.github.com/repos/anthonybishopric/p2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anthonybishopric/p2/merges","archive_url":"https://api.github.com/repos/anthonybishopric/p2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anthonybishopric/p2/downloads","issues_url":"https://api.github.com/repos/anthonybishopric/p2/issues{/number}","pulls_url":"https://api.github.com/repos/anthonybishopric/p2/pulls{/number}","milestones_url":"https://api.github.com/repos/anthonybishopric/p2/milestones{/number}","notifications_url":"https://api.github.com/repos/anthonybishopric/p2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anthonybishopric/p2/labels{/name}","releases_url":"https://api.github.com/repos/anthonybishopric/p2/releases{/id}","created_at":"2014-10-16T20:45:38Z","updated_at":"2015-02-08T02:01:34Z","pushed_at":"2015-12-05T19:36:52Z","git_url":"git://github.com/anthonybishopric/p2.git","ssh_url":"git@github.com:anthonybishopric/p2.git","clone_url":"https://github.com/anthonybishopric/p2.git","svn_url":"https://github.com/anthonybishopric/p2","homepage":"","size":30985,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"square:master","ref":"master","sha":"8842aec6f80135b09a6e9ea05823e9541c5fc990","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":25320424,"name":"p2","full_name":"square/p2","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/p2","description":"Platypus Platform: Tools for Scalable Deployment","fork":false,"url":"https://api.github.com/repos/square/p2","forks_url":"https://api.github.com/repos/square/p2/forks","keys_url":"https://api.github.com/repos/square/p2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/p2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/p2/teams","hooks_url":"https://api.github.com/repos/square/p2/hooks","issue_events_url":"https://api.github.com/repos/square/p2/issues/events{/number}","events_url":"https://api.github.com/repos/square/p2/events","assignees_url":"https://api.github.com/repos/square/p2/assignees{/user}","branches_url":"https://api.github.com/repos/square/p2/branches{/branch}","tags_url":"https://api.github.com/repos/square/p2/tags","blobs_url":"https://api.github.com/repos/square/p2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/p2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/p2/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/p2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/p2/statuses/{sha}","languages_url":"https://api.github.com/repos/square/p2/languages","stargazers_url":"https://api.github.com/repos/square/p2/stargazers","contributors_url":"https://api.github.com/repos/square/p2/contributors","subscribers_url":"https://api.github.com/repos/square/p2/subscribers","subscription_url":"https://api.github.com/repos/square/p2/subscription","commits_url":"https://api.github.com/repos/square/p2/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/p2/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/p2/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/p2/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/p2/contents/{+path}","compare_url":"https://api.github.com/repos/square/p2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/p2/merges","archive_url":"https://api.github.com/repos/square/p2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/p2/downloads","issues_url":"https://api.github.com/repos/square/p2/issues{/number}","pulls_url":"https://api.github.com/repos/square/p2/pulls{/number}","milestones_url":"https://api.github.com/repos/square/p2/milestones{/number}","notifications_url":"https://api.github.com/repos/square/p2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/p2/labels{/name}","releases_url":"https://api.github.com/repos/square/p2/releases{/id}","created_at":"2014-10-16T20:31:12Z","updated_at":"2015-12-01T01:12:16Z","pushed_at":"2015-12-05T19:37:02Z","git_url":"git://github.com/square/p2.git","ssh_url":"git@github.com:square/p2.git","clone_url":"https://github.com/square/p2.git","svn_url":"https://github.com/square/p2","homepage":"","size":31163,"stargazers_count":87,"watchers_count":87,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":3,"forks":15,"open_issues":3,"watchers":87,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/p2/pulls/339"},"html":{"href":"https://github.com/square/p2/pull/339"},"issue":{"href":"https://api.github.com/repos/square/p2/issues/339"},"comments":{"href":"https://api.github.com/repos/square/p2/issues/339/comments"},"review_comments":{"href":"https://api.github.com/repos/square/p2/pulls/339/comments"},"review_comment":{"href":"https://api.github.com/repos/square/p2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/p2/pulls/339/commits"},"statuses":{"href":"https://api.github.com/repos/square/p2/statuses/0b75cc5a950fb19bfaf2c007fd102adf832a1610"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":76,"deletions":7,"changed_files":6}}