{"action":"created","comment":{"url":"https://api.github.com/repos/namely/broadway/pulls/comments/56206694","id":56206694,"diff_hunk":"@@ -45,6 +45,24 @@ func Get(playbookId, id string) (Instance, error) {\n \treturn instance, nil\n }\n \n+func List(s store.Store, playbookId string) ([]Instance, error) {\n+\tinstances := []Instance{}\n+\tinstanceKeysValues := s.Values(\"/broadway/instances/\" + playbookId)\n+\tfor _, v := range instanceKeysValues {\n+\t\tvar attrs InstanceAttributes\n+\t\terr := json.Unmarshal([]byte(v), &attrs)\n+\t\tif err != nil {\n+\t\t\treturn nil, err\n+\t\t}\n+\t\ti := &baseInstance{\n+\t\t\tattributes: &attrs,\n+\t\t\tstore:      s,\n+\t\t}\n+\t\tinstances = append(instances, i)","path":"instance/base.go","position":17,"original_position":17,"commit_id":"0cbd966495c4d628348d8eaa308a2b863f0b9f00","original_commit_id":"0cbd966495c4d628348d8eaa308a2b863f0b9f00","user":{"login":"macat","id":6265,"avatar_url":"https://avatars.githubusercontent.com/u/6265?v=3","gravatar_id":"","url":"https://api.github.com/users/macat","html_url":"https://github.com/macat","followers_url":"https://api.github.com/users/macat/followers","following_url":"https://api.github.com/users/macat/following{/other_user}","gists_url":"https://api.github.com/users/macat/gists{/gist_id}","starred_url":"https://api.github.com/users/macat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macat/subscriptions","organizations_url":"https://api.github.com/users/macat/orgs","repos_url":"https://api.github.com/users/macat/repos","events_url":"https://api.github.com/users/macat/events{/privacy}","received_events_url":"https://api.github.com/users/macat/received_events","type":"User","site_admin":false},"body":"`baseInstance` implements the `Instance` interface.","created_at":"2016-03-15T17:37:58Z","updated_at":"2016-03-15T17:37:58Z","html_url":"https://github.com/namely/broadway/pull/14#discussion_r56206694","pull_request_url":"https://api.github.com/repos/namely/broadway/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/namely/broadway/pulls/comments/56206694"},"html":{"href":"https://github.com/namely/broadway/pull/14#discussion_r56206694"},"pull_request":{"href":"https://api.github.com/repos/namely/broadway/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/namely/broadway/pulls/14","id":62903310,"html_url":"https://github.com/namely/broadway/pull/14","diff_url":"https://github.com/namely/broadway/pull/14.diff","patch_url":"https://github.com/namely/broadway/pull/14.patch","issue_url":"https://api.github.com/repos/namely/broadway/issues/14","number":14,"state":"open","locked":false,"title":"Implement API calls: GET instance, GET instances","user":{"login":"therealplato","id":764725,"avatar_url":"https://avatars.githubusercontent.com/u/764725?v=3","gravatar_id":"","url":"https://api.github.com/users/therealplato","html_url":"https://github.com/therealplato","followers_url":"https://api.github.com/users/therealplato/followers","following_url":"https://api.github.com/users/therealplato/following{/other_user}","gists_url":"https://api.github.com/users/therealplato/gists{/gist_id}","starred_url":"https://api.github.com/users/therealplato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therealplato/subscriptions","organizations_url":"https://api.github.com/users/therealplato/orgs","repos_url":"https://api.github.com/users/therealplato/repos","events_url":"https://api.github.com/users/therealplato/events{/privacy}","received_events_url":"https://api.github.com/users/therealplato/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-15T13:16:34Z","updated_at":"2016-03-15T17:37:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae683dac7366f9f1e614fa01bfd166241afeb393","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/namely/broadway/pulls/14/commits","review_comments_url":"https://api.github.com/repos/namely/broadway/pulls/14/comments","review_comment_url":"https://api.github.com/repos/namely/broadway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/namely/broadway/issues/14/comments","statuses_url":"https://api.github.com/repos/namely/broadway/statuses/0cbd966495c4d628348d8eaa308a2b863f0b9f00","head":{"label":"therealplato:get-one-instance","ref":"get-one-instance","sha":"0cbd966495c4d628348d8eaa308a2b863f0b9f00","user":{"login":"therealplato","id":764725,"avatar_url":"https://avatars.githubusercontent.com/u/764725?v=3","gravatar_id":"","url":"https://api.github.com/users/therealplato","html_url":"https://github.com/therealplato","followers_url":"https://api.github.com/users/therealplato/followers","following_url":"https://api.github.com/users/therealplato/following{/other_user}","gists_url":"https://api.github.com/users/therealplato/gists{/gist_id}","starred_url":"https://api.github.com/users/therealplato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therealplato/subscriptions","organizations_url":"https://api.github.com/users/therealplato/orgs","repos_url":"https://api.github.com/users/therealplato/repos","events_url":"https://api.github.com/users/therealplato/events{/privacy}","received_events_url":"https://api.github.com/users/therealplato/received_events","type":"User","site_admin":false},"repo":{"id":53442542,"name":"broadway","full_name":"therealplato/broadway","owner":{"login":"therealplato","id":764725,"avatar_url":"https://avatars.githubusercontent.com/u/764725?v=3","gravatar_id":"","url":"https://api.github.com/users/therealplato","html_url":"https://github.com/therealplato","followers_url":"https://api.github.com/users/therealplato/followers","following_url":"https://api.github.com/users/therealplato/following{/other_user}","gists_url":"https://api.github.com/users/therealplato/gists{/gist_id}","starred_url":"https://api.github.com/users/therealplato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therealplato/subscriptions","organizations_url":"https://api.github.com/users/therealplato/orgs","repos_url":"https://api.github.com/users/therealplato/repos","events_url":"https://api.github.com/users/therealplato/events{/privacy}","received_events_url":"https://api.github.com/users/therealplato/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/therealplato/broadway","description":"Broadway ","fork":true,"url":"https://api.github.com/repos/therealplato/broadway","forks_url":"https://api.github.com/repos/therealplato/broadway/forks","keys_url":"https://api.github.com/repos/therealplato/broadway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/therealplato/broadway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/therealplato/broadway/teams","hooks_url":"https://api.github.com/repos/therealplato/broadway/hooks","issue_events_url":"https://api.github.com/repos/therealplato/broadway/issues/events{/number}","events_url":"https://api.github.com/repos/therealplato/broadway/events","assignees_url":"https://api.github.com/repos/therealplato/broadway/assignees{/user}","branches_url":"https://api.github.com/repos/therealplato/broadway/branches{/branch}","tags_url":"https://api.github.com/repos/therealplato/broadway/tags","blobs_url":"https://api.github.com/repos/therealplato/broadway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/therealplato/broadway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/therealplato/broadway/git/refs{/sha}","trees_url":"https://api.github.com/repos/therealplato/broadway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/therealplato/broadway/statuses/{sha}","languages_url":"https://api.github.com/repos/therealplato/broadway/languages","stargazers_url":"https://api.github.com/repos/therealplato/broadway/stargazers","contributors_url":"https://api.github.com/repos/therealplato/broadway/contributors","subscribers_url":"https://api.github.com/repos/therealplato/broadway/subscribers","subscription_url":"https://api.github.com/repos/therealplato/broadway/subscription","commits_url":"https://api.github.com/repos/therealplato/broadway/commits{/sha}","git_commits_url":"https://api.github.com/repos/therealplato/broadway/git/commits{/sha}","comments_url":"https://api.github.com/repos/therealplato/broadway/comments{/number}","issue_comment_url":"https://api.github.com/repos/therealplato/broadway/issues/comments{/number}","contents_url":"https://api.github.com/repos/therealplato/broadway/contents/{+path}","compare_url":"https://api.github.com/repos/therealplato/broadway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/therealplato/broadway/merges","archive_url":"https://api.github.com/repos/therealplato/broadway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/therealplato/broadway/downloads","issues_url":"https://api.github.com/repos/therealplato/broadway/issues{/number}","pulls_url":"https://api.github.com/repos/therealplato/broadway/pulls{/number}","milestones_url":"https://api.github.com/repos/therealplato/broadway/milestones{/number}","notifications_url":"https://api.github.com/repos/therealplato/broadway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/therealplato/broadway/labels{/name}","releases_url":"https://api.github.com/repos/therealplato/broadway/releases{/id}","deployments_url":"https://api.github.com/repos/therealplato/broadway/deployments","created_at":"2016-03-08T20:23:06Z","updated_at":"2016-03-08T20:23:06Z","pushed_at":"2016-03-15T17:25:35Z","git_url":"git://github.com/therealplato/broadway.git","ssh_url":"git@github.com:therealplato/broadway.git","clone_url":"https://github.com/therealplato/broadway.git","svn_url":"https://github.com/therealplato/broadway","homepage":null,"size":508,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"namely:master","ref":"master","sha":"cfdefae4d5f095457d5e3917b4bea439a6dcf8aa","user":{"login":"namely","id":1004321,"avatar_url":"https://avatars.githubusercontent.com/u/1004321?v=3","gravatar_id":"","url":"https://api.github.com/users/namely","html_url":"https://github.com/namely","followers_url":"https://api.github.com/users/namely/followers","following_url":"https://api.github.com/users/namely/following{/other_user}","gists_url":"https://api.github.com/users/namely/gists{/gist_id}","starred_url":"https://api.github.com/users/namely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namely/subscriptions","organizations_url":"https://api.github.com/users/namely/orgs","repos_url":"https://api.github.com/users/namely/repos","events_url":"https://api.github.com/users/namely/events{/privacy}","received_events_url":"https://api.github.com/users/namely/received_events","type":"Organization","site_admin":false},"repo":{"id":53081805,"name":"broadway","full_name":"namely/broadway","owner":{"login":"namely","id":1004321,"avatar_url":"https://avatars.githubusercontent.com/u/1004321?v=3","gravatar_id":"","url":"https://api.github.com/users/namely","html_url":"https://github.com/namely","followers_url":"https://api.github.com/users/namely/followers","following_url":"https://api.github.com/users/namely/following{/other_user}","gists_url":"https://api.github.com/users/namely/gists{/gist_id}","starred_url":"https://api.github.com/users/namely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/namely/subscriptions","organizations_url":"https://api.github.com/users/namely/orgs","repos_url":"https://api.github.com/users/namely/repos","events_url":"https://api.github.com/users/namely/events{/privacy}","received_events_url":"https://api.github.com/users/namely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/namely/broadway","description":"Broadway ","fork":false,"url":"https://api.github.com/repos/namely/broadway","forks_url":"https://api.github.com/repos/namely/broadway/forks","keys_url":"https://api.github.com/repos/namely/broadway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/namely/broadway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/namely/broadway/teams","hooks_url":"https://api.github.com/repos/namely/broadway/hooks","issue_events_url":"https://api.github.com/repos/namely/broadway/issues/events{/number}","events_url":"https://api.github.com/repos/namely/broadway/events","assignees_url":"https://api.github.com/repos/namely/broadway/assignees{/user}","branches_url":"https://api.github.com/repos/namely/broadway/branches{/branch}","tags_url":"https://api.github.com/repos/namely/broadway/tags","blobs_url":"https://api.github.com/repos/namely/broadway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/namely/broadway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/namely/broadway/git/refs{/sha}","trees_url":"https://api.github.com/repos/namely/broadway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/namely/broadway/statuses/{sha}","languages_url":"https://api.github.com/repos/namely/broadway/languages","stargazers_url":"https://api.github.com/repos/namely/broadway/stargazers","contributors_url":"https://api.github.com/repos/namely/broadway/contributors","subscribers_url":"https://api.github.com/repos/namely/broadway/subscribers","subscription_url":"https://api.github.com/repos/namely/broadway/subscription","commits_url":"https://api.github.com/repos/namely/broadway/commits{/sha}","git_commits_url":"https://api.github.com/repos/namely/broadway/git/commits{/sha}","comments_url":"https://api.github.com/repos/namely/broadway/comments{/number}","issue_comment_url":"https://api.github.com/repos/namely/broadway/issues/comments{/number}","contents_url":"https://api.github.com/repos/namely/broadway/contents/{+path}","compare_url":"https://api.github.com/repos/namely/broadway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/namely/broadway/merges","archive_url":"https://api.github.com/repos/namely/broadway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/namely/broadway/downloads","issues_url":"https://api.github.com/repos/namely/broadway/issues{/number}","pulls_url":"https://api.github.com/repos/namely/broadway/pulls{/number}","milestones_url":"https://api.github.com/repos/namely/broadway/milestones{/number}","notifications_url":"https://api.github.com/repos/namely/broadway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/namely/broadway/labels{/name}","releases_url":"https://api.github.com/repos/namely/broadway/releases{/id}","deployments_url":"https://api.github.com/repos/namely/broadway/deployments","created_at":"2016-03-03T20:42:56Z","updated_at":"2016-03-03T21:59:08Z","pushed_at":"2016-03-15T17:25:35Z","git_url":"git://github.com/namely/broadway.git","ssh_url":"git@github.com:namely/broadway.git","clone_url":"https://github.com/namely/broadway.git","svn_url":"https://github.com/namely/broadway","homepage":null,"size":506,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/namely/broadway/pulls/14"},"html":{"href":"https://github.com/namely/broadway/pull/14"},"issue":{"href":"https://api.github.com/repos/namely/broadway/issues/14"},"comments":{"href":"https://api.github.com/repos/namely/broadway/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/namely/broadway/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/namely/broadway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/namely/broadway/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/namely/broadway/statuses/0cbd966495c4d628348d8eaa308a2b863f0b9f00"}}}}