{"action":"created","comment":{"url":"https://api.github.com/repos/denibertovic/docker-hs/pulls/comments/91960362","pull_request_review_id":12469336,"id":91960362,"diff_hunk":"@@ -93,6 +94,11 @@ startContainer sopts cid = requestUnit POST $ StartContainerEndpoint sopts cid\n stopContainer :: forall m. Monad m => Timeout -> ContainerID -> DockerT m (Either DockerError ())\n stopContainer t cid = requestUnit POST $ StopContainerEndpoint t cid\n \n+-- | Blocks until a container with the given 'ContainerID' stops,\n+-- then returns the exit code\n+waitContainer :: forall m. Monad m => ContainerID -> DockerT m (Either DockerError ())","path":"src/Docker/Client/Api.hs","position":14,"original_position":14,"commit_id":"a67436d4fb08c2ad5eea788b429ac17fcfc21fa7","original_commit_id":"a67436d4fb08c2ad5eea788b429ac17fcfc21fa7","user":{"login":"denibertovic","id":807660,"avatar_url":"https://avatars.githubusercontent.com/u/807660?v=3","gravatar_id":"","url":"https://api.github.com/users/denibertovic","html_url":"https://github.com/denibertovic","followers_url":"https://api.github.com/users/denibertovic/followers","following_url":"https://api.github.com/users/denibertovic/following{/other_user}","gists_url":"https://api.github.com/users/denibertovic/gists{/gist_id}","starred_url":"https://api.github.com/users/denibertovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denibertovic/subscriptions","organizations_url":"https://api.github.com/users/denibertovic/orgs","repos_url":"https://api.github.com/users/denibertovic/repos","events_url":"https://api.github.com/users/denibertovic/events{/privacy}","received_events_url":"https://api.github.com/users/denibertovic/received_events","type":"User","site_admin":false},"body":"It's a standard Posix exit code. I agree that we should use the already existing ExitCode type here.","created_at":"2016-12-12T14:49:40Z","updated_at":"2016-12-12T14:49:40Z","html_url":"https://github.com/denibertovic/docker-hs/pull/23#discussion_r91960362","pull_request_url":"https://api.github.com/repos/denibertovic/docker-hs/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/denibertovic/docker-hs/pulls/comments/91960362"},"html":{"href":"https://github.com/denibertovic/docker-hs/pull/23#discussion_r91960362"},"pull_request":{"href":"https://api.github.com/repos/denibertovic/docker-hs/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/denibertovic/docker-hs/pulls/23","id":96679199,"html_url":"https://github.com/denibertovic/docker-hs/pull/23","diff_url":"https://github.com/denibertovic/docker-hs/pull/23.diff","patch_url":"https://github.com/denibertovic/docker-hs/pull/23.patch","issue_url":"https://api.github.com/repos/denibertovic/docker-hs/issues/23","number":23,"state":"open","locked":false,"title":"Add waitContainer","user":{"login":"kseo","id":2034762,"avatar_url":"https://avatars.githubusercontent.com/u/2034762?v=3","gravatar_id":"","url":"https://api.github.com/users/kseo","html_url":"https://github.com/kseo","followers_url":"https://api.github.com/users/kseo/followers","following_url":"https://api.github.com/users/kseo/following{/other_user}","gists_url":"https://api.github.com/users/kseo/gists{/gist_id}","starred_url":"https://api.github.com/users/kseo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kseo/subscriptions","organizations_url":"https://api.github.com/users/kseo/orgs","repos_url":"https://api.github.com/users/kseo/repos","events_url":"https://api.github.com/users/kseo/events{/privacy}","received_events_url":"https://api.github.com/users/kseo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-06T08:20:23Z","updated_at":"2016-12-12T14:49:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34c25f783de6e69d1726381f8c84fa5b64f524fa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/denibertovic/docker-hs/pulls/23/commits","review_comments_url":"https://api.github.com/repos/denibertovic/docker-hs/pulls/23/comments","review_comment_url":"https://api.github.com/repos/denibertovic/docker-hs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/denibertovic/docker-hs/issues/23/comments","statuses_url":"https://api.github.com/repos/denibertovic/docker-hs/statuses/a67436d4fb08c2ad5eea788b429ac17fcfc21fa7","head":{"label":"kseo:waitcontainer","ref":"waitcontainer","sha":"a67436d4fb08c2ad5eea788b429ac17fcfc21fa7","user":{"login":"kseo","id":2034762,"avatar_url":"https://avatars.githubusercontent.com/u/2034762?v=3","gravatar_id":"","url":"https://api.github.com/users/kseo","html_url":"https://github.com/kseo","followers_url":"https://api.github.com/users/kseo/followers","following_url":"https://api.github.com/users/kseo/following{/other_user}","gists_url":"https://api.github.com/users/kseo/gists{/gist_id}","starred_url":"https://api.github.com/users/kseo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kseo/subscriptions","organizations_url":"https://api.github.com/users/kseo/orgs","repos_url":"https://api.github.com/users/kseo/repos","events_url":"https://api.github.com/users/kseo/events{/privacy}","received_events_url":"https://api.github.com/users/kseo/received_events","type":"User","site_admin":false},"repo":{"id":75633210,"name":"docker-hs","full_name":"kseo/docker-hs","owner":{"login":"kseo","id":2034762,"avatar_url":"https://avatars.githubusercontent.com/u/2034762?v=3","gravatar_id":"","url":"https://api.github.com/users/kseo","html_url":"https://github.com/kseo","followers_url":"https://api.github.com/users/kseo/followers","following_url":"https://api.github.com/users/kseo/following{/other_user}","gists_url":"https://api.github.com/users/kseo/gists{/gist_id}","starred_url":"https://api.github.com/users/kseo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kseo/subscriptions","organizations_url":"https://api.github.com/users/kseo/orgs","repos_url":"https://api.github.com/users/kseo/repos","events_url":"https://api.github.com/users/kseo/events{/privacy}","received_events_url":"https://api.github.com/users/kseo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kseo/docker-hs","description":"An API client for docker written in Haskell","fork":true,"url":"https://api.github.com/repos/kseo/docker-hs","forks_url":"https://api.github.com/repos/kseo/docker-hs/forks","keys_url":"https://api.github.com/repos/kseo/docker-hs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kseo/docker-hs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kseo/docker-hs/teams","hooks_url":"https://api.github.com/repos/kseo/docker-hs/hooks","issue_events_url":"https://api.github.com/repos/kseo/docker-hs/issues/events{/number}","events_url":"https://api.github.com/repos/kseo/docker-hs/events","assignees_url":"https://api.github.com/repos/kseo/docker-hs/assignees{/user}","branches_url":"https://api.github.com/repos/kseo/docker-hs/branches{/branch}","tags_url":"https://api.github.com/repos/kseo/docker-hs/tags","blobs_url":"https://api.github.com/repos/kseo/docker-hs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kseo/docker-hs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kseo/docker-hs/git/refs{/sha}","trees_url":"https://api.github.com/repos/kseo/docker-hs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kseo/docker-hs/statuses/{sha}","languages_url":"https://api.github.com/repos/kseo/docker-hs/languages","stargazers_url":"https://api.github.com/repos/kseo/docker-hs/stargazers","contributors_url":"https://api.github.com/repos/kseo/docker-hs/contributors","subscribers_url":"https://api.github.com/repos/kseo/docker-hs/subscribers","subscription_url":"https://api.github.com/repos/kseo/docker-hs/subscription","commits_url":"https://api.github.com/repos/kseo/docker-hs/commits{/sha}","git_commits_url":"https://api.github.com/repos/kseo/docker-hs/git/commits{/sha}","comments_url":"https://api.github.com/repos/kseo/docker-hs/comments{/number}","issue_comment_url":"https://api.github.com/repos/kseo/docker-hs/issues/comments{/number}","contents_url":"https://api.github.com/repos/kseo/docker-hs/contents/{+path}","compare_url":"https://api.github.com/repos/kseo/docker-hs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kseo/docker-hs/merges","archive_url":"https://api.github.com/repos/kseo/docker-hs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kseo/docker-hs/downloads","issues_url":"https://api.github.com/repos/kseo/docker-hs/issues{/number}","pulls_url":"https://api.github.com/repos/kseo/docker-hs/pulls{/number}","milestones_url":"https://api.github.com/repos/kseo/docker-hs/milestones{/number}","notifications_url":"https://api.github.com/repos/kseo/docker-hs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kseo/docker-hs/labels{/name}","releases_url":"https://api.github.com/repos/kseo/docker-hs/releases{/id}","deployments_url":"https://api.github.com/repos/kseo/docker-hs/deployments","created_at":"2016-12-05T14:37:06Z","updated_at":"2016-12-05T14:37:08Z","pushed_at":"2016-12-06T08:25:42Z","git_url":"git://github.com/kseo/docker-hs.git","ssh_url":"git@github.com:kseo/docker-hs.git","clone_url":"https://github.com/kseo/docker-hs.git","svn_url":"https://github.com/kseo/docker-hs","homepage":"","size":187,"stargazers_count":0,"watchers_count":0,"language":"Haskell","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":"denibertovic:dev","ref":"dev","sha":"a61f9f9895f74eb89b45a113203a0a82f4a25deb","user":{"login":"denibertovic","id":807660,"avatar_url":"https://avatars.githubusercontent.com/u/807660?v=3","gravatar_id":"","url":"https://api.github.com/users/denibertovic","html_url":"https://github.com/denibertovic","followers_url":"https://api.github.com/users/denibertovic/followers","following_url":"https://api.github.com/users/denibertovic/following{/other_user}","gists_url":"https://api.github.com/users/denibertovic/gists{/gist_id}","starred_url":"https://api.github.com/users/denibertovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denibertovic/subscriptions","organizations_url":"https://api.github.com/users/denibertovic/orgs","repos_url":"https://api.github.com/users/denibertovic/repos","events_url":"https://api.github.com/users/denibertovic/events{/privacy}","received_events_url":"https://api.github.com/users/denibertovic/received_events","type":"User","site_admin":false},"repo":{"id":21661897,"name":"docker-hs","full_name":"denibertovic/docker-hs","owner":{"login":"denibertovic","id":807660,"avatar_url":"https://avatars.githubusercontent.com/u/807660?v=3","gravatar_id":"","url":"https://api.github.com/users/denibertovic","html_url":"https://github.com/denibertovic","followers_url":"https://api.github.com/users/denibertovic/followers","following_url":"https://api.github.com/users/denibertovic/following{/other_user}","gists_url":"https://api.github.com/users/denibertovic/gists{/gist_id}","starred_url":"https://api.github.com/users/denibertovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denibertovic/subscriptions","organizations_url":"https://api.github.com/users/denibertovic/orgs","repos_url":"https://api.github.com/users/denibertovic/repos","events_url":"https://api.github.com/users/denibertovic/events{/privacy}","received_events_url":"https://api.github.com/users/denibertovic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/denibertovic/docker-hs","description":"An API client for docker written in Haskell","fork":false,"url":"https://api.github.com/repos/denibertovic/docker-hs","forks_url":"https://api.github.com/repos/denibertovic/docker-hs/forks","keys_url":"https://api.github.com/repos/denibertovic/docker-hs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/denibertovic/docker-hs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/denibertovic/docker-hs/teams","hooks_url":"https://api.github.com/repos/denibertovic/docker-hs/hooks","issue_events_url":"https://api.github.com/repos/denibertovic/docker-hs/issues/events{/number}","events_url":"https://api.github.com/repos/denibertovic/docker-hs/events","assignees_url":"https://api.github.com/repos/denibertovic/docker-hs/assignees{/user}","branches_url":"https://api.github.com/repos/denibertovic/docker-hs/branches{/branch}","tags_url":"https://api.github.com/repos/denibertovic/docker-hs/tags","blobs_url":"https://api.github.com/repos/denibertovic/docker-hs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/denibertovic/docker-hs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/denibertovic/docker-hs/git/refs{/sha}","trees_url":"https://api.github.com/repos/denibertovic/docker-hs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/denibertovic/docker-hs/statuses/{sha}","languages_url":"https://api.github.com/repos/denibertovic/docker-hs/languages","stargazers_url":"https://api.github.com/repos/denibertovic/docker-hs/stargazers","contributors_url":"https://api.github.com/repos/denibertovic/docker-hs/contributors","subscribers_url":"https://api.github.com/repos/denibertovic/docker-hs/subscribers","subscription_url":"https://api.github.com/repos/denibertovic/docker-hs/subscription","commits_url":"https://api.github.com/repos/denibertovic/docker-hs/commits{/sha}","git_commits_url":"https://api.github.com/repos/denibertovic/docker-hs/git/commits{/sha}","comments_url":"https://api.github.com/repos/denibertovic/docker-hs/comments{/number}","issue_comment_url":"https://api.github.com/repos/denibertovic/docker-hs/issues/comments{/number}","contents_url":"https://api.github.com/repos/denibertovic/docker-hs/contents/{+path}","compare_url":"https://api.github.com/repos/denibertovic/docker-hs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/denibertovic/docker-hs/merges","archive_url":"https://api.github.com/repos/denibertovic/docker-hs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/denibertovic/docker-hs/downloads","issues_url":"https://api.github.com/repos/denibertovic/docker-hs/issues{/number}","pulls_url":"https://api.github.com/repos/denibertovic/docker-hs/pulls{/number}","milestones_url":"https://api.github.com/repos/denibertovic/docker-hs/milestones{/number}","notifications_url":"https://api.github.com/repos/denibertovic/docker-hs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/denibertovic/docker-hs/labels{/name}","releases_url":"https://api.github.com/repos/denibertovic/docker-hs/releases{/id}","deployments_url":"https://api.github.com/repos/denibertovic/docker-hs/deployments","created_at":"2014-07-09T17:30:44Z","updated_at":"2016-12-08T10:25:49Z","pushed_at":"2016-12-09T12:15:12Z","git_url":"git://github.com/denibertovic/docker-hs.git","ssh_url":"git@github.com:denibertovic/docker-hs.git","clone_url":"https://github.com/denibertovic/docker-hs.git","svn_url":"https://github.com/denibertovic/docker-hs","homepage":"","size":198,"stargazers_count":30,"watchers_count":30,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":5,"forks":18,"open_issues":5,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/denibertovic/docker-hs/pulls/23"},"html":{"href":"https://github.com/denibertovic/docker-hs/pull/23"},"issue":{"href":"https://api.github.com/repos/denibertovic/docker-hs/issues/23"},"comments":{"href":"https://api.github.com/repos/denibertovic/docker-hs/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/denibertovic/docker-hs/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/denibertovic/docker-hs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/denibertovic/docker-hs/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/denibertovic/docker-hs/statuses/a67436d4fb08c2ad5eea788b429ac17fcfc21fa7"}}}}
{"actor":{"display_login":"denibertovic"}}