{"action":"created","comment":{"url":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/comments/82413501","pull_request_review_id":3319062,"id":82413501,"diff_hunk":"@@ -25,11 +29,222 @@ def list_clusters(message, bus):\n \n     :param message: jsonrpc message structure.\n     :type message: dict\n+    :param bus: Bus instance.\n+    :type bus: commissaire_http.bus.Bus\n+    :returns: A jsonrpc structure.\n+    :rtype: dict\n+    \"\"\"\n+    clusters_msg = bus.request('storage.list', params=['Clusters'])\n+    return create_response(\n+        message['id'],\n+        [cluster['name'] for cluster in clusters_msg['result']])\n+\n+\n+def get_cluster(message, bus):\n+    \"\"\"\n+    Lists all clusters.\n+\n+    :param message: jsonrpc message structure.\n+    :type message: dict\n+    :returns: A jsonrpc structure.\n+    :rtype: dict\n+    \"\"\"\n+    cluster = bus.request(\n+        'storage.get', 'get', params=[\n+            'Cluster', {'name': message['params']['name']}])\n+    return create_response(message['id'], cluster['result'])\n+\n+\n+def create_cluster(message, bus):\n+    \"\"\"\n+    Creates a new cluster.\n+\n+    :param message: jsonrpc message structure.\n+    :type message: dict\n+    :param bus: Bus instance.\n+    :type bus: commissaire_http.bus.Bus\n+    :returns: A jsonrpc structure.\n+    :rtype: dict\n+    \"\"\"\n+    try:\n+        bus.request('storage.get', params=[\n+            'Cluster', {'name': message['params']['name']}])\n+        LOGGER.debug(\n+            'Creation of already exisiting cluster {0} requested.'.format(\n+                message['params']['name']))\n+    except Exception as error:\n+        LOGGER.debug('Brand new cluster being created.')\n+\n+        if message['params'].get('network'):\n+            # Verify the networks existence\n+            try:\n+                bus.request('storage.get', params=[\n+                    'Network', {'name': message['params']['network']}\n+                ])\n+            except Exception as error:\n+                # Default if the network doesn't exist\n+                message['params']['network'] = C.DEFAULT_CLUSTER_NETWORK_JSON['name']  # noqa\n+\n+    try:\n+        cluster = models.Cluster.new(**message['params'])\n+        cluster._validate()\n+        response = bus.request(\n+            'storage.save', params=[\n+                'Cluster', cluster.to_dict()])\n+        return create_response(message['id'], response['result'])\n+    except models.ValidationError as error:\n+        return return_error(message, error, JSONRPC_ERRORS['INVALID_REQUEST'])\n+\n+\n+def list_cluster_members(message, bus):\n+    \"\"\"\n+    Lists hosts in a cluster.\n+\n+    :param message: jsonrpc message structure.\n+    :type message: dict\n+    :param bus: Bus instance.\n+    :type bus: commissaire_http.bus.Bus\n+    :returns: A jsonrpc structure.\n+    :rtype: dict\n+    \"\"\"\n+    response = None\n+    try:\n+        cluster = bus.request('storage.get', params=[\n+            'Cluster', {'name': message['params']['name']}, True])\n+        LOGGER.debug('Cluster found: {}'.format(cluster['result']['name']))\n+        LOGGER.debug('Returning: {}'.format(response))\n+        return create_response(\n+            message['id'], result=cluster['result']['hostset'])\n+    except Exception as error:\n+        return return_error(message, error, JSONRPC_ERRORS['NOT_FOUND'])\n+\n+\n+def update_cluster_members(message, bus):\n+    \"\"\"\n+    Updates the list of members in a cluster.\n+\n+    :param message: jsonrpc message structure.\n+    :type message: dict\n+    :param bus: Bus instance.\n+    :type bus: commissaire_http.bus.Bus\n+    :returns: A jsonrpc structure.\n+    :rtype: dict\n+    \"\"\"\n+    try:\n+        old_hosts = set(message['params']['old'])  # Ensures no duplicates\n+        new_hosts = set(message['params']['new'])  # Ensures no duplicates\n+        LOGGER.debug('old_hosts=\"{}\", new_hosts=\"{}\"'.format(\n+            old_hosts, new_hosts))\n+    except Exception as error:\n+        return return_error(message, error, JSONRPC_ERRORS['BAD_REQUEST'])\n+\n+    try:\n+        cluster = bus.request('storage.get', params=[\n+            'Cluster', {'name': message['params']['name']}, True])\n+    except Exception as error:\n+        return return_error(message, error, JSONRPC_ERRORS['NOT_FOUND'])\n+\n+    if old_hosts != set(cluster['result']['hostset']):\n+        msg = 'Conflict setting hosts for cluster {0}'.format(\n+            cluster['result']['name'])\n+        LOGGER.error(msg)\n+        return return_error(message, msg, JSONRPC_ERRORS['CONFLICT'])\n+\n+    cluster['result']['hostset'] = list(new_hosts)\n+    cluster = models.Cluster.new(**cluster['result'])\n+    cluster._validate()\n+    response = bus.request(\n+        'storage.save', params=[\n+            'Cluster', cluster.to_dict()])\n+    return create_response(message['id'], response['result'])\n+\n+\n+def check_cluster_member(message, bus):\n+    \"\"\"\n+    Checks is a member is part of the cluster.\n+\n+    :param message: jsonrpc message structure.\n+    :type message: dict\n+    :param bus: Bus instance.\n+    :type bus: commissaire_http.bus.Bus\n+    :returns: A jsonrpc structure.\n+    :rtype: dict\n+    \"\"\"\n+    try:\n+        cluster = bus.request('storage.get', params=[\n+            'Cluster', {'name': message['params']['name']}, True])\n+        if message['params']['host'] in cluster['result']['hostset']:\n+            # Return back the host in a list\n+            return create_response(message['id'], [message['params']['host']])\n+        else:\n+            return create_response(\n+                message['id'],\n+                error='The requested host is not part of the cluster.',\n+                error_code=JSONRPC_ERRORS['NOT_FOUND'])\n+    except Exception as error:\n+        return create_response(\n+            message['id'],\n+            error=error,\n+            error_code=JSONRPC_ERRORS['INTERNAL_ERROR'])\n+\n+\n+def add_cluster_member(message, bus):\n+    \"\"\"\n+    Adds a member to the cluster.\n+\n+    :param message: jsonrpc message structure.\n+    :type message: dict\n+    :param bus: Bus instance.\n+    :type bus: commissaire_http.bus.Bus\n+    :returns: A jsonrpc structure.\n+    :rtype: dict\n+    \"\"\"\n+    try:\n+        cluster = bus.request('storage.get', params=[\n+            'Cluster', {'name': message['params']['name']}, True])\n+        if message['params']['host'] in cluster['result']['hostset']:\n+            # Return back the host in a list ... it's already there\n+            return create_response(message['id'], [message['params']['host']])","path":"src/commissaire_http/handlers/clusters.py","position":192,"original_position":192,"commit_id":"32d96d229d38056bfc15cfe293fa1beaf99be40b","original_commit_id":"32d96d229d38056bfc15cfe293fa1beaf99be40b","user":{"login":"mbarnes","id":56718,"avatar_url":"https://avatars.githubusercontent.com/u/56718?v=3","gravatar_id":"","url":"https://api.github.com/users/mbarnes","html_url":"https://github.com/mbarnes","followers_url":"https://api.github.com/users/mbarnes/followers","following_url":"https://api.github.com/users/mbarnes/following{/other_user}","gists_url":"https://api.github.com/users/mbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/mbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbarnes/subscriptions","organizations_url":"https://api.github.com/users/mbarnes/orgs","repos_url":"https://api.github.com/users/mbarnes/repos","events_url":"https://api.github.com/users/mbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/mbarnes/received_events","type":"User","site_admin":false},"body":"nit: Same `return` statement below.  Slightly clearer to invert the condition and keep the `else` branch:\r\n```\r\nif message['params']['host'] not in cluster['result']['hostset']:\r\n    cluster['result']['hostset'].append(message['params']['host'])\r\n    ...\r\n\r\nreturn create_response(message['id'], [message['params']['host']])\r\n```","created_at":"2016-10-07T15:35:41Z","updated_at":"2016-10-07T15:35:41Z","html_url":"https://github.com/projectatomic/commissaire-http/pull/8#discussion_r82413501","pull_request_url":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/comments/82413501"},"html":{"href":"https://github.com/projectatomic/commissaire-http/pull/8#discussion_r82413501"},"pull_request":{"href":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/8","id":87737306,"html_url":"https://github.com/projectatomic/commissaire-http/pull/8","diff_url":"https://github.com/projectatomic/commissaire-http/pull/8.diff","patch_url":"https://github.com/projectatomic/commissaire-http/pull/8.patch","issue_url":"https://api.github.com/repos/projectatomic/commissaire-http/issues/8","number":8,"state":"open","locked":false,"title":"Cluster endpoints","user":{"login":"ashcrow","id":22706,"avatar_url":"https://avatars.githubusercontent.com/u/22706?v=3","gravatar_id":"","url":"https://api.github.com/users/ashcrow","html_url":"https://github.com/ashcrow","followers_url":"https://api.github.com/users/ashcrow/followers","following_url":"https://api.github.com/users/ashcrow/following{/other_user}","gists_url":"https://api.github.com/users/ashcrow/gists{/gist_id}","starred_url":"https://api.github.com/users/ashcrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashcrow/subscriptions","organizations_url":"https://api.github.com/users/ashcrow/orgs","repos_url":"https://api.github.com/users/ashcrow/repos","events_url":"https://api.github.com/users/ashcrow/events{/privacy}","received_events_url":"https://api.github.com/users/ashcrow/received_events","type":"User","site_admin":false},"body":"Adds handlers for:\r\n\r\n- Clusters: http://commissaire.readthedocs.io/en/latest/endpoints.html#clusters\r\n- Cluster: http://commissaire.readthedocs.io/en/latest/endpoints.html#cluster\r\n- Cluster Members: http://commissaire.readthedocs.io/en/latest/endpoints.html#cluster-members\r\n- Individual Cluster Members: http://commissaire.readthedocs.io/en/latest/endpoints.html#cluster-members-individual","created_at":"2016-10-03T15:28:35Z","updated_at":"2016-10-07T15:42:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08b841705d67b41353cbc3663f545473ee68bb41","assignee":{"login":"mbarnes","id":56718,"avatar_url":"https://avatars.githubusercontent.com/u/56718?v=3","gravatar_id":"","url":"https://api.github.com/users/mbarnes","html_url":"https://github.com/mbarnes","followers_url":"https://api.github.com/users/mbarnes/followers","following_url":"https://api.github.com/users/mbarnes/following{/other_user}","gists_url":"https://api.github.com/users/mbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/mbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbarnes/subscriptions","organizations_url":"https://api.github.com/users/mbarnes/orgs","repos_url":"https://api.github.com/users/mbarnes/repos","events_url":"https://api.github.com/users/mbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/mbarnes/received_events","type":"User","site_admin":false},"assignees":[{"login":"mbarnes","id":56718,"avatar_url":"https://avatars.githubusercontent.com/u/56718?v=3","gravatar_id":"","url":"https://api.github.com/users/mbarnes","html_url":"https://github.com/mbarnes","followers_url":"https://api.github.com/users/mbarnes/followers","following_url":"https://api.github.com/users/mbarnes/following{/other_user}","gists_url":"https://api.github.com/users/mbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/mbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbarnes/subscriptions","organizations_url":"https://api.github.com/users/mbarnes/orgs","repos_url":"https://api.github.com/users/mbarnes/repos","events_url":"https://api.github.com/users/mbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/mbarnes/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/8/commits","review_comments_url":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/8/comments","review_comment_url":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/commissaire-http/issues/8/comments","statuses_url":"https://api.github.com/repos/projectatomic/commissaire-http/statuses/32d96d229d38056bfc15cfe293fa1beaf99be40b","head":{"label":"ashcrow:cluster-endpoints","ref":"cluster-endpoints","sha":"32d96d229d38056bfc15cfe293fa1beaf99be40b","user":{"login":"ashcrow","id":22706,"avatar_url":"https://avatars.githubusercontent.com/u/22706?v=3","gravatar_id":"","url":"https://api.github.com/users/ashcrow","html_url":"https://github.com/ashcrow","followers_url":"https://api.github.com/users/ashcrow/followers","following_url":"https://api.github.com/users/ashcrow/following{/other_user}","gists_url":"https://api.github.com/users/ashcrow/gists{/gist_id}","starred_url":"https://api.github.com/users/ashcrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashcrow/subscriptions","organizations_url":"https://api.github.com/users/ashcrow/orgs","repos_url":"https://api.github.com/users/ashcrow/repos","events_url":"https://api.github.com/users/ashcrow/events{/privacy}","received_events_url":"https://api.github.com/users/ashcrow/received_events","type":"User","site_admin":false},"repo":{"id":68315602,"name":"commissaire-http","full_name":"ashcrow/commissaire-http","owner":{"login":"ashcrow","id":22706,"avatar_url":"https://avatars.githubusercontent.com/u/22706?v=3","gravatar_id":"","url":"https://api.github.com/users/ashcrow","html_url":"https://github.com/ashcrow","followers_url":"https://api.github.com/users/ashcrow/followers","following_url":"https://api.github.com/users/ashcrow/following{/other_user}","gists_url":"https://api.github.com/users/ashcrow/gists{/gist_id}","starred_url":"https://api.github.com/users/ashcrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashcrow/subscriptions","organizations_url":"https://api.github.com/users/ashcrow/orgs","repos_url":"https://api.github.com/users/ashcrow/repos","events_url":"https://api.github.com/users/ashcrow/events{/privacy}","received_events_url":"https://api.github.com/users/ashcrow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ashcrow/commissaire-http","description":"Commissaire HTTP server","fork":true,"url":"https://api.github.com/repos/ashcrow/commissaire-http","forks_url":"https://api.github.com/repos/ashcrow/commissaire-http/forks","keys_url":"https://api.github.com/repos/ashcrow/commissaire-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashcrow/commissaire-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashcrow/commissaire-http/teams","hooks_url":"https://api.github.com/repos/ashcrow/commissaire-http/hooks","issue_events_url":"https://api.github.com/repos/ashcrow/commissaire-http/issues/events{/number}","events_url":"https://api.github.com/repos/ashcrow/commissaire-http/events","assignees_url":"https://api.github.com/repos/ashcrow/commissaire-http/assignees{/user}","branches_url":"https://api.github.com/repos/ashcrow/commissaire-http/branches{/branch}","tags_url":"https://api.github.com/repos/ashcrow/commissaire-http/tags","blobs_url":"https://api.github.com/repos/ashcrow/commissaire-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashcrow/commissaire-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashcrow/commissaire-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashcrow/commissaire-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashcrow/commissaire-http/statuses/{sha}","languages_url":"https://api.github.com/repos/ashcrow/commissaire-http/languages","stargazers_url":"https://api.github.com/repos/ashcrow/commissaire-http/stargazers","contributors_url":"https://api.github.com/repos/ashcrow/commissaire-http/contributors","subscribers_url":"https://api.github.com/repos/ashcrow/commissaire-http/subscribers","subscription_url":"https://api.github.com/repos/ashcrow/commissaire-http/subscription","commits_url":"https://api.github.com/repos/ashcrow/commissaire-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashcrow/commissaire-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashcrow/commissaire-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashcrow/commissaire-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/ashcrow/commissaire-http/contents/{+path}","compare_url":"https://api.github.com/repos/ashcrow/commissaire-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashcrow/commissaire-http/merges","archive_url":"https://api.github.com/repos/ashcrow/commissaire-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashcrow/commissaire-http/downloads","issues_url":"https://api.github.com/repos/ashcrow/commissaire-http/issues{/number}","pulls_url":"https://api.github.com/repos/ashcrow/commissaire-http/pulls{/number}","milestones_url":"https://api.github.com/repos/ashcrow/commissaire-http/milestones{/number}","notifications_url":"https://api.github.com/repos/ashcrow/commissaire-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashcrow/commissaire-http/labels{/name}","releases_url":"https://api.github.com/repos/ashcrow/commissaire-http/releases{/id}","deployments_url":"https://api.github.com/repos/ashcrow/commissaire-http/deployments","created_at":"2016-09-15T17:27:16Z","updated_at":"2016-09-15T17:27:18Z","pushed_at":"2016-10-07T15:30:42Z","git_url":"git://github.com/ashcrow/commissaire-http.git","ssh_url":"git@github.com:ashcrow/commissaire-http.git","clone_url":"https://github.com/ashcrow/commissaire-http.git","svn_url":"https://github.com/ashcrow/commissaire-http","homepage":"","size":105,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"projectatomic:master","ref":"master","sha":"d984e80812f868cc46f7022ac8c7d90b5ab47643","user":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":67060351,"name":"commissaire-http","full_name":"projectatomic/commissaire-http","owner":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/commissaire-http","description":"Commissaire HTTP server","fork":false,"url":"https://api.github.com/repos/projectatomic/commissaire-http","forks_url":"https://api.github.com/repos/projectatomic/commissaire-http/forks","keys_url":"https://api.github.com/repos/projectatomic/commissaire-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/commissaire-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/commissaire-http/teams","hooks_url":"https://api.github.com/repos/projectatomic/commissaire-http/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/commissaire-http/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/commissaire-http/events","assignees_url":"https://api.github.com/repos/projectatomic/commissaire-http/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/commissaire-http/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/commissaire-http/tags","blobs_url":"https://api.github.com/repos/projectatomic/commissaire-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/commissaire-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/commissaire-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/commissaire-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/commissaire-http/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/commissaire-http/languages","stargazers_url":"https://api.github.com/repos/projectatomic/commissaire-http/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/commissaire-http/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/commissaire-http/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/commissaire-http/subscription","commits_url":"https://api.github.com/repos/projectatomic/commissaire-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/commissaire-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/commissaire-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/commissaire-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/commissaire-http/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/commissaire-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/commissaire-http/merges","archive_url":"https://api.github.com/repos/projectatomic/commissaire-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/commissaire-http/downloads","issues_url":"https://api.github.com/repos/projectatomic/commissaire-http/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/commissaire-http/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/commissaire-http/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/commissaire-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/commissaire-http/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/commissaire-http/releases{/id}","deployments_url":"https://api.github.com/repos/projectatomic/commissaire-http/deployments","created_at":"2016-08-31T17:49:37Z","updated_at":"2016-09-14T18:32:10Z","pushed_at":"2016-10-07T15:34:03Z","git_url":"git://github.com/projectatomic/commissaire-http.git","ssh_url":"git@github.com:projectatomic/commissaire-http.git","clone_url":"https://github.com/projectatomic/commissaire-http.git","svn_url":"https://github.com/projectatomic/commissaire-http","homepage":"","size":92,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/8"},"html":{"href":"https://github.com/projectatomic/commissaire-http/pull/8"},"issue":{"href":"https://api.github.com/repos/projectatomic/commissaire-http/issues/8"},"comments":{"href":"https://api.github.com/repos/projectatomic/commissaire-http/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/commissaire-http/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/commissaire-http/statuses/32d96d229d38056bfc15cfe293fa1beaf99be40b"}}}}
{"actor":{"display_login":"mbarnes"}}