{"action":"created","issue":{"url":"https://api.github.com/repos/youpin-city/youpin-api/issues/164","repository_url":"https://api.github.com/repos/youpin-city/youpin-api","labels_url":"https://api.github.com/repos/youpin-city/youpin-api/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/youpin-city/youpin-api/issues/164/comments","events_url":"https://api.github.com/repos/youpin-city/youpin-api/issues/164/events","html_url":"https://github.com/youpin-city/youpin-api/pull/164","id":193419753,"number":164,"title":"Fix coding convention","user":{"login":"supasate","id":237753,"avatar_url":"https://avatars.githubusercontent.com/u/237753?v=3","gravatar_id":"","url":"https://api.github.com/users/supasate","html_url":"https://github.com/supasate","followers_url":"https://api.github.com/users/supasate/followers","following_url":"https://api.github.com/users/supasate/following{/other_user}","gists_url":"https://api.github.com/users/supasate/gists{/gist_id}","starred_url":"https://api.github.com/users/supasate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supasate/subscriptions","organizations_url":"https://api.github.com/users/supasate/orgs","repos_url":"https://api.github.com/users/supasate/repos","events_url":"https://api.github.com/users/supasate/events{/privacy}","received_events_url":"https://api.github.com/users/supasate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-05T06:18:37Z","updated_at":"2016-12-05T06:19:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/youpin-city/youpin-api/pulls/164","html_url":"https://github.com/youpin-city/youpin-api/pull/164","diff_url":"https://github.com/youpin-city/youpin-api/pull/164.diff","patch_url":"https://github.com/youpin-city/youpin-api/pull/164.patch"},"body":"Fix coding convention of Schema and Model to be consistency in all files.\r\n\r\n- Use lowerCase for Schema instance. Ex. `videoSchema`.\r\n- Use UpperCase for Model name when registering with mongoose. Ex. `mongoose.model('Video')`\r\n- Use UpperCase and don't use suffix 'Model' for Model class variable which is returned from mongoose. Ex. `const Video = mongoose.model('Video')`\r\n\r\nRef: http://mongoosejs.com/docs/guide.html\r\n\r\nExample\r\n``` javascript\r\nconst videoSchema = new Schema({\r\n  url: { type: Url, required: true },\r\n  mimetype: { type: String, required: true },\r\n  size: { type: Number, required: true },\r\n});\r\nconst Video = mongoose.model('Video', videoSchema);\r\n```"},"comment":{"url":"https://api.github.com/repos/youpin-city/youpin-api/issues/comments/264776278","html_url":"https://github.com/youpin-city/youpin-api/pull/164#issuecomment-264776278","issue_url":"https://api.github.com/repos/youpin-city/youpin-api/issues/164","id":264776278,"user":{"login":"supasate","id":237753,"avatar_url":"https://avatars.githubusercontent.com/u/237753?v=3","gravatar_id":"","url":"https://api.github.com/users/supasate","html_url":"https://github.com/supasate","followers_url":"https://api.github.com/users/supasate/followers","following_url":"https://api.github.com/users/supasate/following{/other_user}","gists_url":"https://api.github.com/users/supasate/gists{/gist_id}","starred_url":"https://api.github.com/users/supasate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supasate/subscriptions","organizations_url":"https://api.github.com/users/supasate/orgs","repos_url":"https://api.github.com/users/supasate/repos","events_url":"https://api.github.com/users/supasate/events{/privacy}","received_events_url":"https://api.github.com/users/supasate/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T06:19:19Z","updated_at":"2016-12-05T06:19:19Z","body":"@parnurzeal A lot more than I expected. So, it deserves a new PR."}}
{"actor":{"display_login":"supasate"}}