{"action":"created","comment":{"url":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/comments/69453531","id":69453531,"diff_hunk":"@@ -1,13 +1,22 @@\n import {Observable} from 'rxjs';\n import {parseAction} from './parse';\n \n-const createWatcher$ = watcher => {\n-  const set$ = Observable.fromEvent(watcher, 'set');\n-  const delete$ = Observable.fromEvent(watcher, 'delete');\n-  const reSync$ = Observable.fromEvent(watcher, 'resync');\n+const createWatcher$ = (client, cwd) => {\n+  return Observable.create(observer => {\n+    const watcher = client.watcher(cwd, null, {recursive: true});\n \n-  return Observable.merge(set$, delete$, reSync$)\n-    .map(parseAction);\n+    const set$ = Observable.fromEvent(watcher, 'set');\n+    const delete$ = Observable.fromEvent(watcher, 'delete');\n+    const reSync$ = Observable.fromEvent(watcher, 'resync');\n+    observer.next(set$);\n+    observer.next(delete$);\n+    observer.next(reSync$);\n+\n+    // Provide a way of canceling and disposing the interval resource\n+    return () => {\n+      watcher.stop();","path":"src/watch.js","position":23,"original_position":23,"commit_id":"61e68ff034dcfd3816bf09e33727ca285cf738cc","original_commit_id":"17b5dc0540c8022bf538798ff0a6c2eb895413c4","user":{"login":"godu","id":509108,"avatar_url":"https://avatars.githubusercontent.com/u/509108?v=3","gravatar_id":"","url":"https://api.github.com/users/godu","html_url":"https://github.com/godu","followers_url":"https://api.github.com/users/godu/followers","following_url":"https://api.github.com/users/godu/following{/other_user}","gists_url":"https://api.github.com/users/godu/gists{/gist_id}","starred_url":"https://api.github.com/users/godu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godu/subscriptions","organizations_url":"https://api.github.com/users/godu/orgs","repos_url":"https://api.github.com/users/godu/repos","events_url":"https://api.github.com/users/godu/events{/privacy}","received_events_url":"https://api.github.com/users/godu/received_events","type":"User","site_admin":false},"body":"Et retourne sa fonction d'annulation","created_at":"2016-07-04T12:53:15Z","updated_at":"2016-07-04T12:53:15Z","html_url":"https://github.com/CoorpAcademy/squirrel/pull/49#discussion_r69453531","pull_request_url":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/comments/69453531"},"html":{"href":"https://github.com/CoorpAcademy/squirrel/pull/49#discussion_r69453531"},"pull_request":{"href":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/49","id":76158557,"html_url":"https://github.com/CoorpAcademy/squirrel/pull/49","diff_url":"https://github.com/CoorpAcademy/squirrel/pull/49.diff","patch_url":"https://github.com/CoorpAcademy/squirrel/pull/49.patch","issue_url":"https://api.github.com/repos/CoorpAcademy/squirrel/issues/49","number":49,"state":"open","locked":false,"title":"Rework fetcher (#46)","user":{"login":"godu","id":509108,"avatar_url":"https://avatars.githubusercontent.com/u/509108?v=3","gravatar_id":"","url":"https://api.github.com/users/godu","html_url":"https://github.com/godu","followers_url":"https://api.github.com/users/godu/followers","following_url":"https://api.github.com/users/godu/following{/other_user}","gists_url":"https://api.github.com/users/godu/gists{/gist_id}","starred_url":"https://api.github.com/users/godu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godu/subscriptions","organizations_url":"https://api.github.com/users/godu/orgs","repos_url":"https://api.github.com/users/godu/repos","events_url":"https://api.github.com/users/godu/events{/privacy}","received_events_url":"https://api.github.com/users/godu/received_events","type":"User","site_admin":false},"body":" #43 \r\nWatch manager itself killing ETCD connection on unsubscription.","created_at":"2016-07-04T12:45:41Z","updated_at":"2016-07-04T12:53:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90a77a1011187b7c808237f915a23f1deb9f6493","assignee":{"login":"T1B0","id":493450,"avatar_url":"https://avatars.githubusercontent.com/u/493450?v=3","gravatar_id":"","url":"https://api.github.com/users/T1B0","html_url":"https://github.com/T1B0","followers_url":"https://api.github.com/users/T1B0/followers","following_url":"https://api.github.com/users/T1B0/following{/other_user}","gists_url":"https://api.github.com/users/T1B0/gists{/gist_id}","starred_url":"https://api.github.com/users/T1B0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/T1B0/subscriptions","organizations_url":"https://api.github.com/users/T1B0/orgs","repos_url":"https://api.github.com/users/T1B0/repos","events_url":"https://api.github.com/users/T1B0/events{/privacy}","received_events_url":"https://api.github.com/users/T1B0/received_events","type":"User","site_admin":false},"assignees":[{"login":"T1B0","id":493450,"avatar_url":"https://avatars.githubusercontent.com/u/493450?v=3","gravatar_id":"","url":"https://api.github.com/users/T1B0","html_url":"https://github.com/T1B0","followers_url":"https://api.github.com/users/T1B0/followers","following_url":"https://api.github.com/users/T1B0/following{/other_user}","gists_url":"https://api.github.com/users/T1B0/gists{/gist_id}","starred_url":"https://api.github.com/users/T1B0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/T1B0/subscriptions","organizations_url":"https://api.github.com/users/T1B0/orgs","repos_url":"https://api.github.com/users/T1B0/repos","events_url":"https://api.github.com/users/T1B0/events{/privacy}","received_events_url":"https://api.github.com/users/T1B0/received_events","type":"User","site_admin":false},{"login":"jfmengels","id":3869412,"avatar_url":"https://avatars.githubusercontent.com/u/3869412?v=3","gravatar_id":"","url":"https://api.github.com/users/jfmengels","html_url":"https://github.com/jfmengels","followers_url":"https://api.github.com/users/jfmengels/followers","following_url":"https://api.github.com/users/jfmengels/following{/other_user}","gists_url":"https://api.github.com/users/jfmengels/gists{/gist_id}","starred_url":"https://api.github.com/users/jfmengels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfmengels/subscriptions","organizations_url":"https://api.github.com/users/jfmengels/orgs","repos_url":"https://api.github.com/users/jfmengels/repos","events_url":"https://api.github.com/users/jfmengels/events{/privacy}","received_events_url":"https://api.github.com/users/jfmengels/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/49/commits","review_comments_url":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/49/comments","review_comment_url":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CoorpAcademy/squirrel/issues/49/comments","statuses_url":"https://api.github.com/repos/CoorpAcademy/squirrel/statuses/61e68ff034dcfd3816bf09e33727ca285cf738cc","head":{"label":"CoorpAcademy:issue-watcher-rework","ref":"issue-watcher-rework","sha":"61e68ff034dcfd3816bf09e33727ca285cf738cc","user":{"login":"CoorpAcademy","id":7345593,"avatar_url":"https://avatars.githubusercontent.com/u/7345593?v=3","gravatar_id":"","url":"https://api.github.com/users/CoorpAcademy","html_url":"https://github.com/CoorpAcademy","followers_url":"https://api.github.com/users/CoorpAcademy/followers","following_url":"https://api.github.com/users/CoorpAcademy/following{/other_user}","gists_url":"https://api.github.com/users/CoorpAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/CoorpAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoorpAcademy/subscriptions","organizations_url":"https://api.github.com/users/CoorpAcademy/orgs","repos_url":"https://api.github.com/users/CoorpAcademy/repos","events_url":"https://api.github.com/users/CoorpAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/CoorpAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":46503633,"name":"squirrel","full_name":"CoorpAcademy/squirrel","owner":{"login":"CoorpAcademy","id":7345593,"avatar_url":"https://avatars.githubusercontent.com/u/7345593?v=3","gravatar_id":"","url":"https://api.github.com/users/CoorpAcademy","html_url":"https://github.com/CoorpAcademy","followers_url":"https://api.github.com/users/CoorpAcademy/followers","following_url":"https://api.github.com/users/CoorpAcademy/following{/other_user}","gists_url":"https://api.github.com/users/CoorpAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/CoorpAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoorpAcademy/subscriptions","organizations_url":"https://api.github.com/users/CoorpAcademy/orgs","repos_url":"https://api.github.com/users/CoorpAcademy/repos","events_url":"https://api.github.com/users/CoorpAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/CoorpAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CoorpAcademy/squirrel","description":"Dedicated repository for Coorpacademy Squirrel microservice, which is intended to list and serves brands objects","fork":false,"url":"https://api.github.com/repos/CoorpAcademy/squirrel","forks_url":"https://api.github.com/repos/CoorpAcademy/squirrel/forks","keys_url":"https://api.github.com/repos/CoorpAcademy/squirrel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CoorpAcademy/squirrel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CoorpAcademy/squirrel/teams","hooks_url":"https://api.github.com/repos/CoorpAcademy/squirrel/hooks","issue_events_url":"https://api.github.com/repos/CoorpAcademy/squirrel/issues/events{/number}","events_url":"https://api.github.com/repos/CoorpAcademy/squirrel/events","assignees_url":"https://api.github.com/repos/CoorpAcademy/squirrel/assignees{/user}","branches_url":"https://api.github.com/repos/CoorpAcademy/squirrel/branches{/branch}","tags_url":"https://api.github.com/repos/CoorpAcademy/squirrel/tags","blobs_url":"https://api.github.com/repos/CoorpAcademy/squirrel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CoorpAcademy/squirrel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CoorpAcademy/squirrel/git/refs{/sha}","trees_url":"https://api.github.com/repos/CoorpAcademy/squirrel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CoorpAcademy/squirrel/statuses/{sha}","languages_url":"https://api.github.com/repos/CoorpAcademy/squirrel/languages","stargazers_url":"https://api.github.com/repos/CoorpAcademy/squirrel/stargazers","contributors_url":"https://api.github.com/repos/CoorpAcademy/squirrel/contributors","subscribers_url":"https://api.github.com/repos/CoorpAcademy/squirrel/subscribers","subscription_url":"https://api.github.com/repos/CoorpAcademy/squirrel/subscription","commits_url":"https://api.github.com/repos/CoorpAcademy/squirrel/commits{/sha}","git_commits_url":"https://api.github.com/repos/CoorpAcademy/squirrel/git/commits{/sha}","comments_url":"https://api.github.com/repos/CoorpAcademy/squirrel/comments{/number}","issue_comment_url":"https://api.github.com/repos/CoorpAcademy/squirrel/issues/comments{/number}","contents_url":"https://api.github.com/repos/CoorpAcademy/squirrel/contents/{+path}","compare_url":"https://api.github.com/repos/CoorpAcademy/squirrel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CoorpAcademy/squirrel/merges","archive_url":"https://api.github.com/repos/CoorpAcademy/squirrel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CoorpAcademy/squirrel/downloads","issues_url":"https://api.github.com/repos/CoorpAcademy/squirrel/issues{/number}","pulls_url":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls{/number}","milestones_url":"https://api.github.com/repos/CoorpAcademy/squirrel/milestones{/number}","notifications_url":"https://api.github.com/repos/CoorpAcademy/squirrel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CoorpAcademy/squirrel/labels{/name}","releases_url":"https://api.github.com/repos/CoorpAcademy/squirrel/releases{/id}","deployments_url":"https://api.github.com/repos/CoorpAcademy/squirrel/deployments","created_at":"2015-11-19T16:04:11Z","updated_at":"2016-05-09T09:06:22Z","pushed_at":"2016-07-04T12:51:34Z","git_url":"git://github.com/CoorpAcademy/squirrel.git","ssh_url":"git@github.com:CoorpAcademy/squirrel.git","clone_url":"https://github.com/CoorpAcademy/squirrel.git","svn_url":"https://github.com/CoorpAcademy/squirrel","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"CoorpAcademy:master","ref":"master","sha":"90c994e2fa3ec4c9133af3ca341b82310708a05b","user":{"login":"CoorpAcademy","id":7345593,"avatar_url":"https://avatars.githubusercontent.com/u/7345593?v=3","gravatar_id":"","url":"https://api.github.com/users/CoorpAcademy","html_url":"https://github.com/CoorpAcademy","followers_url":"https://api.github.com/users/CoorpAcademy/followers","following_url":"https://api.github.com/users/CoorpAcademy/following{/other_user}","gists_url":"https://api.github.com/users/CoorpAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/CoorpAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoorpAcademy/subscriptions","organizations_url":"https://api.github.com/users/CoorpAcademy/orgs","repos_url":"https://api.github.com/users/CoorpAcademy/repos","events_url":"https://api.github.com/users/CoorpAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/CoorpAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":46503633,"name":"squirrel","full_name":"CoorpAcademy/squirrel","owner":{"login":"CoorpAcademy","id":7345593,"avatar_url":"https://avatars.githubusercontent.com/u/7345593?v=3","gravatar_id":"","url":"https://api.github.com/users/CoorpAcademy","html_url":"https://github.com/CoorpAcademy","followers_url":"https://api.github.com/users/CoorpAcademy/followers","following_url":"https://api.github.com/users/CoorpAcademy/following{/other_user}","gists_url":"https://api.github.com/users/CoorpAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/CoorpAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoorpAcademy/subscriptions","organizations_url":"https://api.github.com/users/CoorpAcademy/orgs","repos_url":"https://api.github.com/users/CoorpAcademy/repos","events_url":"https://api.github.com/users/CoorpAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/CoorpAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CoorpAcademy/squirrel","description":"Dedicated repository for Coorpacademy Squirrel microservice, which is intended to list and serves brands objects","fork":false,"url":"https://api.github.com/repos/CoorpAcademy/squirrel","forks_url":"https://api.github.com/repos/CoorpAcademy/squirrel/forks","keys_url":"https://api.github.com/repos/CoorpAcademy/squirrel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CoorpAcademy/squirrel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CoorpAcademy/squirrel/teams","hooks_url":"https://api.github.com/repos/CoorpAcademy/squirrel/hooks","issue_events_url":"https://api.github.com/repos/CoorpAcademy/squirrel/issues/events{/number}","events_url":"https://api.github.com/repos/CoorpAcademy/squirrel/events","assignees_url":"https://api.github.com/repos/CoorpAcademy/squirrel/assignees{/user}","branches_url":"https://api.github.com/repos/CoorpAcademy/squirrel/branches{/branch}","tags_url":"https://api.github.com/repos/CoorpAcademy/squirrel/tags","blobs_url":"https://api.github.com/repos/CoorpAcademy/squirrel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CoorpAcademy/squirrel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CoorpAcademy/squirrel/git/refs{/sha}","trees_url":"https://api.github.com/repos/CoorpAcademy/squirrel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CoorpAcademy/squirrel/statuses/{sha}","languages_url":"https://api.github.com/repos/CoorpAcademy/squirrel/languages","stargazers_url":"https://api.github.com/repos/CoorpAcademy/squirrel/stargazers","contributors_url":"https://api.github.com/repos/CoorpAcademy/squirrel/contributors","subscribers_url":"https://api.github.com/repos/CoorpAcademy/squirrel/subscribers","subscription_url":"https://api.github.com/repos/CoorpAcademy/squirrel/subscription","commits_url":"https://api.github.com/repos/CoorpAcademy/squirrel/commits{/sha}","git_commits_url":"https://api.github.com/repos/CoorpAcademy/squirrel/git/commits{/sha}","comments_url":"https://api.github.com/repos/CoorpAcademy/squirrel/comments{/number}","issue_comment_url":"https://api.github.com/repos/CoorpAcademy/squirrel/issues/comments{/number}","contents_url":"https://api.github.com/repos/CoorpAcademy/squirrel/contents/{+path}","compare_url":"https://api.github.com/repos/CoorpAcademy/squirrel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CoorpAcademy/squirrel/merges","archive_url":"https://api.github.com/repos/CoorpAcademy/squirrel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CoorpAcademy/squirrel/downloads","issues_url":"https://api.github.com/repos/CoorpAcademy/squirrel/issues{/number}","pulls_url":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls{/number}","milestones_url":"https://api.github.com/repos/CoorpAcademy/squirrel/milestones{/number}","notifications_url":"https://api.github.com/repos/CoorpAcademy/squirrel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CoorpAcademy/squirrel/labels{/name}","releases_url":"https://api.github.com/repos/CoorpAcademy/squirrel/releases{/id}","deployments_url":"https://api.github.com/repos/CoorpAcademy/squirrel/deployments","created_at":"2015-11-19T16:04:11Z","updated_at":"2016-05-09T09:06:22Z","pushed_at":"2016-07-04T12:51:34Z","git_url":"git://github.com/CoorpAcademy/squirrel.git","ssh_url":"git@github.com:CoorpAcademy/squirrel.git","clone_url":"https://github.com/CoorpAcademy/squirrel.git","svn_url":"https://github.com/CoorpAcademy/squirrel","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/49"},"html":{"href":"https://github.com/CoorpAcademy/squirrel/pull/49"},"issue":{"href":"https://api.github.com/repos/CoorpAcademy/squirrel/issues/49"},"comments":{"href":"https://api.github.com/repos/CoorpAcademy/squirrel/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CoorpAcademy/squirrel/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/CoorpAcademy/squirrel/statuses/61e68ff034dcfd3816bf09e33727ca285cf738cc"}}}}
{"actor":{"display_login":"godu"}}