{"action":"created","comment":{"url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/comments/124443649","pull_request_review_id":46731193,"id":124443649,"diff_hunk":"@@ -379,6 +379,77 @@ const IconGridLayout = new Lang.Class({\n                 Lang.bind(this, this._enumerateDirectoryFiles));\n     },\n \n+    _createFolderFile: function(name) {\n+        let keyFile = new GLib.KeyFile();\n+\n+        keyFile.set_value(GLib.KEY_FILE_DESKTOP_GROUP,\n+                          GLib.KEY_FILE_DESKTOP_KEY_NAME, name);\n+\n+        keyFile.set_value(GLib.KEY_FILE_DESKTOP_GROUP,\n+                          GLib.KEY_FILE_DESKTOP_KEY_TYPE, GLib.KEY_FILE_DESKTOP_TYPE_DIRECTORY);\n+\n+        let dir = Gio.File.new_for_path(GLib.get_user_data_dir() + '/desktop-directories');\n+        if (!dir.query_exists(null))","path":"js/ui/iconGridLayout.js","position":14,"original_position":14,"commit_id":"9efd936265b4de742bc11f23e2c9af46254d84dc","original_commit_id":"aa2d85d9839b6f05e23419d053e713e2a21a482d","user":{"login":"cosimoc","id":13906,"avatar_url":"https://avatars2.githubusercontent.com/u/13906?v=3","gravatar_id":"","url":"https://api.github.com/users/cosimoc","html_url":"https://github.com/cosimoc","followers_url":"https://api.github.com/users/cosimoc/followers","following_url":"https://api.github.com/users/cosimoc/following{/other_user}","gists_url":"https://api.github.com/users/cosimoc/gists{/gist_id}","starred_url":"https://api.github.com/users/cosimoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosimoc/subscriptions","organizations_url":"https://api.github.com/users/cosimoc/orgs","repos_url":"https://api.github.com/users/cosimoc/repos","events_url":"https://api.github.com/users/cosimoc/events{/privacy}","received_events_url":"https://api.github.com/users/cosimoc/received_events","type":"User","site_admin":false},"body":"Instead of doing this, simply call `make_directory_with_parents()` and catch the error that matches `G_IO_ERROR_EXISTS` code","created_at":"2017-06-28T03:06:07Z","updated_at":"2017-06-28T03:12:42Z","html_url":"https://github.com/endlessm/gnome-shell/pull/65#discussion_r124443649","pull_request_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/comments/124443649"},"html":{"href":"https://github.com/endlessm/gnome-shell/pull/65#discussion_r124443649"},"pull_request":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/65","id":127250711,"html_url":"https://github.com/endlessm/gnome-shell/pull/65","diff_url":"https://github.com/endlessm/gnome-shell/pull/65.diff","patch_url":"https://github.com/endlessm/gnome-shell/pull/65.patch","issue_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/65","number":65,"state":"open","locked":false,"title":"T17847","user":{"login":"joaquimrocha","id":1029635,"avatar_url":"https://avatars1.githubusercontent.com/u/1029635?v=3","gravatar_id":"","url":"https://api.github.com/users/joaquimrocha","html_url":"https://github.com/joaquimrocha","followers_url":"https://api.github.com/users/joaquimrocha/followers","following_url":"https://api.github.com/users/joaquimrocha/following{/other_user}","gists_url":"https://api.github.com/users/joaquimrocha/gists{/gist_id}","starred_url":"https://api.github.com/users/joaquimrocha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaquimrocha/subscriptions","organizations_url":"https://api.github.com/users/joaquimrocha/orgs","repos_url":"https://api.github.com/users/joaquimrocha/repos","events_url":"https://api.github.com/users/joaquimrocha/events{/privacy}","received_events_url":"https://api.github.com/users/joaquimrocha/received_events","type":"User","site_admin":false},"body":"https://phabricator.endlessm.com/T17847","created_at":"2017-06-23T17:10:51Z","updated_at":"2017-06-28T03:12:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0d8844e0ff20f4ab2e6b41cc0527d38e04c12ba","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/65/commits","review_comments_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/65/comments","review_comment_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/65/comments","statuses_url":"https://api.github.com/repos/endlessm/gnome-shell/statuses/9efd936265b4de742bc11f23e2c9af46254d84dc","head":{"label":"endlessm:T17847","ref":"T17847","sha":"9efd936265b4de742bc11f23e2c9af46254d84dc","user":{"login":"endlessm","id":1930958,"avatar_url":"https://avatars2.githubusercontent.com/u/1930958?v=3","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"repo":{"id":84589501,"name":"gnome-shell","full_name":"endlessm/gnome-shell","owner":{"login":"endlessm","id":1930958,"avatar_url":"https://avatars2.githubusercontent.com/u/1930958?v=3","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/endlessm/gnome-shell","description":"Fork of https://git.gnome.org/browse/gnome-shell","fork":false,"url":"https://api.github.com/repos/endlessm/gnome-shell","forks_url":"https://api.github.com/repos/endlessm/gnome-shell/forks","keys_url":"https://api.github.com/repos/endlessm/gnome-shell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/endlessm/gnome-shell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/endlessm/gnome-shell/teams","hooks_url":"https://api.github.com/repos/endlessm/gnome-shell/hooks","issue_events_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/events{/number}","events_url":"https://api.github.com/repos/endlessm/gnome-shell/events","assignees_url":"https://api.github.com/repos/endlessm/gnome-shell/assignees{/user}","branches_url":"https://api.github.com/repos/endlessm/gnome-shell/branches{/branch}","tags_url":"https://api.github.com/repos/endlessm/gnome-shell/tags","blobs_url":"https://api.github.com/repos/endlessm/gnome-shell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/endlessm/gnome-shell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/endlessm/gnome-shell/git/refs{/sha}","trees_url":"https://api.github.com/repos/endlessm/gnome-shell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/endlessm/gnome-shell/statuses/{sha}","languages_url":"https://api.github.com/repos/endlessm/gnome-shell/languages","stargazers_url":"https://api.github.com/repos/endlessm/gnome-shell/stargazers","contributors_url":"https://api.github.com/repos/endlessm/gnome-shell/contributors","subscribers_url":"https://api.github.com/repos/endlessm/gnome-shell/subscribers","subscription_url":"https://api.github.com/repos/endlessm/gnome-shell/subscription","commits_url":"https://api.github.com/repos/endlessm/gnome-shell/commits{/sha}","git_commits_url":"https://api.github.com/repos/endlessm/gnome-shell/git/commits{/sha}","comments_url":"https://api.github.com/repos/endlessm/gnome-shell/comments{/number}","issue_comment_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/comments{/number}","contents_url":"https://api.github.com/repos/endlessm/gnome-shell/contents/{+path}","compare_url":"https://api.github.com/repos/endlessm/gnome-shell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/endlessm/gnome-shell/merges","archive_url":"https://api.github.com/repos/endlessm/gnome-shell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/endlessm/gnome-shell/downloads","issues_url":"https://api.github.com/repos/endlessm/gnome-shell/issues{/number}","pulls_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls{/number}","milestones_url":"https://api.github.com/repos/endlessm/gnome-shell/milestones{/number}","notifications_url":"https://api.github.com/repos/endlessm/gnome-shell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/endlessm/gnome-shell/labels{/name}","releases_url":"https://api.github.com/repos/endlessm/gnome-shell/releases{/id}","deployments_url":"https://api.github.com/repos/endlessm/gnome-shell/deployments","created_at":"2017-03-10T18:30:50Z","updated_at":"2017-05-04T06:26:43Z","pushed_at":"2017-06-27T19:18:45Z","git_url":"git://github.com/endlessm/gnome-shell.git","ssh_url":"git@github.com:endlessm/gnome-shell.git","clone_url":"https://github.com/endlessm/gnome-shell.git","svn_url":"https://github.com/endlessm/gnome-shell","homepage":null,"size":19153,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"endlessm:master","ref":"master","sha":"32d1361c093d2a38d0cd6f395eaa9cb3e0f25566","user":{"login":"endlessm","id":1930958,"avatar_url":"https://avatars2.githubusercontent.com/u/1930958?v=3","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"repo":{"id":84589501,"name":"gnome-shell","full_name":"endlessm/gnome-shell","owner":{"login":"endlessm","id":1930958,"avatar_url":"https://avatars2.githubusercontent.com/u/1930958?v=3","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/endlessm/gnome-shell","description":"Fork of https://git.gnome.org/browse/gnome-shell","fork":false,"url":"https://api.github.com/repos/endlessm/gnome-shell","forks_url":"https://api.github.com/repos/endlessm/gnome-shell/forks","keys_url":"https://api.github.com/repos/endlessm/gnome-shell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/endlessm/gnome-shell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/endlessm/gnome-shell/teams","hooks_url":"https://api.github.com/repos/endlessm/gnome-shell/hooks","issue_events_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/events{/number}","events_url":"https://api.github.com/repos/endlessm/gnome-shell/events","assignees_url":"https://api.github.com/repos/endlessm/gnome-shell/assignees{/user}","branches_url":"https://api.github.com/repos/endlessm/gnome-shell/branches{/branch}","tags_url":"https://api.github.com/repos/endlessm/gnome-shell/tags","blobs_url":"https://api.github.com/repos/endlessm/gnome-shell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/endlessm/gnome-shell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/endlessm/gnome-shell/git/refs{/sha}","trees_url":"https://api.github.com/repos/endlessm/gnome-shell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/endlessm/gnome-shell/statuses/{sha}","languages_url":"https://api.github.com/repos/endlessm/gnome-shell/languages","stargazers_url":"https://api.github.com/repos/endlessm/gnome-shell/stargazers","contributors_url":"https://api.github.com/repos/endlessm/gnome-shell/contributors","subscribers_url":"https://api.github.com/repos/endlessm/gnome-shell/subscribers","subscription_url":"https://api.github.com/repos/endlessm/gnome-shell/subscription","commits_url":"https://api.github.com/repos/endlessm/gnome-shell/commits{/sha}","git_commits_url":"https://api.github.com/repos/endlessm/gnome-shell/git/commits{/sha}","comments_url":"https://api.github.com/repos/endlessm/gnome-shell/comments{/number}","issue_comment_url":"https://api.github.com/repos/endlessm/gnome-shell/issues/comments{/number}","contents_url":"https://api.github.com/repos/endlessm/gnome-shell/contents/{+path}","compare_url":"https://api.github.com/repos/endlessm/gnome-shell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/endlessm/gnome-shell/merges","archive_url":"https://api.github.com/repos/endlessm/gnome-shell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/endlessm/gnome-shell/downloads","issues_url":"https://api.github.com/repos/endlessm/gnome-shell/issues{/number}","pulls_url":"https://api.github.com/repos/endlessm/gnome-shell/pulls{/number}","milestones_url":"https://api.github.com/repos/endlessm/gnome-shell/milestones{/number}","notifications_url":"https://api.github.com/repos/endlessm/gnome-shell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/endlessm/gnome-shell/labels{/name}","releases_url":"https://api.github.com/repos/endlessm/gnome-shell/releases{/id}","deployments_url":"https://api.github.com/repos/endlessm/gnome-shell/deployments","created_at":"2017-03-10T18:30:50Z","updated_at":"2017-05-04T06:26:43Z","pushed_at":"2017-06-27T19:18:45Z","git_url":"git://github.com/endlessm/gnome-shell.git","ssh_url":"git@github.com:endlessm/gnome-shell.git","clone_url":"https://github.com/endlessm/gnome-shell.git","svn_url":"https://github.com/endlessm/gnome-shell","homepage":null,"size":19153,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/65"},"html":{"href":"https://github.com/endlessm/gnome-shell/pull/65"},"issue":{"href":"https://api.github.com/repos/endlessm/gnome-shell/issues/65"},"comments":{"href":"https://api.github.com/repos/endlessm/gnome-shell/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/endlessm/gnome-shell/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/endlessm/gnome-shell/statuses/9efd936265b4de742bc11f23e2c9af46254d84dc"}}}}
{"actor":{"display_login":"cosimoc"}}