{"action":"created","comment":{"url":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/comments/108875955","pull_request_review_id":29937191,"id":108875955,"diff_hunk":"@@ -323,6 +349,10 @@ class Local implements Side {\n \n   // Delete a file or folder from the local filesystem\n   destroy (doc, callback) {\n+    if (inRemoteTrash(doc)) {\n+      callback(null)\n+      return\n+    }","path":"src/local/index.js","position":77,"original_position":77,"commit_id":"04f0afb0043ff8ff6b008243aa38bb098b5deba8","original_commit_id":"2d116c1fed817e581f1be6a26d7f11cfbca17eb4","user":{"login":"nono","id":2767,"avatar_url":"https://avatars0.githubusercontent.com/u/2767?v=3","gravatar_id":"","url":"https://api.github.com/users/nono","html_url":"https://github.com/nono","followers_url":"https://api.github.com/users/nono/followers","following_url":"https://api.github.com/users/nono/following{/other_user}","gists_url":"https://api.github.com/users/nono/gists{/gist_id}","starred_url":"https://api.github.com/users/nono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nono/subscriptions","organizations_url":"https://api.github.com/users/nono/orgs","repos_url":"https://api.github.com/users/nono/repos","events_url":"https://api.github.com/users/nono/events{/privacy}","received_events_url":"https://api.github.com/users/nono/received_events","type":"User","site_admin":false},"body":"Okay, I really have some difficulties to reason about the trash","created_at":"2017-03-30T09:09:04Z","updated_at":"2017-03-30T09:09:04Z","html_url":"https://github.com/cozy-labs/cozy-desktop/pull/597#discussion_r108875955","pull_request_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/597","_links":{"self":{"href":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/comments/108875955"},"html":{"href":"https://github.com/cozy-labs/cozy-desktop/pull/597#discussion_r108875955"},"pull_request":{"href":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/597"}}},"pull_request":{"url":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/597","id":112949511,"html_url":"https://github.com/cozy-labs/cozy-desktop/pull/597","diff_url":"https://github.com/cozy-labs/cozy-desktop/pull/597.diff","patch_url":"https://github.com/cozy-labs/cozy-desktop/pull/597.patch","issue_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/597","number":597,"state":"closed","locked":false,"title":"Sync trash content metadata and restore dir","user":{"login":"sebn","id":2260801,"avatar_url":"https://avatars1.githubusercontent.com/u/2260801?v=3","gravatar_id":"","url":"https://api.github.com/users/sebn","html_url":"https://github.com/sebn","followers_url":"https://api.github.com/users/sebn/followers","following_url":"https://api.github.com/users/sebn/following{/other_user}","gists_url":"https://api.github.com/users/sebn/gists{/gist_id}","starred_url":"https://api.github.com/users/sebn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebn/subscriptions","organizations_url":"https://api.github.com/users/sebn/orgs","repos_url":"https://api.github.com/users/sebn/repos","events_url":"https://api.github.com/users/sebn/events{/privacy}","received_events_url":"https://api.github.com/users/sebn/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-28T11:41:05Z","updated_at":"2017-03-30T09:09:04Z","closed_at":"2017-03-30T09:08:26Z","merged_at":"2017-03-30T09:08:26Z","merge_commit_sha":"9471e3e2f3acc17254c742b2c81b991dfd41407f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/597/commits","review_comments_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/597/comments","review_comment_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/597/comments","statuses_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/statuses/04f0afb0043ff8ff6b008243aa38bb098b5deba8","head":{"label":"cozy-labs:restore-dir","ref":"restore-dir","sha":"04f0afb0043ff8ff6b008243aa38bb098b5deba8","user":{"login":"cozy-labs","id":8415593,"avatar_url":"https://avatars3.githubusercontent.com/u/8415593?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy-labs","html_url":"https://github.com/cozy-labs","followers_url":"https://api.github.com/users/cozy-labs/followers","following_url":"https://api.github.com/users/cozy-labs/following{/other_user}","gists_url":"https://api.github.com/users/cozy-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy-labs/subscriptions","organizations_url":"https://api.github.com/users/cozy-labs/orgs","repos_url":"https://api.github.com/users/cozy-labs/repos","events_url":"https://api.github.com/users/cozy-labs/events{/privacy}","received_events_url":"https://api.github.com/users/cozy-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":23385363,"name":"cozy-desktop","full_name":"cozy-labs/cozy-desktop","owner":{"login":"cozy-labs","id":8415593,"avatar_url":"https://avatars3.githubusercontent.com/u/8415593?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy-labs","html_url":"https://github.com/cozy-labs","followers_url":"https://api.github.com/users/cozy-labs/followers","following_url":"https://api.github.com/users/cozy-labs/following{/other_user}","gists_url":"https://api.github.com/users/cozy-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy-labs/subscriptions","organizations_url":"https://api.github.com/users/cozy-labs/orgs","repos_url":"https://api.github.com/users/cozy-labs/repos","events_url":"https://api.github.com/users/cozy-labs/events{/privacy}","received_events_url":"https://api.github.com/users/cozy-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cozy-labs/cozy-desktop","description":"File Synchronisation for Cozy on Desktop and Laptop","fork":false,"url":"https://api.github.com/repos/cozy-labs/cozy-desktop","forks_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/forks","keys_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/teams","hooks_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/hooks","issue_events_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/events","assignees_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/tags","blobs_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/languages","stargazers_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/stargazers","contributors_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/contributors","subscribers_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/subscribers","subscription_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/subscription","commits_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/merges","archive_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/downloads","issues_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/labels{/name}","releases_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/deployments","created_at":"2014-08-27T10:10:38Z","updated_at":"2017-03-16T16:42:10Z","pushed_at":"2017-03-30T09:08:29Z","git_url":"git://github.com/cozy-labs/cozy-desktop.git","ssh_url":"git@github.com:cozy-labs/cozy-desktop.git","clone_url":"https://github.com/cozy-labs/cozy-desktop.git","svn_url":"https://github.com/cozy-labs/cozy-desktop","homepage":"https://cozy-labs.github.io/cozy-desktop/","size":5795,"stargazers_count":27,"watchers_count":27,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":13,"forks":18,"open_issues":13,"watchers":27,"default_branch":"master"}},"base":{"label":"cozy-labs:master","ref":"master","sha":"32525cbf1b9c30e5fc43c77798ada047bed153e8","user":{"login":"cozy-labs","id":8415593,"avatar_url":"https://avatars3.githubusercontent.com/u/8415593?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy-labs","html_url":"https://github.com/cozy-labs","followers_url":"https://api.github.com/users/cozy-labs/followers","following_url":"https://api.github.com/users/cozy-labs/following{/other_user}","gists_url":"https://api.github.com/users/cozy-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy-labs/subscriptions","organizations_url":"https://api.github.com/users/cozy-labs/orgs","repos_url":"https://api.github.com/users/cozy-labs/repos","events_url":"https://api.github.com/users/cozy-labs/events{/privacy}","received_events_url":"https://api.github.com/users/cozy-labs/received_events","type":"Organization","site_admin":false},"repo":{"id":23385363,"name":"cozy-desktop","full_name":"cozy-labs/cozy-desktop","owner":{"login":"cozy-labs","id":8415593,"avatar_url":"https://avatars3.githubusercontent.com/u/8415593?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy-labs","html_url":"https://github.com/cozy-labs","followers_url":"https://api.github.com/users/cozy-labs/followers","following_url":"https://api.github.com/users/cozy-labs/following{/other_user}","gists_url":"https://api.github.com/users/cozy-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy-labs/subscriptions","organizations_url":"https://api.github.com/users/cozy-labs/orgs","repos_url":"https://api.github.com/users/cozy-labs/repos","events_url":"https://api.github.com/users/cozy-labs/events{/privacy}","received_events_url":"https://api.github.com/users/cozy-labs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cozy-labs/cozy-desktop","description":"File Synchronisation for Cozy on Desktop and Laptop","fork":false,"url":"https://api.github.com/repos/cozy-labs/cozy-desktop","forks_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/forks","keys_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/teams","hooks_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/hooks","issue_events_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/events","assignees_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/tags","blobs_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/languages","stargazers_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/stargazers","contributors_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/contributors","subscribers_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/subscribers","subscription_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/subscription","commits_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/merges","archive_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/downloads","issues_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/labels{/name}","releases_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/deployments","created_at":"2014-08-27T10:10:38Z","updated_at":"2017-03-16T16:42:10Z","pushed_at":"2017-03-30T09:08:29Z","git_url":"git://github.com/cozy-labs/cozy-desktop.git","ssh_url":"git@github.com:cozy-labs/cozy-desktop.git","clone_url":"https://github.com/cozy-labs/cozy-desktop.git","svn_url":"https://github.com/cozy-labs/cozy-desktop","homepage":"https://cozy-labs.github.io/cozy-desktop/","size":5795,"stargazers_count":27,"watchers_count":27,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":13,"forks":18,"open_issues":13,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/597"},"html":{"href":"https://github.com/cozy-labs/cozy-desktop/pull/597"},"issue":{"href":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/597"},"comments":{"href":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/597/comments"},"review_comments":{"href":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/597/comments"},"review_comment":{"href":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cozy-labs/cozy-desktop/pulls/597/commits"},"statuses":{"href":"https://api.github.com/repos/cozy-labs/cozy-desktop/statuses/04f0afb0043ff8ff6b008243aa38bb098b5deba8"}}}}
{"actor":{"display_login":"nono"}}