{"action":"opened","issue":{"url":"https://api.github.com/repos/yahoo/dispatchr/issues/57","labels_url":"https://api.github.com/repos/yahoo/dispatchr/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/yahoo/dispatchr/issues/57/comments","events_url":"https://api.github.com/repos/yahoo/dispatchr/issues/57/events","html_url":"https://github.com/yahoo/dispatchr/issues/57","id":60269965,"number":57,"title":"Throw an error if actionName passed to Dispatcher#dispatch is undefined","user":{"login":"szimek","id":9873,"avatar_url":"https://avatars.githubusercontent.com/u/9873?v=3","gravatar_id":"","url":"https://api.github.com/users/szimek","html_url":"https://github.com/szimek","followers_url":"https://api.github.com/users/szimek/followers","following_url":"https://api.github.com/users/szimek/following{/other_user}","gists_url":"https://api.github.com/users/szimek/gists{/gist_id}","starred_url":"https://api.github.com/users/szimek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szimek/subscriptions","organizations_url":"https://api.github.com/users/szimek/orgs","repos_url":"https://api.github.com/users/szimek/repos","events_url":"https://api.github.com/users/szimek/events{/privacy}","received_events_url":"https://api.github.com/users/szimek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-08T18:41:21Z","updated_at":"2015-03-08T18:41:21Z","closed_at":null,"body":"I'm using constants instead of strings for action names to have them all in a single place as a documentation. An additional benefit could be that if I make a typo in a name of a constant, thus passing `undefined` value, `Dispatcher#dispatch` could throw an error making it much easier to spot such typos.\r\n\r\nWhat do you think?"}}