{"action":"created","issue":{"url":"https://api.github.com/repos/pimterry/notes/issues/31","repository_url":"https://api.github.com/repos/pimterry/notes","labels_url":"https://api.github.com/repos/pimterry/notes/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/pimterry/notes/issues/31/comments","events_url":"https://api.github.com/repos/pimterry/notes/issues/31/events","html_url":"https://github.com/pimterry/notes/issues/31","id":194846812,"number":31,"title":"Bug: Typing \"notes new\" without a name should error out","user":{"login":"primis","id":1566083,"avatar_url":"https://avatars.githubusercontent.com/u/1566083?v=3","gravatar_id":"","url":"https://api.github.com/users/primis","html_url":"https://github.com/primis","followers_url":"https://api.github.com/users/primis/followers","following_url":"https://api.github.com/users/primis/following{/other_user}","gists_url":"https://api.github.com/users/primis/gists{/gist_id}","starred_url":"https://api.github.com/users/primis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/primis/subscriptions","organizations_url":"https://api.github.com/users/primis/orgs","repos_url":"https://api.github.com/users/primis/repos","events_url":"https://api.github.com/users/primis/events{/privacy}","received_events_url":"https://api.github.com/users/primis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-11T18:19:17Z","updated_at":"2016-12-11T19:49:07Z","closed_at":null,"body":"if you type \"notes new\" without a file name, you create a note just named \".md\"  \r\nWe should include a sanity check in the code to prevent this from happening."},"comment":{"url":"https://api.github.com/repos/pimterry/notes/issues/comments/266302954","html_url":"https://github.com/pimterry/notes/issues/31#issuecomment-266302954","issue_url":"https://api.github.com/repos/pimterry/notes/issues/31","id":266302954,"user":{"login":"pimterry","id":1526883,"avatar_url":"https://avatars.githubusercontent.com/u/1526883?v=3","gravatar_id":"","url":"https://api.github.com/users/pimterry","html_url":"https://github.com/pimterry","followers_url":"https://api.github.com/users/pimterry/followers","following_url":"https://api.github.com/users/pimterry/following{/other_user}","gists_url":"https://api.github.com/users/pimterry/gists{/gist_id}","starred_url":"https://api.github.com/users/pimterry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pimterry/subscriptions","organizations_url":"https://api.github.com/users/pimterry/orgs","repos_url":"https://api.github.com/users/pimterry/repos","events_url":"https://api.github.com/users/pimterry/events{/privacy}","received_events_url":"https://api.github.com/users/pimterry/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T19:49:07Z","updated_at":"2016-12-11T19:49:07Z","body":"Good point. Yes, the current behaviour is definitely bad, happy to fix it.\r\n\r\nCreating a new note as something like \"quicknote-2016-12-11.md\" or similar sounds good to me. I'm not that attached to 'quicknote' specifically - any nice friendly name that makes it clear this is just a note that was quickly jotted down would be fine.\r\n\r\nI think I'd rather not include the exact time (since it'll get awkwardly long), but we do need to handle the case where the generated filename already exists somehow. Quicknote, Quicknote2?"}}
{"actor":{"display_login":"pimterry"}}