{"action":"created","comment":{"url":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/comments/53864447","id":53864447,"diff_hunk":"@@ -0,0 +1,66 @@\n+// usage:\n+//\n+//   PROJECT_JSON=path/to/projects.json node tasks/uptime-check.js\n+\n+'use strict';\n+\n+const fs = require('fs');\n+const request = require('request');\n+\n+\n+const getProjectJson = () => {","path":"tasks/uptime-check.js","position":11,"original_position":11,"commit_id":"2f7413a62507de2aa76eea99bc170d05ce645fd8","original_commit_id":"2f7413a62507de2aa76eea99bc170d05ce645fd8","user":{"login":"adborden","id":509703,"avatar_url":"https://avatars.githubusercontent.com/u/509703?v=3","gravatar_id":"","url":"https://api.github.com/users/adborden","html_url":"https://github.com/adborden","followers_url":"https://api.github.com/users/adborden/followers","following_url":"https://api.github.com/users/adborden/following{/other_user}","gists_url":"https://api.github.com/users/adborden/gists{/gist_id}","starred_url":"https://api.github.com/users/adborden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adborden/subscriptions","organizations_url":"https://api.github.com/users/adborden/orgs","repos_url":"https://api.github.com/users/adborden/repos","events_url":"https://api.github.com/users/adborden/events{/privacy}","received_events_url":"https://api.github.com/users/adborden/received_events","type":"User","site_admin":false},"body":"Even for ES6, `function` is preferred over arrow functions. e.g.\r\n\r\n```javascript\r\nfunction getProjectJson() {\r\n  // ...\r\n}\r\n```","created_at":"2016-02-23T22:49:15Z","updated_at":"2016-02-23T22:49:15Z","html_url":"https://github.com/18F/concourse-compliance-testing/pull/4#discussion_r53864447","pull_request_url":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/comments/53864447"},"html":{"href":"https://github.com/18F/concourse-compliance-testing/pull/4#discussion_r53864447"},"pull_request":{"href":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/4","id":59611838,"html_url":"https://github.com/18F/concourse-compliance-testing/pull/4","diff_url":"https://github.com/18F/concourse-compliance-testing/pull/4.diff","patch_url":"https://github.com/18F/concourse-compliance-testing/pull/4.patch","issue_url":"https://api.github.com/repos/18F/concourse-compliance-testing/issues/4","number":4,"state":"open","locked":false,"title":"add a health check pipeline","user":{"login":"afeld","id":86842,"avatar_url":"https://avatars.githubusercontent.com/u/86842?v=3","gravatar_id":"","url":"https://api.github.com/users/afeld","html_url":"https://github.com/afeld","followers_url":"https://api.github.com/users/afeld/followers","following_url":"https://api.github.com/users/afeld/following{/other_user}","gists_url":"https://api.github.com/users/afeld/gists{/gist_id}","starred_url":"https://api.github.com/users/afeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afeld/subscriptions","organizations_url":"https://api.github.com/users/afeld/orgs","repos_url":"https://api.github.com/users/afeld/repos","events_url":"https://api.github.com/users/afeld/events{/privacy}","received_events_url":"https://api.github.com/users/afeld/received_events","type":"User","site_admin":false},"body":"Trying to build out an uptime check pipeline, which will check that all the sites listed by the Team API return 200. Mostly, this is a way for me to get familiar with Concourse.","created_at":"2016-02-17T08:45:18Z","updated_at":"2016-02-23T22:49:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c22de1fd4b4b4ce8d209cfb0122d686e54b4914a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/4/commits","review_comments_url":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/4/comments","review_comment_url":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/concourse-compliance-testing/issues/4/comments","statuses_url":"https://api.github.com/repos/18F/concourse-compliance-testing/statuses/2f7413a62507de2aa76eea99bc170d05ce645fd8","head":{"label":"18F:health-check","ref":"health-check","sha":"2f7413a62507de2aa76eea99bc170d05ce645fd8","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":48853336,"name":"concourse-compliance-testing","full_name":"18F/concourse-compliance-testing","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/concourse-compliance-testing","description":"Temporary repo of concourse ci assets for compliance toolkit testing.","fork":false,"url":"https://api.github.com/repos/18F/concourse-compliance-testing","forks_url":"https://api.github.com/repos/18F/concourse-compliance-testing/forks","keys_url":"https://api.github.com/repos/18F/concourse-compliance-testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/concourse-compliance-testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/concourse-compliance-testing/teams","hooks_url":"https://api.github.com/repos/18F/concourse-compliance-testing/hooks","issue_events_url":"https://api.github.com/repos/18F/concourse-compliance-testing/issues/events{/number}","events_url":"https://api.github.com/repos/18F/concourse-compliance-testing/events","assignees_url":"https://api.github.com/repos/18F/concourse-compliance-testing/assignees{/user}","branches_url":"https://api.github.com/repos/18F/concourse-compliance-testing/branches{/branch}","tags_url":"https://api.github.com/repos/18F/concourse-compliance-testing/tags","blobs_url":"https://api.github.com/repos/18F/concourse-compliance-testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/concourse-compliance-testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/concourse-compliance-testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/concourse-compliance-testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/concourse-compliance-testing/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/concourse-compliance-testing/languages","stargazers_url":"https://api.github.com/repos/18F/concourse-compliance-testing/stargazers","contributors_url":"https://api.github.com/repos/18F/concourse-compliance-testing/contributors","subscribers_url":"https://api.github.com/repos/18F/concourse-compliance-testing/subscribers","subscription_url":"https://api.github.com/repos/18F/concourse-compliance-testing/subscription","commits_url":"https://api.github.com/repos/18F/concourse-compliance-testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/concourse-compliance-testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/concourse-compliance-testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/concourse-compliance-testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/concourse-compliance-testing/contents/{+path}","compare_url":"https://api.github.com/repos/18F/concourse-compliance-testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/concourse-compliance-testing/merges","archive_url":"https://api.github.com/repos/18F/concourse-compliance-testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/concourse-compliance-testing/downloads","issues_url":"https://api.github.com/repos/18F/concourse-compliance-testing/issues{/number}","pulls_url":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/concourse-compliance-testing/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/concourse-compliance-testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/concourse-compliance-testing/labels{/name}","releases_url":"https://api.github.com/repos/18F/concourse-compliance-testing/releases{/id}","deployments_url":"https://api.github.com/repos/18F/concourse-compliance-testing/deployments","created_at":"2015-12-31T15:15:03Z","updated_at":"2016-02-22T19:55:55Z","pushed_at":"2016-02-22T23:29:41Z","git_url":"git://github.com/18F/concourse-compliance-testing.git","ssh_url":"git@github.com:18F/concourse-compliance-testing.git","clone_url":"https://github.com/18F/concourse-compliance-testing.git","svn_url":"https://github.com/18F/concourse-compliance-testing","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"18F:master","ref":"master","sha":"322cfbd603221985ad9372ae0eed2526368192d2","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":48853336,"name":"concourse-compliance-testing","full_name":"18F/concourse-compliance-testing","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/concourse-compliance-testing","description":"Temporary repo of concourse ci assets for compliance toolkit testing.","fork":false,"url":"https://api.github.com/repos/18F/concourse-compliance-testing","forks_url":"https://api.github.com/repos/18F/concourse-compliance-testing/forks","keys_url":"https://api.github.com/repos/18F/concourse-compliance-testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/concourse-compliance-testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/concourse-compliance-testing/teams","hooks_url":"https://api.github.com/repos/18F/concourse-compliance-testing/hooks","issue_events_url":"https://api.github.com/repos/18F/concourse-compliance-testing/issues/events{/number}","events_url":"https://api.github.com/repos/18F/concourse-compliance-testing/events","assignees_url":"https://api.github.com/repos/18F/concourse-compliance-testing/assignees{/user}","branches_url":"https://api.github.com/repos/18F/concourse-compliance-testing/branches{/branch}","tags_url":"https://api.github.com/repos/18F/concourse-compliance-testing/tags","blobs_url":"https://api.github.com/repos/18F/concourse-compliance-testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/concourse-compliance-testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/concourse-compliance-testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/concourse-compliance-testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/concourse-compliance-testing/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/concourse-compliance-testing/languages","stargazers_url":"https://api.github.com/repos/18F/concourse-compliance-testing/stargazers","contributors_url":"https://api.github.com/repos/18F/concourse-compliance-testing/contributors","subscribers_url":"https://api.github.com/repos/18F/concourse-compliance-testing/subscribers","subscription_url":"https://api.github.com/repos/18F/concourse-compliance-testing/subscription","commits_url":"https://api.github.com/repos/18F/concourse-compliance-testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/concourse-compliance-testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/concourse-compliance-testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/concourse-compliance-testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/concourse-compliance-testing/contents/{+path}","compare_url":"https://api.github.com/repos/18F/concourse-compliance-testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/concourse-compliance-testing/merges","archive_url":"https://api.github.com/repos/18F/concourse-compliance-testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/concourse-compliance-testing/downloads","issues_url":"https://api.github.com/repos/18F/concourse-compliance-testing/issues{/number}","pulls_url":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/concourse-compliance-testing/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/concourse-compliance-testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/concourse-compliance-testing/labels{/name}","releases_url":"https://api.github.com/repos/18F/concourse-compliance-testing/releases{/id}","deployments_url":"https://api.github.com/repos/18F/concourse-compliance-testing/deployments","created_at":"2015-12-31T15:15:03Z","updated_at":"2016-02-22T19:55:55Z","pushed_at":"2016-02-22T23:29:41Z","git_url":"git://github.com/18F/concourse-compliance-testing.git","ssh_url":"git@github.com:18F/concourse-compliance-testing.git","clone_url":"https://github.com/18F/concourse-compliance-testing.git","svn_url":"https://github.com/18F/concourse-compliance-testing","homepage":null,"size":32,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/4"},"html":{"href":"https://github.com/18F/concourse-compliance-testing/pull/4"},"issue":{"href":"https://api.github.com/repos/18F/concourse-compliance-testing/issues/4"},"comments":{"href":"https://api.github.com/repos/18F/concourse-compliance-testing/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/concourse-compliance-testing/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/18F/concourse-compliance-testing/statuses/2f7413a62507de2aa76eea99bc170d05ce645fd8"}}}}