{"action":"created","issue":{"url":"https://api.github.com/repos/YaleSTC/reservations/issues/1287","labels_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1287/labels{/name}","comments_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1287/comments","events_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1287/events","html_url":"https://github.com/YaleSTC/reservations/pull/1287","id":95886268,"number":1287,"title":"[1284] Add optional admin email on Reservation creation","user":{"login":"orenyk","id":901808,"avatar_url":"https://avatars.githubusercontent.com/u/901808?v=3","gravatar_id":"","url":"https://api.github.com/users/orenyk","html_url":"https://github.com/orenyk","followers_url":"https://api.github.com/users/orenyk/followers","following_url":"https://api.github.com/users/orenyk/following{/other_user}","gists_url":"https://api.github.com/users/orenyk/gists{/gist_id}","starred_url":"https://api.github.com/users/orenyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenyk/subscriptions","organizations_url":"https://api.github.com/users/orenyk/orgs","repos_url":"https://api.github.com/users/orenyk/repos","events_url":"https://api.github.com/users/orenyk/events{/privacy}","received_events_url":"https://api.github.com/users/orenyk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/4%20-%20Needs%20Review","name":"4 - Needs Review","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-19T04:54:55Z","updated_at":"2015-07-21T17:45:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/YaleSTC/reservations/pulls/1287","html_url":"https://github.com/YaleSTC/reservations/pull/1287","diff_url":"https://github.com/YaleSTC/reservations/pull/1287.diff","patch_url":"https://github.com/YaleSTC/reservations/pull/1287.patch"},"body":"Resolves #1284\r\n- add `notify_admin_on_create` parameter to app configs\r\n  (default false)\r\n- add `reservation_created_admin` method to AdminMailer\r\n- update e-mail sending logic in Cart\r\n- reordered the app config form a bit\r\n- add tests for all the things"},"comment":{"url":"https://api.github.com/repos/YaleSTC/reservations/issues/comments/123413310","html_url":"https://github.com/YaleSTC/reservations/pull/1287#issuecomment-123413310","issue_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1287","id":123413310,"user":{"login":"caseywatts","id":273653,"avatar_url":"https://avatars.githubusercontent.com/u/273653?v=3","gravatar_id":"","url":"https://api.github.com/users/caseywatts","html_url":"https://github.com/caseywatts","followers_url":"https://api.github.com/users/caseywatts/followers","following_url":"https://api.github.com/users/caseywatts/following{/other_user}","gists_url":"https://api.github.com/users/caseywatts/gists{/gist_id}","starred_url":"https://api.github.com/users/caseywatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseywatts/subscriptions","organizations_url":"https://api.github.com/users/caseywatts/orgs","repos_url":"https://api.github.com/users/caseywatts/repos","events_url":"https://api.github.com/users/caseywatts/events{/privacy}","received_events_url":"https://api.github.com/users/caseywatts/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T17:45:18Z","updated_at":"2015-07-21T17:45:18Z","body":"so much clearer :D\r\n\r\nThis refactor also side-stepped my concern about the `if/else` being unclear :)"}}