{"action":"created","comment":{"url":"https://api.github.com/repos/concourse/rfcs/pulls/comments/193764743","pull_request_review_id":126803132,"id":193764743,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Mzc2NDc0Mw==","diff_hunk":"@@ -0,0 +1,104 @@\n+#!/usr/bin/env ruby\n+\n+require \"json\"\n+require \"git\"\n+\n+# $request = JSON.parse(STDIN.read, symbolize_names: true)\n+\n+def commit_versions(log)\n+  log.collect do |c|\n+    {\n+      version: {ref: c.sha},\n+      metadata: [\n+        {name: \"author\", value: c.author.name},\n+        {name: \"author_date\", value: c.author_date},\n+        {name: \"commit\", value: c.sha},\n+        {name: \"committer\", value: c.committer.name},\n+        {name: \"committer_date\", value: c.committer_date},\n+        {name: \"message\", value: c.message}\n+      ]\n+    }\n+  end\n+end\n+\n+case ARGV[0]\n+when \"check\"\n+  $request = {\n+    config: {uri: \"https://github.com/vito/booklit\"},\n+    from: {master: {ref: \"40bc6986197e411471d306bb8eb3a21c5b5f9d26\"}}","path":"01-resources-v2/git-example/artifact","position":28,"original_position":28,"commit_id":"5551f0398d5ccb3b14a4cee5a831395cc70e66c4","original_commit_id":"217f5754433de8a702e46c1fb8a90621bb6c7816","user":{"login":"vito","id":1880,"node_id":"MDQ6VXNlcjE4ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/1880?v=4","gravatar_id":"","url":"https://api.github.com/users/vito","html_url":"https://github.com/vito","followers_url":"https://api.github.com/users/vito/followers","following_url":"https://api.github.com/users/vito/following{/other_user}","gists_url":"https://api.github.com/users/vito/gists{/gist_id}","starred_url":"https://api.github.com/users/vito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vito/subscriptions","organizations_url":"https://api.github.com/users/vito/orgs","repos_url":"https://api.github.com/users/vito/repos","events_url":"https://api.github.com/users/vito/events{/privacy}","received_events_url":"https://api.github.com/users/vito/received_events","type":"User","site_admin":false},"body":"Yep. I'll update the example to be more clear.","created_at":"2018-06-07T14:21:56Z","updated_at":"2018-06-07T14:21:56Z","html_url":"https://github.com/concourse/rfcs/pull/1#discussion_r193764743","pull_request_url":"https://api.github.com/repos/concourse/rfcs/pulls/1","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/concourse/rfcs/pulls/comments/193764743"},"html":{"href":"https://github.com/concourse/rfcs/pull/1#discussion_r193764743"},"pull_request":{"href":"https://api.github.com/repos/concourse/rfcs/pulls/1"}},"in_reply_to_id":192882203},"pull_request":{"url":"https://api.github.com/repos/concourse/rfcs/pulls/1","id":180722869,"node_id":"MDExOlB1bGxSZXF1ZXN0MTgwNzIyODY5","html_url":"https://github.com/concourse/rfcs/pull/1","diff_url":"https://github.com/concourse/rfcs/pull/1.diff","patch_url":"https://github.com/concourse/rfcs/pull/1.patch","issue_url":"https://api.github.com/repos/concourse/rfcs/issues/1","number":1,"state":"open","locked":false,"title":"RFC: Resources v2","user":{"login":"vito","id":1880,"node_id":"MDQ6VXNlcjE4ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/1880?v=4","gravatar_id":"","url":"https://api.github.com/users/vito","html_url":"https://github.com/vito","followers_url":"https://api.github.com/users/vito/followers","following_url":"https://api.github.com/users/vito/following{/other_user}","gists_url":"https://api.github.com/users/vito/gists{/gist_id}","starred_url":"https://api.github.com/users/vito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vito/subscriptions","organizations_url":"https://api.github.com/users/vito/orgs","repos_url":"https://api.github.com/users/vito/repos","events_url":"https://api.github.com/users/vito/events{/privacy}","received_events_url":"https://api.github.com/users/vito/received_events","type":"User","site_admin":false},"body":"[Rendered](https://github.com/vito/rfcs/blob/resources-v2/01-resources-v2/proposal.md)\r\n\r\nStatus: rough draft, still have a few decisions to make, and the performance/architectural implications have not yet been deeply thought out.\r\n\r\nThis is a very large proposal, heavily influenced by concourse/concourse#1707, concourse/concourse#1052, and with a lot of prior planning in concourse/concourse#534. The discussion in 534 was growing stale, which was the catalyst for this new RFC format. Please leave feedback on individual lines instead of commenting directly so that the number of open discussion threads dwindles down as the proposal stabilizes and improves.","created_at":"2018-04-10T20:46:55Z","updated_at":"2018-06-07T14:21:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1246a983f39a3acdc208d658480c2ba83131b2d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/concourse/rfcs/pulls/1/commits","review_comments_url":"https://api.github.com/repos/concourse/rfcs/pulls/1/comments","review_comment_url":"https://api.github.com/repos/concourse/rfcs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/concourse/rfcs/issues/1/comments","statuses_url":"https://api.github.com/repos/concourse/rfcs/statuses/5551f0398d5ccb3b14a4cee5a831395cc70e66c4","head":{"label":"vito:resources-v2","ref":"resources-v2","sha":"5551f0398d5ccb3b14a4cee5a831395cc70e66c4","user":{"login":"vito","id":1880,"node_id":"MDQ6VXNlcjE4ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/1880?v=4","gravatar_id":"","url":"https://api.github.com/users/vito","html_url":"https://github.com/vito","followers_url":"https://api.github.com/users/vito/followers","following_url":"https://api.github.com/users/vito/following{/other_user}","gists_url":"https://api.github.com/users/vito/gists{/gist_id}","starred_url":"https://api.github.com/users/vito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vito/subscriptions","organizations_url":"https://api.github.com/users/vito/orgs","repos_url":"https://api.github.com/users/vito/repos","events_url":"https://api.github.com/users/vito/events{/privacy}","received_events_url":"https://api.github.com/users/vito/received_events","type":"User","site_admin":false},"repo":{"id":128992758,"node_id":"MDEwOlJlcG9zaXRvcnkxMjg5OTI3NTg=","name":"rfcs","full_name":"vito/rfcs","owner":{"login":"vito","id":1880,"node_id":"MDQ6VXNlcjE4ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/1880?v=4","gravatar_id":"","url":"https://api.github.com/users/vito","html_url":"https://github.com/vito","followers_url":"https://api.github.com/users/vito/followers","following_url":"https://api.github.com/users/vito/following{/other_user}","gists_url":"https://api.github.com/users/vito/gists{/gist_id}","starred_url":"https://api.github.com/users/vito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vito/subscriptions","organizations_url":"https://api.github.com/users/vito/orgs","repos_url":"https://api.github.com/users/vito/repos","events_url":"https://api.github.com/users/vito/events{/privacy}","received_events_url":"https://api.github.com/users/vito/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vito/rfcs","description":"structured planning for architectural proposals","fork":true,"url":"https://api.github.com/repos/vito/rfcs","forks_url":"https://api.github.com/repos/vito/rfcs/forks","keys_url":"https://api.github.com/repos/vito/rfcs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vito/rfcs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vito/rfcs/teams","hooks_url":"https://api.github.com/repos/vito/rfcs/hooks","issue_events_url":"https://api.github.com/repos/vito/rfcs/issues/events{/number}","events_url":"https://api.github.com/repos/vito/rfcs/events","assignees_url":"https://api.github.com/repos/vito/rfcs/assignees{/user}","branches_url":"https://api.github.com/repos/vito/rfcs/branches{/branch}","tags_url":"https://api.github.com/repos/vito/rfcs/tags","blobs_url":"https://api.github.com/repos/vito/rfcs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vito/rfcs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vito/rfcs/git/refs{/sha}","trees_url":"https://api.github.com/repos/vito/rfcs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vito/rfcs/statuses/{sha}","languages_url":"https://api.github.com/repos/vito/rfcs/languages","stargazers_url":"https://api.github.com/repos/vito/rfcs/stargazers","contributors_url":"https://api.github.com/repos/vito/rfcs/contributors","subscribers_url":"https://api.github.com/repos/vito/rfcs/subscribers","subscription_url":"https://api.github.com/repos/vito/rfcs/subscription","commits_url":"https://api.github.com/repos/vito/rfcs/commits{/sha}","git_commits_url":"https://api.github.com/repos/vito/rfcs/git/commits{/sha}","comments_url":"https://api.github.com/repos/vito/rfcs/comments{/number}","issue_comment_url":"https://api.github.com/repos/vito/rfcs/issues/comments{/number}","contents_url":"https://api.github.com/repos/vito/rfcs/contents/{+path}","compare_url":"https://api.github.com/repos/vito/rfcs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vito/rfcs/merges","archive_url":"https://api.github.com/repos/vito/rfcs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vito/rfcs/downloads","issues_url":"https://api.github.com/repos/vito/rfcs/issues{/number}","pulls_url":"https://api.github.com/repos/vito/rfcs/pulls{/number}","milestones_url":"https://api.github.com/repos/vito/rfcs/milestones{/number}","notifications_url":"https://api.github.com/repos/vito/rfcs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vito/rfcs/labels{/name}","releases_url":"https://api.github.com/repos/vito/rfcs/releases{/id}","deployments_url":"https://api.github.com/repos/vito/rfcs/deployments","created_at":"2018-04-10T20:45:13Z","updated_at":"2018-04-10T20:45:15Z","pushed_at":"2018-06-04T20:27:36Z","git_url":"git://github.com/vito/rfcs.git","ssh_url":"git@github.com:vito/rfcs.git","clone_url":"https://github.com/vito/rfcs.git","svn_url":"https://github.com/vito/rfcs","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"concourse:master","ref":"master","sha":"5a052ba6438d754f73252283c6b6429f2a74dbff","user":{"login":"concourse","id":7809479,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4MDk0Nzk=","avatar_url":"https://avatars1.githubusercontent.com/u/7809479?v=4","gravatar_id":"","url":"https://api.github.com/users/concourse","html_url":"https://github.com/concourse","followers_url":"https://api.github.com/users/concourse/followers","following_url":"https://api.github.com/users/concourse/following{/other_user}","gists_url":"https://api.github.com/users/concourse/gists{/gist_id}","starred_url":"https://api.github.com/users/concourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concourse/subscriptions","organizations_url":"https://api.github.com/users/concourse/orgs","repos_url":"https://api.github.com/users/concourse/repos","events_url":"https://api.github.com/users/concourse/events{/privacy}","received_events_url":"https://api.github.com/users/concourse/received_events","type":"Organization","site_admin":false},"repo":{"id":127932765,"node_id":"MDEwOlJlcG9zaXRvcnkxMjc5MzI3NjU=","name":"rfcs","full_name":"concourse/rfcs","owner":{"login":"concourse","id":7809479,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4MDk0Nzk=","avatar_url":"https://avatars1.githubusercontent.com/u/7809479?v=4","gravatar_id":"","url":"https://api.github.com/users/concourse","html_url":"https://github.com/concourse","followers_url":"https://api.github.com/users/concourse/followers","following_url":"https://api.github.com/users/concourse/following{/other_user}","gists_url":"https://api.github.com/users/concourse/gists{/gist_id}","starred_url":"https://api.github.com/users/concourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/concourse/subscriptions","organizations_url":"https://api.github.com/users/concourse/orgs","repos_url":"https://api.github.com/users/concourse/repos","events_url":"https://api.github.com/users/concourse/events{/privacy}","received_events_url":"https://api.github.com/users/concourse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/concourse/rfcs","description":"structured planning for architectural proposals","fork":false,"url":"https://api.github.com/repos/concourse/rfcs","forks_url":"https://api.github.com/repos/concourse/rfcs/forks","keys_url":"https://api.github.com/repos/concourse/rfcs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/concourse/rfcs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/concourse/rfcs/teams","hooks_url":"https://api.github.com/repos/concourse/rfcs/hooks","issue_events_url":"https://api.github.com/repos/concourse/rfcs/issues/events{/number}","events_url":"https://api.github.com/repos/concourse/rfcs/events","assignees_url":"https://api.github.com/repos/concourse/rfcs/assignees{/user}","branches_url":"https://api.github.com/repos/concourse/rfcs/branches{/branch}","tags_url":"https://api.github.com/repos/concourse/rfcs/tags","blobs_url":"https://api.github.com/repos/concourse/rfcs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/concourse/rfcs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/concourse/rfcs/git/refs{/sha}","trees_url":"https://api.github.com/repos/concourse/rfcs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/concourse/rfcs/statuses/{sha}","languages_url":"https://api.github.com/repos/concourse/rfcs/languages","stargazers_url":"https://api.github.com/repos/concourse/rfcs/stargazers","contributors_url":"https://api.github.com/repos/concourse/rfcs/contributors","subscribers_url":"https://api.github.com/repos/concourse/rfcs/subscribers","subscription_url":"https://api.github.com/repos/concourse/rfcs/subscription","commits_url":"https://api.github.com/repos/concourse/rfcs/commits{/sha}","git_commits_url":"https://api.github.com/repos/concourse/rfcs/git/commits{/sha}","comments_url":"https://api.github.com/repos/concourse/rfcs/comments{/number}","issue_comment_url":"https://api.github.com/repos/concourse/rfcs/issues/comments{/number}","contents_url":"https://api.github.com/repos/concourse/rfcs/contents/{+path}","compare_url":"https://api.github.com/repos/concourse/rfcs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/concourse/rfcs/merges","archive_url":"https://api.github.com/repos/concourse/rfcs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/concourse/rfcs/downloads","issues_url":"https://api.github.com/repos/concourse/rfcs/issues{/number}","pulls_url":"https://api.github.com/repos/concourse/rfcs/pulls{/number}","milestones_url":"https://api.github.com/repos/concourse/rfcs/milestones{/number}","notifications_url":"https://api.github.com/repos/concourse/rfcs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/concourse/rfcs/labels{/name}","releases_url":"https://api.github.com/repos/concourse/rfcs/releases{/id}","deployments_url":"https://api.github.com/repos/concourse/rfcs/deployments","created_at":"2018-04-03T15:55:26Z","updated_at":"2018-04-27T14:43:30Z","pushed_at":"2018-06-04T20:27:37Z","git_url":"git://github.com/concourse/rfcs.git","ssh_url":"git@github.com:concourse/rfcs.git","clone_url":"https://github.com/concourse/rfcs.git","svn_url":"https://github.com/concourse/rfcs","homepage":null,"size":0,"stargazers_count":3,"watchers_count":3,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":3,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/concourse/rfcs/pulls/1"},"html":{"href":"https://github.com/concourse/rfcs/pull/1"},"issue":{"href":"https://api.github.com/repos/concourse/rfcs/issues/1"},"comments":{"href":"https://api.github.com/repos/concourse/rfcs/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/concourse/rfcs/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/concourse/rfcs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/concourse/rfcs/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/concourse/rfcs/statuses/5551f0398d5ccb3b14a4cee5a831395cc70e66c4"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"vito"}}