{"action":"opened","number":63,"pull_request":{"url":"https://api.github.com/repos/open-app/cobudget-api/pulls/63","id":28880763,"html_url":"https://github.com/open-app/cobudget-api/pull/63","diff_url":"https://github.com/open-app/cobudget-api/pull/63.diff","patch_url":"https://github.com/open-app/cobudget-api/pull/63.patch","issue_url":"https://api.github.com/repos/open-app/cobudget-api/issues/63","number":63,"state":"open","locked":false,"title":"Add states & permissions to rounds & buckets","user":{"login":"jonlemmon","id":1179717,"avatar_url":"https://avatars.githubusercontent.com/u/1179717?v=3","gravatar_id":"","url":"https://api.github.com/users/jonlemmon","html_url":"https://github.com/jonlemmon","followers_url":"https://api.github.com/users/jonlemmon/followers","following_url":"https://api.github.com/users/jonlemmon/following{/other_user}","gists_url":"https://api.github.com/users/jonlemmon/gists{/gist_id}","starred_url":"https://api.github.com/users/jonlemmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonlemmon/subscriptions","organizations_url":"https://api.github.com/users/jonlemmon/orgs","repos_url":"https://api.github.com/users/jonlemmon/repos","events_url":"https://api.github.com/users/jonlemmon/events{/privacy}","received_events_url":"https://api.github.com/users/jonlemmon/received_events","type":"User","site_admin":false},"body":"This addresses: https://github.com/open-app/cobudget/issues/61\r\n\r\nIt also makes way for: https://github.com/open-app/cobudget/issues/73\r\n\r\n@ahdinosaur any thoughts on the code? I'm not actually storing a state on the round model. Just calculating it. Whatchya reckon?","created_at":"2015-02-08T14:12:48Z","updated_at":"2015-02-08T14:12:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/open-app/cobudget-api/pulls/63/commits","review_comments_url":"https://api.github.com/repos/open-app/cobudget-api/pulls/63/comments","review_comment_url":"https://api.github.com/repos/open-app/cobudget-api/pulls/comments/{number}","comments_url":"https://api.github.com/repos/open-app/cobudget-api/issues/63/comments","statuses_url":"https://api.github.com/repos/open-app/cobudget-api/statuses/b1fa6cdcfcea83a0a81b77f2615fa940f5100f4e","head":{"label":"open-app:sponsor-cannot-edit-while-round-open","ref":"sponsor-cannot-edit-while-round-open","sha":"b1fa6cdcfcea83a0a81b77f2615fa940f5100f4e","user":{"login":"open-app","id":7650022,"avatar_url":"https://avatars.githubusercontent.com/u/7650022?v=3","gravatar_id":"","url":"https://api.github.com/users/open-app","html_url":"https://github.com/open-app","followers_url":"https://api.github.com/users/open-app/followers","following_url":"https://api.github.com/users/open-app/following{/other_user}","gists_url":"https://api.github.com/users/open-app/gists{/gist_id}","starred_url":"https://api.github.com/users/open-app/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-app/subscriptions","organizations_url":"https://api.github.com/users/open-app/orgs","repos_url":"https://api.github.com/users/open-app/repos","events_url":"https://api.github.com/users/open-app/events{/privacy}","received_events_url":"https://api.github.com/users/open-app/received_events","type":"Organization","site_admin":false},"repo":{"id":14197945,"name":"cobudget-api","full_name":"open-app/cobudget-api","owner":{"login":"open-app","id":7650022,"avatar_url":"https://avatars.githubusercontent.com/u/7650022?v=3","gravatar_id":"","url":"https://api.github.com/users/open-app","html_url":"https://github.com/open-app","followers_url":"https://api.github.com/users/open-app/followers","following_url":"https://api.github.com/users/open-app/following{/other_user}","gists_url":"https://api.github.com/users/open-app/gists{/gist_id}","starred_url":"https://api.github.com/users/open-app/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-app/subscriptions","organizations_url":"https://api.github.com/users/open-app/orgs","repos_url":"https://api.github.com/users/open-app/repos","events_url":"https://api.github.com/users/open-app/events{/privacy}","received_events_url":"https://api.github.com/users/open-app/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-app/cobudget-api","description":"","fork":false,"url":"https://api.github.com/repos/open-app/cobudget-api","forks_url":"https://api.github.com/repos/open-app/cobudget-api/forks","keys_url":"https://api.github.com/repos/open-app/cobudget-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-app/cobudget-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-app/cobudget-api/teams","hooks_url":"https://api.github.com/repos/open-app/cobudget-api/hooks","issue_events_url":"https://api.github.com/repos/open-app/cobudget-api/issues/events{/number}","events_url":"https://api.github.com/repos/open-app/cobudget-api/events","assignees_url":"https://api.github.com/repos/open-app/cobudget-api/assignees{/user}","branches_url":"https://api.github.com/repos/open-app/cobudget-api/branches{/branch}","tags_url":"https://api.github.com/repos/open-app/cobudget-api/tags","blobs_url":"https://api.github.com/repos/open-app/cobudget-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-app/cobudget-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-app/cobudget-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-app/cobudget-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-app/cobudget-api/statuses/{sha}","languages_url":"https://api.github.com/repos/open-app/cobudget-api/languages","stargazers_url":"https://api.github.com/repos/open-app/cobudget-api/stargazers","contributors_url":"https://api.github.com/repos/open-app/cobudget-api/contributors","subscribers_url":"https://api.github.com/repos/open-app/cobudget-api/subscribers","subscription_url":"https://api.github.com/repos/open-app/cobudget-api/subscription","commits_url":"https://api.github.com/repos/open-app/cobudget-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-app/cobudget-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-app/cobudget-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-app/cobudget-api/issues/comments/{number}","contents_url":"https://api.github.com/repos/open-app/cobudget-api/contents/{+path}","compare_url":"https://api.github.com/repos/open-app/cobudget-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-app/cobudget-api/merges","archive_url":"https://api.github.com/repos/open-app/cobudget-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-app/cobudget-api/downloads","issues_url":"https://api.github.com/repos/open-app/cobudget-api/issues{/number}","pulls_url":"https://api.github.com/repos/open-app/cobudget-api/pulls{/number}","milestones_url":"https://api.github.com/repos/open-app/cobudget-api/milestones{/number}","notifications_url":"https://api.github.com/repos/open-app/cobudget-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-app/cobudget-api/labels{/name}","releases_url":"https://api.github.com/repos/open-app/cobudget-api/releases{/id}","created_at":"2013-11-07T08:10:34Z","updated_at":"2015-02-08T10:43:01Z","pushed_at":"2015-02-08T14:07:49Z","git_url":"git://github.com/open-app/cobudget-api.git","ssh_url":"git@github.com:open-app/cobudget-api.git","clone_url":"https://github.com/open-app/cobudget-api.git","svn_url":"https://github.com/open-app/cobudget-api","homepage":"http://cobudget.co","size":1823,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":2,"default_branch":"master"}},"base":{"label":"open-app:master","ref":"master","sha":"e5da20a091c95aa8542d8ff984031826381c6525","user":{"login":"open-app","id":7650022,"avatar_url":"https://avatars.githubusercontent.com/u/7650022?v=3","gravatar_id":"","url":"https://api.github.com/users/open-app","html_url":"https://github.com/open-app","followers_url":"https://api.github.com/users/open-app/followers","following_url":"https://api.github.com/users/open-app/following{/other_user}","gists_url":"https://api.github.com/users/open-app/gists{/gist_id}","starred_url":"https://api.github.com/users/open-app/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-app/subscriptions","organizations_url":"https://api.github.com/users/open-app/orgs","repos_url":"https://api.github.com/users/open-app/repos","events_url":"https://api.github.com/users/open-app/events{/privacy}","received_events_url":"https://api.github.com/users/open-app/received_events","type":"Organization","site_admin":false},"repo":{"id":14197945,"name":"cobudget-api","full_name":"open-app/cobudget-api","owner":{"login":"open-app","id":7650022,"avatar_url":"https://avatars.githubusercontent.com/u/7650022?v=3","gravatar_id":"","url":"https://api.github.com/users/open-app","html_url":"https://github.com/open-app","followers_url":"https://api.github.com/users/open-app/followers","following_url":"https://api.github.com/users/open-app/following{/other_user}","gists_url":"https://api.github.com/users/open-app/gists{/gist_id}","starred_url":"https://api.github.com/users/open-app/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-app/subscriptions","organizations_url":"https://api.github.com/users/open-app/orgs","repos_url":"https://api.github.com/users/open-app/repos","events_url":"https://api.github.com/users/open-app/events{/privacy}","received_events_url":"https://api.github.com/users/open-app/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-app/cobudget-api","description":"","fork":false,"url":"https://api.github.com/repos/open-app/cobudget-api","forks_url":"https://api.github.com/repos/open-app/cobudget-api/forks","keys_url":"https://api.github.com/repos/open-app/cobudget-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-app/cobudget-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-app/cobudget-api/teams","hooks_url":"https://api.github.com/repos/open-app/cobudget-api/hooks","issue_events_url":"https://api.github.com/repos/open-app/cobudget-api/issues/events{/number}","events_url":"https://api.github.com/repos/open-app/cobudget-api/events","assignees_url":"https://api.github.com/repos/open-app/cobudget-api/assignees{/user}","branches_url":"https://api.github.com/repos/open-app/cobudget-api/branches{/branch}","tags_url":"https://api.github.com/repos/open-app/cobudget-api/tags","blobs_url":"https://api.github.com/repos/open-app/cobudget-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-app/cobudget-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-app/cobudget-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-app/cobudget-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-app/cobudget-api/statuses/{sha}","languages_url":"https://api.github.com/repos/open-app/cobudget-api/languages","stargazers_url":"https://api.github.com/repos/open-app/cobudget-api/stargazers","contributors_url":"https://api.github.com/repos/open-app/cobudget-api/contributors","subscribers_url":"https://api.github.com/repos/open-app/cobudget-api/subscribers","subscription_url":"https://api.github.com/repos/open-app/cobudget-api/subscription","commits_url":"https://api.github.com/repos/open-app/cobudget-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-app/cobudget-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-app/cobudget-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-app/cobudget-api/issues/comments/{number}","contents_url":"https://api.github.com/repos/open-app/cobudget-api/contents/{+path}","compare_url":"https://api.github.com/repos/open-app/cobudget-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-app/cobudget-api/merges","archive_url":"https://api.github.com/repos/open-app/cobudget-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-app/cobudget-api/downloads","issues_url":"https://api.github.com/repos/open-app/cobudget-api/issues{/number}","pulls_url":"https://api.github.com/repos/open-app/cobudget-api/pulls{/number}","milestones_url":"https://api.github.com/repos/open-app/cobudget-api/milestones{/number}","notifications_url":"https://api.github.com/repos/open-app/cobudget-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-app/cobudget-api/labels{/name}","releases_url":"https://api.github.com/repos/open-app/cobudget-api/releases{/id}","created_at":"2013-11-07T08:10:34Z","updated_at":"2015-02-08T10:43:01Z","pushed_at":"2015-02-08T14:07:49Z","git_url":"git://github.com/open-app/cobudget-api.git","ssh_url":"git@github.com:open-app/cobudget-api.git","clone_url":"https://github.com/open-app/cobudget-api.git","svn_url":"https://github.com/open-app/cobudget-api","homepage":"http://cobudget.co","size":1823,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-app/cobudget-api/pulls/63"},"html":{"href":"https://github.com/open-app/cobudget-api/pull/63"},"issue":{"href":"https://api.github.com/repos/open-app/cobudget-api/issues/63"},"comments":{"href":"https://api.github.com/repos/open-app/cobudget-api/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/open-app/cobudget-api/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/open-app/cobudget-api/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/open-app/cobudget-api/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/open-app/cobudget-api/statuses/b1fa6cdcfcea83a0a81b77f2615fa940f5100f4e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":273,"deletions":59,"changed_files":8}}