payload: {"action":"created","comment":{"url":"https://api.github.com/repos/juju/juju/pulls/comments/297463538","pull_request_review_id":254356109,"id":297463538,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5NzQ2MzUzOA==","diff_hunk":"@@ -0,0 +1,283 @@\n+# This file is part of JujuPy, a library for driving the Juju CLI.\n+# Copyright 2013-2019 Canonical Ltd.\n+#\n+# This program is free software: you can redistribute it and/or modify it\n+# under the terms of the Lesser GNU General Public License version 3, as\n+# published by the Free Software Foundation.\n+#\n+# This program is distributed in the hope that it will be useful, but WITHOUT\n+# ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,\n+# SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE.  See the Lesser\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the Lesser GNU General Public License\n+# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+\n+# Functionality for handling installed or other juju binaries\n+# (including paths etc.)\n+\n+\n+from __future__ import print_function\n+\n+import logging\n+import yaml\n+import json\n+from time import sleep\n+import shutil\n+import tempfile\n+import os\n+\n+from google.cloud import container_v1\n+from google.oauth2 import service_account\n+from google.api_core import exceptions\n+from jujupy.utility import until_timeout\n+\n+from .base import (\n+    Base,\n+    K8sProviderType,\n+)\n+from .factory import register_provider\n+\n+\n+logger = logging.getLogger(__name__)\n+CLUSTER_STATUS = container_v1.enums.Cluster.Status\n+\n+\n+@register_provider\n+class GKE(Base):\n+\n+    name = K8sProviderType.GKE\n+\n+    driver = None\n+    gke_cluster_name = None\n+    gke_cluster = None\n+\n+    default_params = None\n+\n+    def __init__(self, bs_manager, timeout=1800):\n+        super().__init__(bs_manager, timeout)\n+\n+        self.gke_cluster_name = self.client.env.controller.name  # use controller name as cluster name\n+        self.default_storage_class_name = ''\n+        self.__init_driver(bs_manager.client.env)\n+\n+    def __init_driver(self, env):\n+        zone = env.get_host_cloud_region()[2] + '-b'\n+        cfg = env._config\n+        self.default_params = dict(\n+            project_id=cfg['project_id'],\n+            zone=zone,\n+        )\n+\n+        self.driver = container_v1.ClusterManagerClient(\n+            credentials=service_account.Credentials.from_service_account_info(cfg)\n+        )\n+        \n+        self.__ensure_gcloud(cfg)\n+\n+        # list all running clusters\n+        running_clusters = self.driver.list_clusters(**self.default_params)\n+        logger.info('running gke clusters: %s', running_clusters)\n+\n+    def _ensure_cluster_stack(self):\n+        self.provision_gke()\n+        \n+    def __ensure_gcloud(self, cfg):\n+        gcloud_bin = shutil.which('gcloud')\n+        if gcloud_bin is None:\n+            # ensure gcloud installed.\n+            self.sh('sudo', 'snap', 'install', 'google-cloud-sdk', '--classic')\n+            logger.debug(\"gcloud installed successfully\")\n+            gcloud_bin = shutil.which('gcloud')\n+        \n+        cred = {\n+            k: cfg[k] for k in (\n+                'project_id', \n+                'private_key_id', \n+                'private_key', \n+                'client_email', \n+                'client_id', \n+                'auth_uri', \n+                'token_uri', \n+                'auth_provider_x509_cert_url', \n+                'client_x509_cert_url',\n+            )\n+        }\n+        cred['type'] = 'service_account'\n+        cred_file = tempfile.NamedTemporaryFile(suffix='.json', delete=False)\n+        try:\n+            with open(cred_file.name, 'w') as f:\n+                json.dump(cred, f)\n+                \n+            # set credential;\n+            o = self.sh(gcloud_bin, 'auth', 'activate-service-account', '--key-file', cred_file.name)\n+            logger.debug(o)\n+            # set project;\n+            o = self.sh(gcloud_bin, 'config', 'set', 'project', cfg['project_id'])\n+            logger.debug(o)\n+        finally:\n+            os.unlink(cred_file.name)\n+\n+    def _tear_down_substrate(self):\n+        try:\n+            self.driver.delete_cluster(\n+                cluster_id=self.gke_cluster_name, **self.default_params,\n+            )\n+        except exceptions.NotFound:\n+            ...\n+\n+    def _ensure_kube_dir(self):\n+        cluster = self._get_cluster(self.gke_cluster_name)\n+        cluster_config = ClusterConfig(\n+            project_id=self.default_params['project_id'],\n+            cluster=cluster,\n+        )\n+        self.kubeconfig_cluster_name = cluster_config.context_name\n+        kubeconfig_content = cluster_config.dump()\n+        with open(self.kube_config_path, 'w') as f:\n+            logger.debug('writing kubeconfig to %s\\n%s', self.kube_config_path, kubeconfig_content)\n+            f.write(kubeconfig_content)\n+\n+        # ensure kubectl\n+        kubectl_bin_path = shutil.which('kubectl')\n+        if kubectl_bin_path is not None:\n+            self.kubectl_path = kubectl_bin_path\n+        else:\n+            self.sh(","path":"acceptancetests/jujupy/k8s_provider/gke.py","position":146,"original_position":146,"commit_id":"7a167c2b1873fa28ff01f7c97f22c0dc1c81b774","original_commit_id":"715bb98c1dac6f0b317110955150664c8dbf1fec","user":{"login":"babbageclunk","id":563399,"node_id":"MDQ6VXNlcjU2MzM5OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/563399?v=4","gravatar_id":"","url":"https://api.github.com/users/babbageclunk","html_url":"https://github.com/babbageclunk","followers_url":"https://api.github.com/users/babbageclunk/followers","following_url":"https://api.github.com/users/babbageclunk/following{/other_user}","gists_url":"https://api.github.com/users/babbageclunk/gists{/gist_id}","starred_url":"https://api.github.com/users/babbageclunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babbageclunk/subscriptions","organizations_url":"https://api.github.com/users/babbageclunk/orgs","repos_url":"https://api.github.com/users/babbageclunk/repos","events_url":"https://api.github.com/users/babbageclunk/events{/privacy}","received_events_url":"https://api.github.com/users/babbageclunk/received_events","type":"User","site_admin":false},"body":"I don't have kubectl installed and it doesn't look like this fallback worked - I get:\r\n```\r\n2019-06-26 14:07:56 ERROR [Errno 2] No such file or directory: '/tmp/test-run/juju-homes/nw-caas-deploy-charms-gke/kubectl': '/tmp/test-run/juju-homes/nw-caas-deploy-charms-gke/kubectl'\r\nTraceback (most recent call last):\r\n  File \"/home/xtian/dev/go/src/github.com/juju/juju/acceptancetests/utility.py\", line 416, in logged_exception\r\n    yield\r\n  File \"/home/xtian/dev/go/src/github.com/juju/juju/acceptancetests/deploy_stack.py\", line 1034, in runtime_context\r\n    yield\r\n  File \"/home/xtian/dev/go/src/github.com/juju/juju/acceptancetests/deploy_stack.py\", line 1177, in existing_booted_context\r\n    yield machines\r\n  File \"./acceptancetests/assess_caas_deploy_charms.py\", line 174, in main\r\n    assess_caas_charm_deployment(caas_client, args.caas_provider)\r\n  File \"./acceptancetests/assess_caas_deploy_charms.py\", line 105, in assess_caas_charm_deployment\r\n    if not caas_client.check_cluster_healthy(timeout=60):\r\n  File \"/home/xtian/dev/go/src/github.com/juju/juju/acceptancetests/jujupy/k8s_provider/base.py\", line 194, in check_cluster_healthy\r\n    if check():\r\n  File \"/home/xtian/dev/go/src/github.com/juju/juju/acceptancetests/jujupy/k8s_provider/base.py\", line 185, in check\r\n    cluster_info = self.kubectl('cluster-info')\r\n  File \"/home/xtian/dev/go/src/github.com/juju/juju/acceptancetests/jujupy/k8s_provider/base.py\", line 200, in kubectl\r\n    return self.sh(*(self._kubectl_bin + args))\r\n  File \"/home/xtian/dev/go/src/github.com/juju/juju/acceptancetests/jujupy/k8s_provider/base.py\", line 217, in sh\r\n    stderr=subprocess.STDOUT,\r\n  File \"/usr/lib/python3.7/subprocess.py\", line 395, in check_output\r\n    **kwargs).stdout\r\n  File \"/usr/lib/python3.7/subprocess.py\", line 472, in run\r\n    with Popen(*popenargs, **kwargs) as process:\r\n  File \"/usr/lib/python3.7/subprocess.py\", line 775, in __init__\r\n    restore_signals, start_new_session)\r\n  File \"/usr/lib/python3.7/subprocess.py\", line 1522, in _execute_child\r\n    raise child_exception_type(errno_num, err_msg, err_filename)\r\nFileNotFoundError: [Errno 2] No such file or directory: '/tmp/test-run/juju-homes/nw-caas-deploy-charms-gke/kubectl': '/tmp/test-run/juju-homes/nw-caas-deploy-charms-gke/kubectl'\r\n```","created_at":"2019-06-26T02:35:45Z","updated_at":"2019-06-26T02:39:59Z","html_url":"https://github.com/juju/juju/pull/10160#discussion_r297463538","pull_request_url":"https://api.github.com/repos/juju/juju/pulls/10160","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/juju/juju/pulls/comments/297463538"},"html":{"href":"https://github.com/juju/juju/pull/10160#discussion_r297463538"},"pull_request":{"href":"https://api.github.com/repos/juju/juju/pulls/10160"}}},"pull_request":{"url":"https://api.github.com/repos/juju/juju/pulls/10160","id":277279047,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc3Mjc5MDQ3","html_url":"https://github.com/juju/juju/pull/10160","diff_url":"https://github.com/juju/juju/pull/10160.diff","patch_url":"https://github.com/juju/juju/pull/10160.patch","issue_url":"https://api.github.com/repos/juju/juju/issues/10160","number":10160,"state":"open","locked":false,"title":"Feature/bootstrap gke","user":{"login":"ycliuhw","id":6562925,"node_id":"MDQ6VXNlcjY1NjI5MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/6562925?v=4","gravatar_id":"","url":"https://api.github.com/users/ycliuhw","html_url":"https://github.com/ycliuhw","followers_url":"https://api.github.com/users/ycliuhw/followers","following_url":"https://api.github.com/users/ycliuhw/following{/other_user}","gists_url":"https://api.github.com/users/ycliuhw/gists{/gist_id}","starred_url":"https://api.github.com/users/ycliuhw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ycliuhw/subscriptions","organizations_url":"https://api.github.com/users/ycliuhw/orgs","repos_url":"https://api.github.com/users/ycliuhw/repos","events_url":"https://api.github.com/users/ycliuhw/events{/privacy}","received_events_url":"https://api.github.com/users/ycliuhw/received_events","type":"User","site_admin":false},"body":"## Description of change\r\n\r\nImplement bootstrapping to GKE for CI tests;\r\n\r\n## QA steps\r\n\r\nTo run a test locally with lxd and locally complied juju:\r\n\r\n  * ```$ mkdir /tmp/test-run```\r\n  * ```$ export JUJU_HOME=/tmp/test-run```\r\n  * ```$ vim $JUJU_HOME/environments.yaml  # copy gke & microk8s environment from cloud-city```\r\n    ```yaml\r\n    environments:\r\n        gke:\r\n            type: kubernetes\r\n            test-mode: true\r\n            ...\r\n        microk8s:\r\n            type: kubernetes\r\n            test-mode: true\r\n            ...\r\n       \r\n    ```\r\n  * ```export JUJU_REPOSITORY=$GOPATH/src/github.com/juju/juju/acceptancetests/repository```\r\n  * ```mkdir /tmp/artifacts```\r\n  * Now you can run the test with:\r\n     * ```$ ./acceptancetests/assess_caas_deploy_charms.py gke $GOPATH/bin/juju /tmp/artifacts nw-caas-deploy-charms-gke --caas-image-repo=jujuqabot --caas-provider=GKE --k8s-controller --debug```\r\n    * ```$ ./acceptancetests/assess_caas_deploy_charms.py microk8s $GOPATH/bin/juju /tmp/artifacts nw-caas-deploy-charms-microk8s --caas-image-repo=jujuqabot --caas-provider=MICROK8S --k8s-controller --debug```\r\n\r\n\r\n## Documentation changes\r\n\r\nNone\r\n\r\n## Bug reference\r\n\r\nNone\r\n","created_at":"2019-05-09T07:34:12Z","updated_at":"2019-06-26T02:39:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e6b034b8becfed7e8f6e60b8fc5f505899e9038","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/juju/juju/pulls/10160/commits","review_comments_url":"https://api.github.com/repos/juju/juju/pulls/10160/comments","review_comment_url":"https://api.github.com/repos/juju/juju/pulls/comments{/number}","comments_url":"https://api.github.com/repos/juju/juju/issues/10160/comments","statuses_url":"https://api.github.com/repos/juju/juju/statuses/7a167c2b1873fa28ff01f7c97f22c0dc1c81b774","head":{"label":"ycliuhw:feature/bootstrap-gke","ref":"feature/bootstrap-gke","sha":"7a167c2b1873fa28ff01f7c97f22c0dc1c81b774","user":{"login":"ycliuhw","id":6562925,"node_id":"MDQ6VXNlcjY1NjI5MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/6562925?v=4","gravatar_id":"","url":"https://api.github.com/users/ycliuhw","html_url":"https://github.com/ycliuhw","followers_url":"https://api.github.com/users/ycliuhw/followers","following_url":"https://api.github.com/users/ycliuhw/following{/other_user}","gists_url":"https://api.github.com/users/ycliuhw/gists{/gist_id}","starred_url":"https://api.github.com/users/ycliuhw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ycliuhw/subscriptions","organizations_url":"https://api.github.com/users/ycliuhw/orgs","repos_url":"https://api.github.com/users/ycliuhw/repos","events_url":"https://api.github.com/users/ycliuhw/events{/privacy}","received_events_url":"https://api.github.com/users/ycliuhw/received_events","type":"User","site_admin":false},"repo":{"id":129208625,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkyMDg2MjU=","name":"juju","full_name":"ycliuhw/juju","private":false,"owner":{"login":"ycliuhw","id":6562925,"node_id":"MDQ6VXNlcjY1NjI5MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/6562925?v=4","gravatar_id":"","url":"https://api.github.com/users/ycliuhw","html_url":"https://github.com/ycliuhw","followers_url":"https://api.github.com/users/ycliuhw/followers","following_url":"https://api.github.com/users/ycliuhw/following{/other_user}","gists_url":"https://api.github.com/users/ycliuhw/gists{/gist_id}","starred_url":"https://api.github.com/users/ycliuhw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ycliuhw/subscriptions","organizations_url":"https://api.github.com/users/ycliuhw/orgs","repos_url":"https://api.github.com/users/ycliuhw/repos","events_url":"https://api.github.com/users/ycliuhw/events{/privacy}","received_events_url":"https://api.github.com/users/ycliuhw/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ycliuhw/juju","description":"juju is devops distilled","fork":true,"url":"https://api.github.com/repos/ycliuhw/juju","forks_url":"https://api.github.com/repos/ycliuhw/juju/forks","keys_url":"https://api.github.com/repos/ycliuhw/juju/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ycliuhw/juju/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ycliuhw/juju/teams","hooks_url":"https://api.github.com/repos/ycliuhw/juju/hooks","issue_events_url":"https://api.github.com/repos/ycliuhw/juju/issues/events{/number}","events_url":"https://api.github.com/repos/ycliuhw/juju/events","assignees_url":"https://api.github.com/repos/ycliuhw/juju/assignees{/user}","branches_url":"https://api.github.com/repos/ycliuhw/juju/branches{/branch}","tags_url":"https://api.github.com/repos/ycliuhw/juju/tags","blobs_url":"https://api.github.com/repos/ycliuhw/juju/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ycliuhw/juju/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ycliuhw/juju/git/refs{/sha}","trees_url":"https://api.github.com/repos/ycliuhw/juju/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ycliuhw/juju/statuses/{sha}","languages_url":"https://api.github.com/repos/ycliuhw/juju/languages","stargazers_url":"https://api.github.com/repos/ycliuhw/juju/stargazers","contributors_url":"https://api.github.com/repos/ycliuhw/juju/contributors","subscribers_url":"https://api.github.com/repos/ycliuhw/juju/subscribers","subscription_url":"https://api.github.com/repos/ycliuhw/juju/subscription","commits_url":"https://api.github.com/repos/ycliuhw/juju/commits{/sha}","git_commits_url":"https://api.github.com/repos/ycliuhw/juju/git/commits{/sha}","comments_url":"https://api.github.com/repos/ycliuhw/juju/comments{/number}","issue_comment_url":"https://api.github.com/repos/ycliuhw/juju/issues/comments{/number}","contents_url":"https://api.github.com/repos/ycliuhw/juju/contents/{+path}","compare_url":"https://api.github.com/repos/ycliuhw/juju/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ycliuhw/juju/merges","archive_url":"https://api.github.com/repos/ycliuhw/juju/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ycliuhw/juju/downloads","issues_url":"https://api.github.com/repos/ycliuhw/juju/issues{/number}","pulls_url":"https://api.github.com/repos/ycliuhw/juju/pulls{/number}","milestones_url":"https://api.github.com/repos/ycliuhw/juju/milestones{/number}","notifications_url":"https://api.github.com/repos/ycliuhw/juju/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ycliuhw/juju/labels{/name}","releases_url":"https://api.github.com/repos/ycliuhw/juju/releases{/id}","deployments_url":"https://api.github.com/repos/ycliuhw/juju/deployments","created_at":"2018-04-12T07:09:20Z","updated_at":"2019-06-09T13:41:47Z","pushed_at":"2019-06-26T02:34:53Z","git_url":"git://github.com/ycliuhw/juju.git","ssh_url":"git@github.com:ycliuhw/juju.git","clone_url":"https://github.com/ycliuhw/juju.git","svn_url":"https://github.com/ycliuhw/juju","homepage":"juju.ubuntu.com","size":244132,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"juju:2.6","ref":"2.6","sha":"4c98b64d1d9fb6299a59cc6267c22d4404f534b1","user":{"login":"juju","id":4604548,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2MDQ1NDg=","avatar_url":"https://avatars0.githubusercontent.com/u/4604548?v=4","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"repo":{"id":20445947,"node_id":"MDEwOlJlcG9zaXRvcnkyMDQ0NTk0Nw==","name":"juju","full_name":"juju/juju","private":false,"owner":{"login":"juju","id":4604548,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ2MDQ1NDg=","avatar_url":"https://avatars0.githubusercontent.com/u/4604548?v=4","gravatar_id":"","url":"https://api.github.com/users/juju","html_url":"https://github.com/juju","followers_url":"https://api.github.com/users/juju/followers","following_url":"https://api.github.com/users/juju/following{/other_user}","gists_url":"https://api.github.com/users/juju/gists{/gist_id}","starred_url":"https://api.github.com/users/juju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juju/subscriptions","organizations_url":"https://api.github.com/users/juju/orgs","repos_url":"https://api.github.com/users/juju/repos","events_url":"https://api.github.com/users/juju/events{/privacy}","received_events_url":"https://api.github.com/users/juju/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/juju/juju","description":"juju is devops distilled","fork":false,"url":"https://api.github.com/repos/juju/juju","forks_url":"https://api.github.com/repos/juju/juju/forks","keys_url":"https://api.github.com/repos/juju/juju/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juju/juju/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juju/juju/teams","hooks_url":"https://api.github.com/repos/juju/juju/hooks","issue_events_url":"https://api.github.com/repos/juju/juju/issues/events{/number}","events_url":"https://api.github.com/repos/juju/juju/events","assignees_url":"https://api.github.com/repos/juju/juju/assignees{/user}","branches_url":"https://api.github.com/repos/juju/juju/branches{/branch}","tags_url":"https://api.github.com/repos/juju/juju/tags","blobs_url":"https://api.github.com/repos/juju/juju/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juju/juju/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juju/juju/git/refs{/sha}","trees_url":"https://api.github.com/repos/juju/juju/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juju/juju/statuses/{sha}","languages_url":"https://api.github.com/repos/juju/juju/languages","stargazers_url":"https://api.github.com/repos/juju/juju/stargazers","contributors_url":"https://api.github.com/repos/juju/juju/contributors","subscribers_url":"https://api.github.com/repos/juju/juju/subscribers","subscription_url":"https://api.github.com/repos/juju/juju/subscription","commits_url":"https://api.github.com/repos/juju/juju/commits{/sha}","git_commits_url":"https://api.github.com/repos/juju/juju/git/commits{/sha}","comments_url":"https://api.github.com/repos/juju/juju/comments{/number}","issue_comment_url":"https://api.github.com/repos/juju/juju/issues/comments{/number}","contents_url":"https://api.github.com/repos/juju/juju/contents/{+path}","compare_url":"https://api.github.com/repos/juju/juju/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juju/juju/merges","archive_url":"https://api.github.com/repos/juju/juju/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juju/juju/downloads","issues_url":"https://api.github.com/repos/juju/juju/issues{/number}","pulls_url":"https://api.github.com/repos/juju/juju/pulls{/number}","milestones_url":"https://api.github.com/repos/juju/juju/milestones{/number}","notifications_url":"https://api.github.com/repos/juju/juju/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juju/juju/labels{/name}","releases_url":"https://api.github.com/repos/juju/juju/releases{/id}","deployments_url":"https://api.github.com/repos/juju/juju/deployments","created_at":"2014-06-03T14:28:10Z","updated_at":"2019-06-25T06:17:29Z","pushed_at":"2019-06-26T02:34:55Z","git_url":"git://github.com/juju/juju.git","ssh_url":"git@github.com:juju/juju.git","clone_url":"https://github.com/juju/juju.git","svn_url":"https://github.com/juju/juju","homepage":"juju.ubuntu.com","size":242301,"stargazers_count":1410,"watchers_count":1410,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":321,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":10,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":321,"open_issues":10,"watchers":1410,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/juju/juju/pulls/10160"},"html":{"href":"https://github.com/juju/juju/pull/10160"},"issue":{"href":"https://api.github.com/repos/juju/juju/issues/10160"},"comments":{"href":"https://api.github.com/repos/juju/juju/issues/10160/comments"},"review_comments":{"href":"https://api.github.com/repos/juju/juju/pulls/10160/comments"},"review_comment":{"href":"https://api.github.com/repos/juju/juju/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/juju/juju/pulls/10160/commits"},"statuses":{"href":"https://api.github.com/repos/juju/juju/statuses/7a167c2b1873fa28ff01f7c97f22c0dc1c81b774"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"babbageclunk"}}