{"action":"created","comment":{"url":"https://api.github.com/repos/codex-team/reactions/pulls/comments/235183997","pull_request_review_id":176992536,"id":235183997,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTE4Mzk5Nw==","diff_hunk":"@@ -54,26 +60,20 @@ export default class Reactions {\n   private static getRandomValue (): number {\n     return window.crypto.getRandomValues(new Uint32Array(1))[0];\n   }\n-  /**\n-   * Return value of counter stored in localStorage\n-   * @param {string} key - field name in localStorage.\n-   */\n-  private static loadValue (key: string): number | string {\n-    const value: string = window.localStorage.getItem(key);\n-\n-    if (isNaN(parseInt(value, 10))) {\n-      return value;\n-    }\n-    return parseInt(value, 10);\n-  }\n \n   /**\n    * Set new value of counter stored in localStorage\n    * @param {string} key - field name in localStorage.\n-   * @param {string} value - new field value.\n+   * @param {string} choice - true-set vote , false-remove vote..\n    */\n-  private static saveValue (key: string, value: string | number): void {\n-    window.localStorage.setItem(key, String(value));\n+  private saveValue (key: string | number, choice: boolean): void {\n+    const message = {\n+      'choice': choice,","path":"src/ReactionsModule.ts","position":47,"original_position":47,"commit_id":"cc6ef4f6ffe58ba3cbd5ef3bee4ed7bef426e49b","original_commit_id":"cc6ef4f6ffe58ba3cbd5ef3bee4ed7bef426e49b","user":{"login":"gohabereg","id":23050529,"node_id":"MDQ6VXNlcjIzMDUwNTI5","avatar_url":"https://avatars0.githubusercontent.com/u/23050529?v=4","gravatar_id":"","url":"https://api.github.com/users/gohabereg","html_url":"https://github.com/gohabereg","followers_url":"https://api.github.com/users/gohabereg/followers","following_url":"https://api.github.com/users/gohabereg/following{/other_user}","gists_url":"https://api.github.com/users/gohabereg/gists{/gist_id}","starred_url":"https://api.github.com/users/gohabereg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gohabereg/subscriptions","organizations_url":"https://api.github.com/users/gohabereg/orgs","repos_url":"https://api.github.com/users/gohabereg/repos","events_url":"https://api.github.com/users/gohabereg/events{/privacy}","received_events_url":"https://api.github.com/users/gohabereg/received_events","type":"User","site_admin":false},"body":"Сообщения передаются по одному каналу, поэтому их нужно как-то фильтровать. Например добавить поле method","created_at":"2018-11-20T21:57:02Z","updated_at":"2018-11-20T21:57:39Z","html_url":"https://github.com/codex-team/reactions/pull/10#discussion_r235183997","pull_request_url":"https://api.github.com/repos/codex-team/reactions/pulls/10","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/codex-team/reactions/pulls/comments/235183997"},"html":{"href":"https://github.com/codex-team/reactions/pull/10#discussion_r235183997"},"pull_request":{"href":"https://api.github.com/repos/codex-team/reactions/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/codex-team/reactions/pulls/10","id":232446753,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyNDQ2NzUz","html_url":"https://github.com/codex-team/reactions/pull/10","diff_url":"https://github.com/codex-team/reactions/pull/10.diff","patch_url":"https://github.com/codex-team/reactions/pull/10.patch","issue_url":"https://api.github.com/repos/codex-team/reactions/issues/10","number":10,"state":"open","locked":false,"title":"Server connection","user":{"login":"cabad11","id":44175180,"node_id":"MDQ6VXNlcjQ0MTc1MTgw","avatar_url":"https://avatars3.githubusercontent.com/u/44175180?v=4","gravatar_id":"","url":"https://api.github.com/users/cabad11","html_url":"https://github.com/cabad11","followers_url":"https://api.github.com/users/cabad11/followers","following_url":"https://api.github.com/users/cabad11/following{/other_user}","gists_url":"https://api.github.com/users/cabad11/gists{/gist_id}","starred_url":"https://api.github.com/users/cabad11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cabad11/subscriptions","organizations_url":"https://api.github.com/users/cabad11/orgs","repos_url":"https://api.github.com/users/cabad11/repos","events_url":"https://api.github.com/users/cabad11/events{/privacy}","received_events_url":"https://api.github.com/users/cabad11/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-20T20:18:05Z","updated_at":"2018-11-20T21:57:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e090e6fbb3586da6dbabb311f25a892a81a72e9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/codex-team/reactions/pulls/10/commits","review_comments_url":"https://api.github.com/repos/codex-team/reactions/pulls/10/comments","review_comment_url":"https://api.github.com/repos/codex-team/reactions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codex-team/reactions/issues/10/comments","statuses_url":"https://api.github.com/repos/codex-team/reactions/statuses/cc6ef4f6ffe58ba3cbd5ef3bee4ed7bef426e49b","head":{"label":"codex-team:Work-with-localstorage","ref":"Work-with-localstorage","sha":"cc6ef4f6ffe58ba3cbd5ef3bee4ed7bef426e49b","user":{"login":"codex-team","id":16060815,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDYwODE1","avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"repo":{"id":155253751,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUyNTM3NTE=","name":"reactions","full_name":"codex-team/reactions","private":false,"owner":{"login":"codex-team","id":16060815,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDYwODE1","avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/codex-team/reactions","description":"Light-weight reactions module","fork":false,"url":"https://api.github.com/repos/codex-team/reactions","forks_url":"https://api.github.com/repos/codex-team/reactions/forks","keys_url":"https://api.github.com/repos/codex-team/reactions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codex-team/reactions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codex-team/reactions/teams","hooks_url":"https://api.github.com/repos/codex-team/reactions/hooks","issue_events_url":"https://api.github.com/repos/codex-team/reactions/issues/events{/number}","events_url":"https://api.github.com/repos/codex-team/reactions/events","assignees_url":"https://api.github.com/repos/codex-team/reactions/assignees{/user}","branches_url":"https://api.github.com/repos/codex-team/reactions/branches{/branch}","tags_url":"https://api.github.com/repos/codex-team/reactions/tags","blobs_url":"https://api.github.com/repos/codex-team/reactions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codex-team/reactions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codex-team/reactions/git/refs{/sha}","trees_url":"https://api.github.com/repos/codex-team/reactions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codex-team/reactions/statuses/{sha}","languages_url":"https://api.github.com/repos/codex-team/reactions/languages","stargazers_url":"https://api.github.com/repos/codex-team/reactions/stargazers","contributors_url":"https://api.github.com/repos/codex-team/reactions/contributors","subscribers_url":"https://api.github.com/repos/codex-team/reactions/subscribers","subscription_url":"https://api.github.com/repos/codex-team/reactions/subscription","commits_url":"https://api.github.com/repos/codex-team/reactions/commits{/sha}","git_commits_url":"https://api.github.com/repos/codex-team/reactions/git/commits{/sha}","comments_url":"https://api.github.com/repos/codex-team/reactions/comments{/number}","issue_comment_url":"https://api.github.com/repos/codex-team/reactions/issues/comments{/number}","contents_url":"https://api.github.com/repos/codex-team/reactions/contents/{+path}","compare_url":"https://api.github.com/repos/codex-team/reactions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codex-team/reactions/merges","archive_url":"https://api.github.com/repos/codex-team/reactions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codex-team/reactions/downloads","issues_url":"https://api.github.com/repos/codex-team/reactions/issues{/number}","pulls_url":"https://api.github.com/repos/codex-team/reactions/pulls{/number}","milestones_url":"https://api.github.com/repos/codex-team/reactions/milestones{/number}","notifications_url":"https://api.github.com/repos/codex-team/reactions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codex-team/reactions/labels{/name}","releases_url":"https://api.github.com/repos/codex-team/reactions/releases{/id}","deployments_url":"https://api.github.com/repos/codex-team/reactions/deployments","created_at":"2018-10-29T17:34:08Z","updated_at":"2018-11-20T07:27:17Z","pushed_at":"2018-11-20T21:20:22Z","git_url":"git://github.com/codex-team/reactions.git","ssh_url":"git@github.com:codex-team/reactions.git","clone_url":"https://github.com/codex-team/reactions.git","svn_url":"https://github.com/codex-team/reactions","homepage":null,"size":241,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"codex-team:master","ref":"master","sha":"391dee5a38552e143deb44628e05418a1b0846cb","user":{"login":"codex-team","id":16060815,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDYwODE1","avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"repo":{"id":155253751,"node_id":"MDEwOlJlcG9zaXRvcnkxNTUyNTM3NTE=","name":"reactions","full_name":"codex-team/reactions","private":false,"owner":{"login":"codex-team","id":16060815,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MDYwODE1","avatar_url":"https://avatars0.githubusercontent.com/u/16060815?v=4","gravatar_id":"","url":"https://api.github.com/users/codex-team","html_url":"https://github.com/codex-team","followers_url":"https://api.github.com/users/codex-team/followers","following_url":"https://api.github.com/users/codex-team/following{/other_user}","gists_url":"https://api.github.com/users/codex-team/gists{/gist_id}","starred_url":"https://api.github.com/users/codex-team/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codex-team/subscriptions","organizations_url":"https://api.github.com/users/codex-team/orgs","repos_url":"https://api.github.com/users/codex-team/repos","events_url":"https://api.github.com/users/codex-team/events{/privacy}","received_events_url":"https://api.github.com/users/codex-team/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/codex-team/reactions","description":"Light-weight reactions module","fork":false,"url":"https://api.github.com/repos/codex-team/reactions","forks_url":"https://api.github.com/repos/codex-team/reactions/forks","keys_url":"https://api.github.com/repos/codex-team/reactions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codex-team/reactions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codex-team/reactions/teams","hooks_url":"https://api.github.com/repos/codex-team/reactions/hooks","issue_events_url":"https://api.github.com/repos/codex-team/reactions/issues/events{/number}","events_url":"https://api.github.com/repos/codex-team/reactions/events","assignees_url":"https://api.github.com/repos/codex-team/reactions/assignees{/user}","branches_url":"https://api.github.com/repos/codex-team/reactions/branches{/branch}","tags_url":"https://api.github.com/repos/codex-team/reactions/tags","blobs_url":"https://api.github.com/repos/codex-team/reactions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codex-team/reactions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codex-team/reactions/git/refs{/sha}","trees_url":"https://api.github.com/repos/codex-team/reactions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codex-team/reactions/statuses/{sha}","languages_url":"https://api.github.com/repos/codex-team/reactions/languages","stargazers_url":"https://api.github.com/repos/codex-team/reactions/stargazers","contributors_url":"https://api.github.com/repos/codex-team/reactions/contributors","subscribers_url":"https://api.github.com/repos/codex-team/reactions/subscribers","subscription_url":"https://api.github.com/repos/codex-team/reactions/subscription","commits_url":"https://api.github.com/repos/codex-team/reactions/commits{/sha}","git_commits_url":"https://api.github.com/repos/codex-team/reactions/git/commits{/sha}","comments_url":"https://api.github.com/repos/codex-team/reactions/comments{/number}","issue_comment_url":"https://api.github.com/repos/codex-team/reactions/issues/comments{/number}","contents_url":"https://api.github.com/repos/codex-team/reactions/contents/{+path}","compare_url":"https://api.github.com/repos/codex-team/reactions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codex-team/reactions/merges","archive_url":"https://api.github.com/repos/codex-team/reactions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codex-team/reactions/downloads","issues_url":"https://api.github.com/repos/codex-team/reactions/issues{/number}","pulls_url":"https://api.github.com/repos/codex-team/reactions/pulls{/number}","milestones_url":"https://api.github.com/repos/codex-team/reactions/milestones{/number}","notifications_url":"https://api.github.com/repos/codex-team/reactions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codex-team/reactions/labels{/name}","releases_url":"https://api.github.com/repos/codex-team/reactions/releases{/id}","deployments_url":"https://api.github.com/repos/codex-team/reactions/deployments","created_at":"2018-10-29T17:34:08Z","updated_at":"2018-11-20T07:27:17Z","pushed_at":"2018-11-20T21:20:22Z","git_url":"git://github.com/codex-team/reactions.git","ssh_url":"git@github.com:codex-team/reactions.git","clone_url":"https://github.com/codex-team/reactions.git","svn_url":"https://github.com/codex-team/reactions","homepage":null,"size":241,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codex-team/reactions/pulls/10"},"html":{"href":"https://github.com/codex-team/reactions/pull/10"},"issue":{"href":"https://api.github.com/repos/codex-team/reactions/issues/10"},"comments":{"href":"https://api.github.com/repos/codex-team/reactions/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/codex-team/reactions/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/codex-team/reactions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codex-team/reactions/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/codex-team/reactions/statuses/cc6ef4f6ffe58ba3cbd5ef3bee4ed7bef426e49b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"gohabereg"}}