{"action":"created","comment":{"url":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/comments/121136046","pull_request_review_id":43165222,"id":121136046,"diff_hunk":"@@ -0,0 +1,87 @@\n+import org.apache.tools.ant.taskdefs.condition.Os\n+import org.apache.commons.io.FileUtils\n+\n+buildscript {\n+    repositories {\n+        jcenter()\n+    }\n+    dependencies {\n+        classpath \"commons-io:commons-io:2.5\"\n+    }\n+}\n+\n+apply plugin: 'groovy'\n+\n+ext {\n+    // The drivers we want to use\n+    drivers = [\"firefox\", \"chrome\", \"phantomJs\"]\n+\n+    ext {\n+        chromeDriverVersion = '2.29'\n+    }\n+}\n+\n+repositories {\n+    jcenter()\n+}\n+\n+dependencies {\n+    testCompile \"org.gebish:geb-core:1.1.1\"\n+    testCompile 'org.seleniumhq.selenium:selenium-chrome-driver:3.4.0'\n+    testCompile \"org.seleniumhq.selenium:selenium-support:2.52.0\"\n+    testCompile \"io.ratpack:ratpack-groovy-test:1.5.0-rc-2\"\n+    testCompile \"org.gebish:geb-junit4:1.1.1\"\n+    testRuntime 'org.slf4j:slf4j-simple:1.7.25'\n+}\n+\n+task downloadChromeDriver {\n+    def outputFile = file(\"$buildDir/webdriver/chromedriver.zip\")\n+    inputs.property(\"chromeDriverVersion\", chromeDriverVersion)\n+    outputs.file(outputFile)\n+\n+    doLast {\n+        def driverOsFilenamePart\n+        if (Os.isFamily(Os.FAMILY_WINDOWS)) {\n+            driverOsFilenamePart = \"win32\"\n+        } else if (Os.isFamily(Os.FAMILY_MAC)) {\n+            driverOsFilenamePart = \"mac64\"\n+        } else if (Os.isFamily(Os.FAMILY_UNIX)) {\n+            driverOsFilenamePart = Os.isArch(\"amd64\") ? \"linux64\" : \"linux32\"\n+        }\n+        FileUtils.copyURLToFile(new URL(\"http://chromedriver.storage.googleapis.com/${chromeDriverVersion}/chromedriver_${driverOsFilenamePart}.zip\"), outputFile)\n+    }\n+}\n+\n+task unzipChromeDriver(type: Copy) {\n+    def outputDir = file(\"$buildDir/webdriver/chromedriver\")\n+    dependsOn downloadChromeDriver\n+    outputs.dir(outputDir)\n+\n+    from(zipTree(downloadChromeDriver.outputs.files.singleFile))\n+    into(outputDir)\n+}\n+\n+test {\n+    ext.screenshotDir = file('build/screenshots')","path":"screenshots/build.gradle","position":null,"original_position":65,"commit_id":"12f0c65d1e94702bf167dd9bb1953868bbc8bb3f","original_commit_id":"1bcb2319be24ae0ba6a5db941f0b553d00e87a25","user":{"login":"wolfs","id":423186,"avatar_url":"https://avatars2.githubusercontent.com/u/423186?v=3","gravatar_id":"","url":"https://api.github.com/users/wolfs","html_url":"https://github.com/wolfs","followers_url":"https://api.github.com/users/wolfs/followers","following_url":"https://api.github.com/users/wolfs/following{/other_user}","gists_url":"https://api.github.com/users/wolfs/gists{/gist_id}","starred_url":"https://api.github.com/users/wolfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolfs/subscriptions","organizations_url":"https://api.github.com/users/wolfs/orgs","repos_url":"https://api.github.com/users/wolfs/repos","events_url":"https://api.github.com/users/wolfs/events{/privacy}","received_events_url":"https://api.github.com/users/wolfs/received_events","type":"User","site_admin":false},"body":"fixed.","created_at":"2017-06-09T14:13:51Z","updated_at":"2017-06-09T14:13:51Z","html_url":"https://github.com/gradle-guides/build-cache-practices/pull/6#discussion_r121136046","pull_request_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/comments/121136046"},"html":{"href":"https://github.com/gradle-guides/build-cache-practices/pull/6#discussion_r121136046"},"pull_request":{"href":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/6","id":124864722,"html_url":"https://github.com/gradle-guides/build-cache-practices/pull/6","diff_url":"https://github.com/gradle-guides/build-cache-practices/pull/6.diff","patch_url":"https://github.com/gradle-guides/build-cache-practices/pull/6.patch","issue_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/issues/6","number":6,"state":"open","locked":false,"title":"Add automatic screenshot generation","user":{"login":"wolfs","id":423186,"avatar_url":"https://avatars2.githubusercontent.com/u/423186?v=3","gravatar_id":"","url":"https://api.github.com/users/wolfs","html_url":"https://github.com/wolfs","followers_url":"https://api.github.com/users/wolfs/followers","following_url":"https://api.github.com/users/wolfs/following{/other_user}","gists_url":"https://api.github.com/users/wolfs/gists{/gist_id}","starred_url":"https://api.github.com/users/wolfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolfs/subscriptions","organizations_url":"https://api.github.com/users/wolfs/orgs","repos_url":"https://api.github.com/users/wolfs/repos","events_url":"https://api.github.com/users/wolfs/events{/privacy}","received_events_url":"https://api.github.com/users/wolfs/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-09T13:16:19Z","updated_at":"2017-06-09T14:13:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ad81f783d333049e5f6fa592b19010ae9076df3","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/6/commits","review_comments_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/6/comments","review_comment_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/issues/6/comments","statuses_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/statuses/12f0c65d1e94702bf167dd9bb1953868bbc8bb3f","head":{"label":"gradle-guides:sw/auto-screenshot","ref":"sw/auto-screenshot","sha":"12f0c65d1e94702bf167dd9bb1953868bbc8bb3f","user":{"login":"gradle-guides","id":20332826,"avatar_url":"https://avatars3.githubusercontent.com/u/20332826?v=3","gravatar_id":"","url":"https://api.github.com/users/gradle-guides","html_url":"https://github.com/gradle-guides","followers_url":"https://api.github.com/users/gradle-guides/followers","following_url":"https://api.github.com/users/gradle-guides/following{/other_user}","gists_url":"https://api.github.com/users/gradle-guides/gists{/gist_id}","starred_url":"https://api.github.com/users/gradle-guides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradle-guides/subscriptions","organizations_url":"https://api.github.com/users/gradle-guides/orgs","repos_url":"https://api.github.com/users/gradle-guides/repos","events_url":"https://api.github.com/users/gradle-guides/events{/privacy}","received_events_url":"https://api.github.com/users/gradle-guides/received_events","type":"Organization","site_admin":false},"repo":{"id":91064616,"name":"build-cache-practices","full_name":"gradle-guides/build-cache-practices","owner":{"login":"gradle-guides","id":20332826,"avatar_url":"https://avatars3.githubusercontent.com/u/20332826?v=3","gravatar_id":"","url":"https://api.github.com/users/gradle-guides","html_url":"https://github.com/gradle-guides","followers_url":"https://api.github.com/users/gradle-guides/followers","following_url":"https://api.github.com/users/gradle-guides/following{/other_user}","gists_url":"https://api.github.com/users/gradle-guides/gists{/gist_id}","starred_url":"https://api.github.com/users/gradle-guides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradle-guides/subscriptions","organizations_url":"https://api.github.com/users/gradle-guides/orgs","repos_url":"https://api.github.com/users/gradle-guides/repos","events_url":"https://api.github.com/users/gradle-guides/events{/privacy}","received_events_url":"https://api.github.com/users/gradle-guides/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gradle-guides/build-cache-practices","description":"Build Cache Practises","fork":false,"url":"https://api.github.com/repos/gradle-guides/build-cache-practices","forks_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/forks","keys_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/teams","hooks_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/hooks","issue_events_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/issues/events{/number}","events_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/events","assignees_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/assignees{/user}","branches_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/branches{/branch}","tags_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/tags","blobs_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/git/refs{/sha}","trees_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/statuses/{sha}","languages_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/languages","stargazers_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/stargazers","contributors_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/contributors","subscribers_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/subscribers","subscription_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/subscription","commits_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/commits{/sha}","git_commits_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/git/commits{/sha}","comments_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/comments{/number}","issue_comment_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/issues/comments{/number}","contents_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/contents/{+path}","compare_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/merges","archive_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/downloads","issues_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/issues{/number}","pulls_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls{/number}","milestones_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/milestones{/number}","notifications_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/labels{/name}","releases_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/releases{/id}","deployments_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/deployments","created_at":"2017-05-12T07:36:46Z","updated_at":"2017-05-12T07:50:33Z","pushed_at":"2017-06-09T14:13:12Z","git_url":"git://github.com/gradle-guides/build-cache-practices.git","ssh_url":"git@github.com:gradle-guides/build-cache-practices.git","clone_url":"https://github.com/gradle-guides/build-cache-practices.git","svn_url":"https://github.com/gradle-guides/build-cache-practices","homepage":"https://guides.gradle.org/build-cache-practices","size":2589,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"gradle-guides:master","ref":"master","sha":"832359025166b5c3a1cd6c7ac86b44551e110975","user":{"login":"gradle-guides","id":20332826,"avatar_url":"https://avatars3.githubusercontent.com/u/20332826?v=3","gravatar_id":"","url":"https://api.github.com/users/gradle-guides","html_url":"https://github.com/gradle-guides","followers_url":"https://api.github.com/users/gradle-guides/followers","following_url":"https://api.github.com/users/gradle-guides/following{/other_user}","gists_url":"https://api.github.com/users/gradle-guides/gists{/gist_id}","starred_url":"https://api.github.com/users/gradle-guides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradle-guides/subscriptions","organizations_url":"https://api.github.com/users/gradle-guides/orgs","repos_url":"https://api.github.com/users/gradle-guides/repos","events_url":"https://api.github.com/users/gradle-guides/events{/privacy}","received_events_url":"https://api.github.com/users/gradle-guides/received_events","type":"Organization","site_admin":false},"repo":{"id":91064616,"name":"build-cache-practices","full_name":"gradle-guides/build-cache-practices","owner":{"login":"gradle-guides","id":20332826,"avatar_url":"https://avatars3.githubusercontent.com/u/20332826?v=3","gravatar_id":"","url":"https://api.github.com/users/gradle-guides","html_url":"https://github.com/gradle-guides","followers_url":"https://api.github.com/users/gradle-guides/followers","following_url":"https://api.github.com/users/gradle-guides/following{/other_user}","gists_url":"https://api.github.com/users/gradle-guides/gists{/gist_id}","starred_url":"https://api.github.com/users/gradle-guides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradle-guides/subscriptions","organizations_url":"https://api.github.com/users/gradle-guides/orgs","repos_url":"https://api.github.com/users/gradle-guides/repos","events_url":"https://api.github.com/users/gradle-guides/events{/privacy}","received_events_url":"https://api.github.com/users/gradle-guides/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gradle-guides/build-cache-practices","description":"Build Cache Practises","fork":false,"url":"https://api.github.com/repos/gradle-guides/build-cache-practices","forks_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/forks","keys_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/teams","hooks_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/hooks","issue_events_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/issues/events{/number}","events_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/events","assignees_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/assignees{/user}","branches_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/branches{/branch}","tags_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/tags","blobs_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/git/refs{/sha}","trees_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/statuses/{sha}","languages_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/languages","stargazers_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/stargazers","contributors_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/contributors","subscribers_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/subscribers","subscription_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/subscription","commits_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/commits{/sha}","git_commits_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/git/commits{/sha}","comments_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/comments{/number}","issue_comment_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/issues/comments{/number}","contents_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/contents/{+path}","compare_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/merges","archive_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/downloads","issues_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/issues{/number}","pulls_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls{/number}","milestones_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/milestones{/number}","notifications_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/labels{/name}","releases_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/releases{/id}","deployments_url":"https://api.github.com/repos/gradle-guides/build-cache-practices/deployments","created_at":"2017-05-12T07:36:46Z","updated_at":"2017-05-12T07:50:33Z","pushed_at":"2017-06-09T14:13:12Z","git_url":"git://github.com/gradle-guides/build-cache-practices.git","ssh_url":"git@github.com:gradle-guides/build-cache-practices.git","clone_url":"https://github.com/gradle-guides/build-cache-practices.git","svn_url":"https://github.com/gradle-guides/build-cache-practices","homepage":"https://guides.gradle.org/build-cache-practices","size":2589,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/6"},"html":{"href":"https://github.com/gradle-guides/build-cache-practices/pull/6"},"issue":{"href":"https://api.github.com/repos/gradle-guides/build-cache-practices/issues/6"},"comments":{"href":"https://api.github.com/repos/gradle-guides/build-cache-practices/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gradle-guides/build-cache-practices/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/gradle-guides/build-cache-practices/statuses/12f0c65d1e94702bf167dd9bb1953868bbc8bb3f"}}}}
{"actor":{"display_login":"wolfs"}}