{"action":"created","comment":{"url":"https://api.github.com/repos/sb-github/platform-react/pulls/comments/165405546","pull_request_review_id":93339830,"id":165405546,"diff_hunk":"@@ -0,0 +1,53 @@\n+import {FETCH_ALL_WORDS} from \"./actionTypes\";\n+import {EXTRACTOR_API, STOP_WORDS_API} from \"../../config/api.config\";\n+\n+export const receiveAllWords = words => {\n+  return {\n+    type: FETCH_ALL_WORDS,\n+    words\n+  };\n+};\n+\n+export const fetchWords = () => {\n+  return dispatch => {\n+    const route = EXTRACTOR_API + STOP_WORDS_API;\n+    return fetch(route)\n+      .then(res => res.json())\n+      .then(data => dispatch( receiveAllWords(data) ));\n+  };\n+};\n+\n+export const sendWords = listwords => {\n+    return dispatch => {\n+\n+        const route = EXTRACTOR_API + STOP_WORDS_API;\n+        listwords = listwords.split(/[ ,.!?@\";'*+#$%^&:№]+/);\n+        console.log(JSON.stringify({ words: listwords }));\n+        return fetch(route, {\n+            method: 'post',\n+            headers: {\n+                'Content-Type': 'application/json',\n+            },\n+            body: JSON.stringify({ words: listwords })\n+        });\n+    }\n+    fetchWords();\n+};\n+\n+export const deleteWords = word_id => {\n+    return dispatch => {\n+\n+        console.log(JSON.stringify({accept: [word_id] }));","path":"src/components/StopWord/StopWordActions.js","position":40,"original_position":40,"commit_id":"6b33d5af5380ba9159408ed6bd0959719633190c","original_commit_id":"6b33d5af5380ba9159408ed6bd0959719633190c","user":{"login":"yuzvyshyn","id":26527595,"avatar_url":"https://avatars0.githubusercontent.com/u/26527595?v=4","gravatar_id":"","url":"https://api.github.com/users/yuzvyshyn","html_url":"https://github.com/yuzvyshyn","followers_url":"https://api.github.com/users/yuzvyshyn/followers","following_url":"https://api.github.com/users/yuzvyshyn/following{/other_user}","gists_url":"https://api.github.com/users/yuzvyshyn/gists{/gist_id}","starred_url":"https://api.github.com/users/yuzvyshyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuzvyshyn/subscriptions","organizations_url":"https://api.github.com/users/yuzvyshyn/orgs","repos_url":"https://api.github.com/users/yuzvyshyn/repos","events_url":"https://api.github.com/users/yuzvyshyn/events{/privacy}","received_events_url":"https://api.github.com/users/yuzvyshyn/received_events","type":"User","site_admin":false},"body":"the same","created_at":"2018-02-01T16:14:14Z","updated_at":"2018-02-01T16:16:04Z","html_url":"https://github.com/sb-github/platform-react/pull/35#discussion_r165405546","pull_request_url":"https://api.github.com/repos/sb-github/platform-react/pulls/35","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/sb-github/platform-react/pulls/comments/165405546"},"html":{"href":"https://github.com/sb-github/platform-react/pull/35#discussion_r165405546"},"pull_request":{"href":"https://api.github.com/repos/sb-github/platform-react/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/sb-github/platform-react/pulls/35","id":166575832,"html_url":"https://github.com/sb-github/platform-react/pull/35","diff_url":"https://github.com/sb-github/platform-react/pull/35.diff","patch_url":"https://github.com/sb-github/platform-react/pull/35.patch","issue_url":"https://api.github.com/repos/sb-github/platform-react/issues/35","number":35,"state":"open","locked":false,"title":"Feature/#10 create component stop words","user":{"login":"ComradeYanis","id":31801470,"avatar_url":"https://avatars1.githubusercontent.com/u/31801470?v=4","gravatar_id":"","url":"https://api.github.com/users/ComradeYanis","html_url":"https://github.com/ComradeYanis","followers_url":"https://api.github.com/users/ComradeYanis/followers","following_url":"https://api.github.com/users/ComradeYanis/following{/other_user}","gists_url":"https://api.github.com/users/ComradeYanis/gists{/gist_id}","starred_url":"https://api.github.com/users/ComradeYanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComradeYanis/subscriptions","organizations_url":"https://api.github.com/users/ComradeYanis/orgs","repos_url":"https://api.github.com/users/ComradeYanis/repos","events_url":"https://api.github.com/users/ComradeYanis/events{/privacy}","received_events_url":"https://api.github.com/users/ComradeYanis/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-01T15:53:30Z","updated_at":"2018-02-01T16:16:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"865825a680511aa0cf844b9cf1b657a962ef2391","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/sb-github/platform-react/pulls/35/commits","review_comments_url":"https://api.github.com/repos/sb-github/platform-react/pulls/35/comments","review_comment_url":"https://api.github.com/repos/sb-github/platform-react/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sb-github/platform-react/issues/35/comments","statuses_url":"https://api.github.com/repos/sb-github/platform-react/statuses/6b33d5af5380ba9159408ed6bd0959719633190c","head":{"label":"sb-github:feature/#10_create_component_stop_words","ref":"feature/#10_create_component_stop_words","sha":"6b33d5af5380ba9159408ed6bd0959719633190c","user":{"login":"sb-github","id":35269340,"avatar_url":"https://avatars1.githubusercontent.com/u/35269340?v=4","gravatar_id":"","url":"https://api.github.com/users/sb-github","html_url":"https://github.com/sb-github","followers_url":"https://api.github.com/users/sb-github/followers","following_url":"https://api.github.com/users/sb-github/following{/other_user}","gists_url":"https://api.github.com/users/sb-github/gists{/gist_id}","starred_url":"https://api.github.com/users/sb-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sb-github/subscriptions","organizations_url":"https://api.github.com/users/sb-github/orgs","repos_url":"https://api.github.com/users/sb-github/repos","events_url":"https://api.github.com/users/sb-github/events{/privacy}","received_events_url":"https://api.github.com/users/sb-github/received_events","type":"User","site_admin":false},"repo":{"id":117245122,"name":"platform-react","full_name":"sb-github/platform-react","owner":{"login":"sb-github","id":35269340,"avatar_url":"https://avatars1.githubusercontent.com/u/35269340?v=4","gravatar_id":"","url":"https://api.github.com/users/sb-github","html_url":"https://github.com/sb-github","followers_url":"https://api.github.com/users/sb-github/followers","following_url":"https://api.github.com/users/sb-github/following{/other_user}","gists_url":"https://api.github.com/users/sb-github/gists{/gist_id}","starred_url":"https://api.github.com/users/sb-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sb-github/subscriptions","organizations_url":"https://api.github.com/users/sb-github/orgs","repos_url":"https://api.github.com/users/sb-github/repos","events_url":"https://api.github.com/users/sb-github/events{/privacy}","received_events_url":"https://api.github.com/users/sb-github/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sb-github/platform-react","description":null,"fork":false,"url":"https://api.github.com/repos/sb-github/platform-react","forks_url":"https://api.github.com/repos/sb-github/platform-react/forks","keys_url":"https://api.github.com/repos/sb-github/platform-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sb-github/platform-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sb-github/platform-react/teams","hooks_url":"https://api.github.com/repos/sb-github/platform-react/hooks","issue_events_url":"https://api.github.com/repos/sb-github/platform-react/issues/events{/number}","events_url":"https://api.github.com/repos/sb-github/platform-react/events","assignees_url":"https://api.github.com/repos/sb-github/platform-react/assignees{/user}","branches_url":"https://api.github.com/repos/sb-github/platform-react/branches{/branch}","tags_url":"https://api.github.com/repos/sb-github/platform-react/tags","blobs_url":"https://api.github.com/repos/sb-github/platform-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sb-github/platform-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sb-github/platform-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/sb-github/platform-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sb-github/platform-react/statuses/{sha}","languages_url":"https://api.github.com/repos/sb-github/platform-react/languages","stargazers_url":"https://api.github.com/repos/sb-github/platform-react/stargazers","contributors_url":"https://api.github.com/repos/sb-github/platform-react/contributors","subscribers_url":"https://api.github.com/repos/sb-github/platform-react/subscribers","subscription_url":"https://api.github.com/repos/sb-github/platform-react/subscription","commits_url":"https://api.github.com/repos/sb-github/platform-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/sb-github/platform-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/sb-github/platform-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/sb-github/platform-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/sb-github/platform-react/contents/{+path}","compare_url":"https://api.github.com/repos/sb-github/platform-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sb-github/platform-react/merges","archive_url":"https://api.github.com/repos/sb-github/platform-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sb-github/platform-react/downloads","issues_url":"https://api.github.com/repos/sb-github/platform-react/issues{/number}","pulls_url":"https://api.github.com/repos/sb-github/platform-react/pulls{/number}","milestones_url":"https://api.github.com/repos/sb-github/platform-react/milestones{/number}","notifications_url":"https://api.github.com/repos/sb-github/platform-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sb-github/platform-react/labels{/name}","releases_url":"https://api.github.com/repos/sb-github/platform-react/releases{/id}","deployments_url":"https://api.github.com/repos/sb-github/platform-react/deployments","created_at":"2018-01-12T13:37:55Z","updated_at":"2018-01-29T20:09:44Z","pushed_at":"2018-02-01T16:09:44Z","git_url":"git://github.com/sb-github/platform-react.git","ssh_url":"git@github.com:sb-github/platform-react.git","clone_url":"https://github.com/sb-github/platform-react.git","svn_url":"https://github.com/sb-github/platform-react","homepage":null,"size":1693,"stargazers_count":4,"watchers_count":4,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":1,"open_issues":12,"watchers":4,"default_branch":"master"}},"base":{"label":"sb-github:develop","ref":"develop","sha":"e789719cdac9b569790a8554505880b13ddfc83a","user":{"login":"sb-github","id":35269340,"avatar_url":"https://avatars1.githubusercontent.com/u/35269340?v=4","gravatar_id":"","url":"https://api.github.com/users/sb-github","html_url":"https://github.com/sb-github","followers_url":"https://api.github.com/users/sb-github/followers","following_url":"https://api.github.com/users/sb-github/following{/other_user}","gists_url":"https://api.github.com/users/sb-github/gists{/gist_id}","starred_url":"https://api.github.com/users/sb-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sb-github/subscriptions","organizations_url":"https://api.github.com/users/sb-github/orgs","repos_url":"https://api.github.com/users/sb-github/repos","events_url":"https://api.github.com/users/sb-github/events{/privacy}","received_events_url":"https://api.github.com/users/sb-github/received_events","type":"User","site_admin":false},"repo":{"id":117245122,"name":"platform-react","full_name":"sb-github/platform-react","owner":{"login":"sb-github","id":35269340,"avatar_url":"https://avatars1.githubusercontent.com/u/35269340?v=4","gravatar_id":"","url":"https://api.github.com/users/sb-github","html_url":"https://github.com/sb-github","followers_url":"https://api.github.com/users/sb-github/followers","following_url":"https://api.github.com/users/sb-github/following{/other_user}","gists_url":"https://api.github.com/users/sb-github/gists{/gist_id}","starred_url":"https://api.github.com/users/sb-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sb-github/subscriptions","organizations_url":"https://api.github.com/users/sb-github/orgs","repos_url":"https://api.github.com/users/sb-github/repos","events_url":"https://api.github.com/users/sb-github/events{/privacy}","received_events_url":"https://api.github.com/users/sb-github/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sb-github/platform-react","description":null,"fork":false,"url":"https://api.github.com/repos/sb-github/platform-react","forks_url":"https://api.github.com/repos/sb-github/platform-react/forks","keys_url":"https://api.github.com/repos/sb-github/platform-react/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sb-github/platform-react/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sb-github/platform-react/teams","hooks_url":"https://api.github.com/repos/sb-github/platform-react/hooks","issue_events_url":"https://api.github.com/repos/sb-github/platform-react/issues/events{/number}","events_url":"https://api.github.com/repos/sb-github/platform-react/events","assignees_url":"https://api.github.com/repos/sb-github/platform-react/assignees{/user}","branches_url":"https://api.github.com/repos/sb-github/platform-react/branches{/branch}","tags_url":"https://api.github.com/repos/sb-github/platform-react/tags","blobs_url":"https://api.github.com/repos/sb-github/platform-react/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sb-github/platform-react/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sb-github/platform-react/git/refs{/sha}","trees_url":"https://api.github.com/repos/sb-github/platform-react/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sb-github/platform-react/statuses/{sha}","languages_url":"https://api.github.com/repos/sb-github/platform-react/languages","stargazers_url":"https://api.github.com/repos/sb-github/platform-react/stargazers","contributors_url":"https://api.github.com/repos/sb-github/platform-react/contributors","subscribers_url":"https://api.github.com/repos/sb-github/platform-react/subscribers","subscription_url":"https://api.github.com/repos/sb-github/platform-react/subscription","commits_url":"https://api.github.com/repos/sb-github/platform-react/commits{/sha}","git_commits_url":"https://api.github.com/repos/sb-github/platform-react/git/commits{/sha}","comments_url":"https://api.github.com/repos/sb-github/platform-react/comments{/number}","issue_comment_url":"https://api.github.com/repos/sb-github/platform-react/issues/comments{/number}","contents_url":"https://api.github.com/repos/sb-github/platform-react/contents/{+path}","compare_url":"https://api.github.com/repos/sb-github/platform-react/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sb-github/platform-react/merges","archive_url":"https://api.github.com/repos/sb-github/platform-react/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sb-github/platform-react/downloads","issues_url":"https://api.github.com/repos/sb-github/platform-react/issues{/number}","pulls_url":"https://api.github.com/repos/sb-github/platform-react/pulls{/number}","milestones_url":"https://api.github.com/repos/sb-github/platform-react/milestones{/number}","notifications_url":"https://api.github.com/repos/sb-github/platform-react/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sb-github/platform-react/labels{/name}","releases_url":"https://api.github.com/repos/sb-github/platform-react/releases{/id}","deployments_url":"https://api.github.com/repos/sb-github/platform-react/deployments","created_at":"2018-01-12T13:37:55Z","updated_at":"2018-01-29T20:09:44Z","pushed_at":"2018-02-01T16:09:44Z","git_url":"git://github.com/sb-github/platform-react.git","ssh_url":"git@github.com:sb-github/platform-react.git","clone_url":"https://github.com/sb-github/platform-react.git","svn_url":"https://github.com/sb-github/platform-react","homepage":null,"size":1693,"stargazers_count":4,"watchers_count":4,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":1,"open_issues":12,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sb-github/platform-react/pulls/35"},"html":{"href":"https://github.com/sb-github/platform-react/pull/35"},"issue":{"href":"https://api.github.com/repos/sb-github/platform-react/issues/35"},"comments":{"href":"https://api.github.com/repos/sb-github/platform-react/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/sb-github/platform-react/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/sb-github/platform-react/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sb-github/platform-react/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/sb-github/platform-react/statuses/6b33d5af5380ba9159408ed6bd0959719633190c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"yuzvyshyn"}}