{"action":"created","issue":{"url":"https://api.github.com/repos/cobudget/cobudget-api/issues/73","labels_url":"https://api.github.com/repos/cobudget/cobudget-api/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/cobudget/cobudget-api/issues/73/comments","events_url":"https://api.github.com/repos/cobudget/cobudget-api/issues/73/events","html_url":"https://github.com/cobudget/cobudget-api/pull/73","id":92254357,"number":73,"title":"admin can publish a 'draft' round, and choose whether to open it for proposals or contributions","user":{"login":"euglazer","id":7520103,"avatar_url":"https://avatars.githubusercontent.com/u/7520103?v=3","gravatar_id":"","url":"https://api.github.com/users/euglazer","html_url":"https://github.com/euglazer","followers_url":"https://api.github.com/users/euglazer/followers","following_url":"https://api.github.com/users/euglazer/following{/other_user}","gists_url":"https://api.github.com/users/euglazer/gists{/gist_id}","starred_url":"https://api.github.com/users/euglazer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euglazer/subscriptions","organizations_url":"https://api.github.com/users/euglazer/orgs","repos_url":"https://api.github.com/users/euglazer/repos","events_url":"https://api.github.com/users/euglazer/events{/privacy}","received_events_url":"https://api.github.com/users/euglazer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-01T02:56:42Z","updated_at":"2015-07-14T03:17:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cobudget/cobudget-api/pulls/73","html_url":"https://github.com/cobudget/cobudget-api/pull/73","diff_url":"https://github.com/cobudget/cobudget-api/pull/73.diff","patch_url":"https://github.com/cobudget/cobudget-api/pull/73.patch"},"body":"rounds are either a 'draft' or 'published'. \r\n\r\na published round can be in one of three 'modes'. (1) proposal mode, (2) contribution mode, or (3) closed mode.\r\n\r\nemail notifications depend on these 'modes' and these 'modes' depend on whether the round is a 'draft' or 'published'. \r\n\r\nso, i've added a '#mode' method and 'published' attribute to the Round model.\r\n\r\nI've also added a '#publish!' method, which updates the 'published' attribute to 'true'. later, it will send a notification email to all relevant users as described by @derekrazo in #71 \r\n\r\n@derekrazo @alannallama @ahdinosaur @robguthrie \r\ni'd like to double check this logic with y'all before I move on with the email notification stuff.\r\n\r\nlmk what ya think, thx!"},"comment":{"url":"https://api.github.com/repos/cobudget/cobudget-api/issues/comments/121121269","html_url":"https://github.com/cobudget/cobudget-api/pull/73#issuecomment-121121269","issue_url":"https://api.github.com/repos/cobudget/cobudget-api/issues/73","id":121121269,"user":{"login":"ahdinosaur","id":719605,"avatar_url":"https://avatars.githubusercontent.com/u/719605?v=3","gravatar_id":"","url":"https://api.github.com/users/ahdinosaur","html_url":"https://github.com/ahdinosaur","followers_url":"https://api.github.com/users/ahdinosaur/followers","following_url":"https://api.github.com/users/ahdinosaur/following{/other_user}","gists_url":"https://api.github.com/users/ahdinosaur/gists{/gist_id}","starred_url":"https://api.github.com/users/ahdinosaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahdinosaur/subscriptions","organizations_url":"https://api.github.com/users/ahdinosaur/orgs","repos_url":"https://api.github.com/users/ahdinosaur/repos","events_url":"https://api.github.com/users/ahdinosaur/events{/privacy}","received_events_url":"https://api.github.com/users/ahdinosaur/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T03:17:07Z","updated_at":"2015-07-14T03:17:07Z","body":"@euglazer \r\n\r\n1. friendly reminder to push the changes we made during our pair sesh today, want to make sure those aren't lost as they're necessary for the whole thing to work.\r\n2. would you be able to add info to the README about how to run the mailer locally? it seems to be a bit more involved now with redis, sidekiq and such, so would be good to have documented."}}