{"action":"created","comment":{"url":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/comments/165575944","pull_request_review_id":93539094,"id":165575944,"diff_hunk":"@@ -10,46 +10,41 @@ class InvalidChatlistError extends TypeError {\n     super(message)\n     this.name = 'InvalidChatlistError'\n     this.stack = errors.reverse()\n-      .map(error => `${error.dataPath} ${error.message}`)\n+      .map((error) => `${error.dataPath} ${error.message}`)\n       .join('\\n')\n   }\n }\n \n-\n+/**\n+ * Validates the chatlist\n+ *\n+ * @param {Object} list\n+ * @throws {InvalidChatlistError}\n+ * @return {boolean}\n+ */\n function validateChatList(list) {\n   if (!validate(list)) {\n     throw new InvalidChatlistError('Invalid .chatlist.json file', validate.errors)\n   }\n+\n+  return true\n }\n \n /**\n- * Convert object of chat id and chat options to chat options\n- *\n  * Important! Thit function must be in sync with chatlist.schema.json\n- * @param {{}} list\n- * @return {{}}\n+ *\n+ * @param {{ [string]: number }} list","path":"src/lib/chatlist-validate.js","position":33,"original_position":33,"commit_id":"0ef59fe10a3645903fe27c617f96e24602770f1a","original_commit_id":"0ef59fe10a3645903fe27c617f96e24602770f1a","user":{"login":"sergeysova","id":5620073,"avatar_url":"https://avatars0.githubusercontent.com/u/5620073?v=4","gravatar_id":"","url":"https://api.github.com/users/sergeysova","html_url":"https://github.com/sergeysova","followers_url":"https://api.github.com/users/sergeysova/followers","following_url":"https://api.github.com/users/sergeysova/following{/other_user}","gists_url":"https://api.github.com/users/sergeysova/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeysova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeysova/subscriptions","organizations_url":"https://api.github.com/users/sergeysova/orgs","repos_url":"https://api.github.com/users/sergeysova/repos","events_url":"https://api.github.com/users/sergeysova/events{/privacy}","received_events_url":"https://api.github.com/users/sergeysova/received_events","type":"User","site_admin":false},"body":"`@param {{ [name: string]: number } | { [name: string]: { id: number }} list`","created_at":"2018-02-02T07:44:17Z","updated_at":"2018-02-02T07:45:02Z","html_url":"https://github.com/telegram-ru/ru-bot/pull/46#discussion_r165575944","pull_request_url":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/46","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/comments/165575944"},"html":{"href":"https://github.com/telegram-ru/ru-bot/pull/46#discussion_r165575944"},"pull_request":{"href":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/46","id":165503003,"html_url":"https://github.com/telegram-ru/ru-bot/pull/46","diff_url":"https://github.com/telegram-ru/ru-bot/pull/46.diff","patch_url":"https://github.com/telegram-ru/ru-bot/pull/46.patch","issue_url":"https://api.github.com/repos/telegram-ru/ru-bot/issues/46","number":46,"state":"open","locked":false,"title":"Feature/excluded packs","user":{"login":"Piterden","id":5930429,"avatar_url":"https://avatars3.githubusercontent.com/u/5930429?v=4","gravatar_id":"","url":"https://api.github.com/users/Piterden","html_url":"https://github.com/Piterden","followers_url":"https://api.github.com/users/Piterden/followers","following_url":"https://api.github.com/users/Piterden/following{/other_user}","gists_url":"https://api.github.com/users/Piterden/gists{/gist_id}","starred_url":"https://api.github.com/users/Piterden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Piterden/subscriptions","organizations_url":"https://api.github.com/users/Piterden/orgs","repos_url":"https://api.github.com/users/Piterden/repos","events_url":"https://api.github.com/users/Piterden/events{/privacy}","received_events_url":"https://api.github.com/users/Piterden/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-01-27T04:44:22Z","updated_at":"2018-02-02T07:45:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a50a81ea5c81322a7b80f5d54855b486a18315a5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/46/commits","review_comments_url":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/46/comments","review_comment_url":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/telegram-ru/ru-bot/issues/46/comments","statuses_url":"https://api.github.com/repos/telegram-ru/ru-bot/statuses/0ef59fe10a3645903fe27c617f96e24602770f1a","head":{"label":"telegram-ru:feature/excluded-packs","ref":"feature/excluded-packs","sha":"0ef59fe10a3645903fe27c617f96e24602770f1a","user":{"login":"telegram-ru","id":21246851,"avatar_url":"https://avatars1.githubusercontent.com/u/21246851?v=4","gravatar_id":"","url":"https://api.github.com/users/telegram-ru","html_url":"https://github.com/telegram-ru","followers_url":"https://api.github.com/users/telegram-ru/followers","following_url":"https://api.github.com/users/telegram-ru/following{/other_user}","gists_url":"https://api.github.com/users/telegram-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/telegram-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telegram-ru/subscriptions","organizations_url":"https://api.github.com/users/telegram-ru/orgs","repos_url":"https://api.github.com/users/telegram-ru/repos","events_url":"https://api.github.com/users/telegram-ru/events{/privacy}","received_events_url":"https://api.github.com/users/telegram-ru/received_events","type":"Organization","site_admin":false},"repo":{"id":107713993,"name":"ru-bot","full_name":"telegram-ru/ru-bot","owner":{"login":"telegram-ru","id":21246851,"avatar_url":"https://avatars1.githubusercontent.com/u/21246851?v=4","gravatar_id":"","url":"https://api.github.com/users/telegram-ru","html_url":"https://github.com/telegram-ru","followers_url":"https://api.github.com/users/telegram-ru/followers","following_url":"https://api.github.com/users/telegram-ru/following{/other_user}","gists_url":"https://api.github.com/users/telegram-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/telegram-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telegram-ru/subscriptions","organizations_url":"https://api.github.com/users/telegram-ru/orgs","repos_url":"https://api.github.com/users/telegram-ru/repos","events_url":"https://api.github.com/users/telegram-ru/events{/privacy}","received_events_url":"https://api.github.com/users/telegram-ru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telegram-ru/ru-bot","description":null,"fork":false,"url":"https://api.github.com/repos/telegram-ru/ru-bot","forks_url":"https://api.github.com/repos/telegram-ru/ru-bot/forks","keys_url":"https://api.github.com/repos/telegram-ru/ru-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telegram-ru/ru-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telegram-ru/ru-bot/teams","hooks_url":"https://api.github.com/repos/telegram-ru/ru-bot/hooks","issue_events_url":"https://api.github.com/repos/telegram-ru/ru-bot/issues/events{/number}","events_url":"https://api.github.com/repos/telegram-ru/ru-bot/events","assignees_url":"https://api.github.com/repos/telegram-ru/ru-bot/assignees{/user}","branches_url":"https://api.github.com/repos/telegram-ru/ru-bot/branches{/branch}","tags_url":"https://api.github.com/repos/telegram-ru/ru-bot/tags","blobs_url":"https://api.github.com/repos/telegram-ru/ru-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telegram-ru/ru-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telegram-ru/ru-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/telegram-ru/ru-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telegram-ru/ru-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/telegram-ru/ru-bot/languages","stargazers_url":"https://api.github.com/repos/telegram-ru/ru-bot/stargazers","contributors_url":"https://api.github.com/repos/telegram-ru/ru-bot/contributors","subscribers_url":"https://api.github.com/repos/telegram-ru/ru-bot/subscribers","subscription_url":"https://api.github.com/repos/telegram-ru/ru-bot/subscription","commits_url":"https://api.github.com/repos/telegram-ru/ru-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/telegram-ru/ru-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/telegram-ru/ru-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/telegram-ru/ru-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/telegram-ru/ru-bot/contents/{+path}","compare_url":"https://api.github.com/repos/telegram-ru/ru-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telegram-ru/ru-bot/merges","archive_url":"https://api.github.com/repos/telegram-ru/ru-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telegram-ru/ru-bot/downloads","issues_url":"https://api.github.com/repos/telegram-ru/ru-bot/issues{/number}","pulls_url":"https://api.github.com/repos/telegram-ru/ru-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/telegram-ru/ru-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/telegram-ru/ru-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telegram-ru/ru-bot/labels{/name}","releases_url":"https://api.github.com/repos/telegram-ru/ru-bot/releases{/id}","deployments_url":"https://api.github.com/repos/telegram-ru/ru-bot/deployments","created_at":"2017-10-20T18:41:44Z","updated_at":"2017-12-29T23:20:17Z","pushed_at":"2018-02-02T06:55:32Z","git_url":"git://github.com/telegram-ru/ru-bot.git","ssh_url":"git@github.com:telegram-ru/ru-bot.git","clone_url":"https://github.com/telegram-ru/ru-bot.git","svn_url":"https://github.com/telegram-ru/ru-bot","homepage":"","size":204,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":17,"license":null,"forks":1,"open_issues":17,"watchers":5,"default_branch":"dev"}},"base":{"label":"telegram-ru:dev","ref":"dev","sha":"4457221f88f2c5178bdd97707d1f1c64e59369ec","user":{"login":"telegram-ru","id":21246851,"avatar_url":"https://avatars1.githubusercontent.com/u/21246851?v=4","gravatar_id":"","url":"https://api.github.com/users/telegram-ru","html_url":"https://github.com/telegram-ru","followers_url":"https://api.github.com/users/telegram-ru/followers","following_url":"https://api.github.com/users/telegram-ru/following{/other_user}","gists_url":"https://api.github.com/users/telegram-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/telegram-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telegram-ru/subscriptions","organizations_url":"https://api.github.com/users/telegram-ru/orgs","repos_url":"https://api.github.com/users/telegram-ru/repos","events_url":"https://api.github.com/users/telegram-ru/events{/privacy}","received_events_url":"https://api.github.com/users/telegram-ru/received_events","type":"Organization","site_admin":false},"repo":{"id":107713993,"name":"ru-bot","full_name":"telegram-ru/ru-bot","owner":{"login":"telegram-ru","id":21246851,"avatar_url":"https://avatars1.githubusercontent.com/u/21246851?v=4","gravatar_id":"","url":"https://api.github.com/users/telegram-ru","html_url":"https://github.com/telegram-ru","followers_url":"https://api.github.com/users/telegram-ru/followers","following_url":"https://api.github.com/users/telegram-ru/following{/other_user}","gists_url":"https://api.github.com/users/telegram-ru/gists{/gist_id}","starred_url":"https://api.github.com/users/telegram-ru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telegram-ru/subscriptions","organizations_url":"https://api.github.com/users/telegram-ru/orgs","repos_url":"https://api.github.com/users/telegram-ru/repos","events_url":"https://api.github.com/users/telegram-ru/events{/privacy}","received_events_url":"https://api.github.com/users/telegram-ru/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telegram-ru/ru-bot","description":null,"fork":false,"url":"https://api.github.com/repos/telegram-ru/ru-bot","forks_url":"https://api.github.com/repos/telegram-ru/ru-bot/forks","keys_url":"https://api.github.com/repos/telegram-ru/ru-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telegram-ru/ru-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telegram-ru/ru-bot/teams","hooks_url":"https://api.github.com/repos/telegram-ru/ru-bot/hooks","issue_events_url":"https://api.github.com/repos/telegram-ru/ru-bot/issues/events{/number}","events_url":"https://api.github.com/repos/telegram-ru/ru-bot/events","assignees_url":"https://api.github.com/repos/telegram-ru/ru-bot/assignees{/user}","branches_url":"https://api.github.com/repos/telegram-ru/ru-bot/branches{/branch}","tags_url":"https://api.github.com/repos/telegram-ru/ru-bot/tags","blobs_url":"https://api.github.com/repos/telegram-ru/ru-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telegram-ru/ru-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telegram-ru/ru-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/telegram-ru/ru-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telegram-ru/ru-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/telegram-ru/ru-bot/languages","stargazers_url":"https://api.github.com/repos/telegram-ru/ru-bot/stargazers","contributors_url":"https://api.github.com/repos/telegram-ru/ru-bot/contributors","subscribers_url":"https://api.github.com/repos/telegram-ru/ru-bot/subscribers","subscription_url":"https://api.github.com/repos/telegram-ru/ru-bot/subscription","commits_url":"https://api.github.com/repos/telegram-ru/ru-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/telegram-ru/ru-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/telegram-ru/ru-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/telegram-ru/ru-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/telegram-ru/ru-bot/contents/{+path}","compare_url":"https://api.github.com/repos/telegram-ru/ru-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telegram-ru/ru-bot/merges","archive_url":"https://api.github.com/repos/telegram-ru/ru-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telegram-ru/ru-bot/downloads","issues_url":"https://api.github.com/repos/telegram-ru/ru-bot/issues{/number}","pulls_url":"https://api.github.com/repos/telegram-ru/ru-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/telegram-ru/ru-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/telegram-ru/ru-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telegram-ru/ru-bot/labels{/name}","releases_url":"https://api.github.com/repos/telegram-ru/ru-bot/releases{/id}","deployments_url":"https://api.github.com/repos/telegram-ru/ru-bot/deployments","created_at":"2017-10-20T18:41:44Z","updated_at":"2017-12-29T23:20:17Z","pushed_at":"2018-02-02T06:55:32Z","git_url":"git://github.com/telegram-ru/ru-bot.git","ssh_url":"git@github.com:telegram-ru/ru-bot.git","clone_url":"https://github.com/telegram-ru/ru-bot.git","svn_url":"https://github.com/telegram-ru/ru-bot","homepage":"","size":204,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":17,"license":null,"forks":1,"open_issues":17,"watchers":5,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/46"},"html":{"href":"https://github.com/telegram-ru/ru-bot/pull/46"},"issue":{"href":"https://api.github.com/repos/telegram-ru/ru-bot/issues/46"},"comments":{"href":"https://api.github.com/repos/telegram-ru/ru-bot/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/telegram-ru/ru-bot/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/telegram-ru/ru-bot/statuses/0ef59fe10a3645903fe27c617f96e24602770f1a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sergeysova"}}