{"action":"created","comment":{"url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/comments/68918353","id":68918353,"diff_hunk":"@@ -0,0 +1,347 @@\n+# Copyright 2016 Cloudbase Solutions Srl\n+# All Rights Reserved.\n+#\n+#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n+#    not use this file except in compliance with the License. You may obtain\n+#    a copy of the License at\n+#\n+#         http://www.apache.org/licenses/LICENSE-2.0\n+#\n+#    Unless required by applicable law or agreed to in writing, software\n+#    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n+#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n+#    License for the specific language governing permissions and limitations\n+#    under the License.\n+\n+import socket\n+\n+from winrm import exceptions as winrm_exceptions\n+import requests\n+import urlparse\n+\n+from argus import util\n+from argus import exceptions\n+from argus.action_manager import base\n+\n+LOG = util.LOG\n+\n+\n+class WindowsActionManager(base.BaseActionManager):\n+\n+    def __init__(self, client, config, os_type):\n+        super(WindowsActionManager, self).__init__(client, config, os_type)\n+\n+    def download(self, uri, location):\n+        \"\"\"Download from a specific uri in the location\n+           provided in the instance.\n+        :param uri:\n+            Remote uri where the data is found.\n+        :param location:\n+            Path from the instance in which we should download the\n+            remote resouce.\n+        \"\"\"\n+        LOG.debug(\"Downloading from %s to %s \", uri, location)\n+        cmd = (\"Invoke-WebRequest -Uri {} \"\n+               \"-OutFile {}\".format(uri, location))\n+        self._client.run_command_with_retry(cmd,\n+                                            count=util.RETRY_COUNT,\n+                                            delay=util.RETRY_DELAY,\n+                                            command_type=util.POWERSHELL)\n+\n+    def download_resource(self, resource_location, location):\n+        \"\"\"Download the resource in the specified location\n+\n+        :param resource_script:\n+            Is relative to the /argus/resources/ directory.\n+        :param location:\n+            The location on the instance.\n+        \"\"\"\n+        base_resource = urlparse.urljoin(self._conf.argus.resources, \"resources/\")\n+        uri = urlparse.urljoin(base_resource, resource_location)\n+        self.download(uri, location)\n+\n+    def _execute_resource_script(self, resource_location, parameters,\n+                                 script_type):\n+        \"\"\"Run a resource script with with the specific parameters \"\"\"\n+        LOG.debug(\"Executing resource script %s with this parameters %s\",\n+                  resource_location, parameters)\n+\n+        if script_type == util.BAT_SCRIPT:\n+            script_type = util.CMD\n+\n+        instance_location = r\"C:\\{}\".format(resource_location.split('/')[-1])\n+        self.download_resource(resource_location, instance_location)\n+        cmd = \"{} {}\".format(instance_location, parameters)\n+        self._client.run_command_with_retry(cmd,\n+                                            count=util.RETRY_COUNT,\n+                                            delay=util.RETRY_DELAY,\n+                                            command_type=script_type)\n+\n+    def execute_powershell_resource_script(self, resource_location,\n+                                           parameters=\"\"):\n+        \"\"\"Execute a powershell resource script.\"\"\"\n+        self._execute_resource_script(\n+            resource_location=resource_location, parameters=parameters,\n+            script_type=util.POWERSHELL_SCRIPT_BYPASS)\n+\n+    def execute_cmd_resource_script(self, resource_location,\n+                                    parameters=\"\"):\n+        \"\"\"Execute a .bat resource script.\"\"\"\n+        self._execute_resource_script(resource_location=resource_location,\n+                                      parameters=parameters,\n+                                      script_type=util.BAT_SCRIPT)\n+\n+    def get_installation_script(self):\n+        \"\"\"Get instalation script for CloudbaseInit\"\"\"\n+        LOG.info(\"Retrieve an installation script for CloudbaseInit.\")\n+        self.download_resource(\"windows/installCBinit.ps1\",\n+                               r\"C:\\installCBinit.ps1\")\n+\n+    def install_cbinit(self, service_type):\n+        \"\"\"Run the installation script for CloudbaseInit.\"\"\"\n+        LOG.debug(\"Installing Cloudbase-Init ...\")\n+\n+        installer = \"CloudbaseInitSetup_{build}_{arch}.msi\".format(\n+            build=self._conf.argus.build,\n+            arch=self._conf.argus.arch\n+        )\n+        # TODO(cpopa): the service type is specific to each scenario,\n+        # find a way to pass it\n+        LOG.info(\"Run the downloaded installation script \"\n+                 \"using the installer %r with service %r.\",\n+                 installer, service_type)\n+\n+        parameters = r'-serviceeType {} -installer {}'.format(service_type,\n+                                                              installer)\n+        try:\n+            self.execute_powershell_resource_script(\n+                resource_location=r'windows/installCBinit.ps1',\n+                parameters=parameters)\n+        except exceptions.ArgusError:\n+            # This can happen for multiple reasons,\n+            # but one of them is the fact that the installer\n+            # can't be installed through WinRM on some OSes\n+            # for whatever reason. In this case, we're falling back\n+            # to use a scheduled task.\n+            LOG.debug(\"Cannot install, deploying using a scheduled task.\")\n+            self._deploy_using_scheduled_task(installer, service_type)\n+\n+    def _deploy_using_scheduled_task(self, installer, service_type):\n+        resource_script = r'windows/schedule_installer.bat'","path":"argus/action_manager/windows.py","position":133,"original_position":130,"commit_id":"dc0bc87c0083460566ad6b20cc7699d371daebd2","original_commit_id":"2ebec30a5f5beed00cefcc9e5d5e3bb772514a45","user":{"login":"alexcoman","id":5760107,"avatar_url":"https://avatars.githubusercontent.com/u/5760107?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcoman","html_url":"https://github.com/alexcoman","followers_url":"https://api.github.com/users/alexcoman/followers","following_url":"https://api.github.com/users/alexcoman/following{/other_user}","gists_url":"https://api.github.com/users/alexcoman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcoman/subscriptions","organizations_url":"https://api.github.com/users/alexcoman/orgs","repos_url":"https://api.github.com/users/alexcoman/repos","events_url":"https://api.github.com/users/alexcoman/events{/privacy}","received_events_url":"https://api.github.com/users/alexcoman/received_events","type":"User","site_admin":false},"body":"In this case a raw string is not required.","created_at":"2016-06-29T09:58:10Z","updated_at":"2016-06-29T09:58:10Z","html_url":"https://github.com/cloudbase/cloudbase-init-ci/pull/11#discussion_r68918353","pull_request_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/comments/68918353"},"html":{"href":"https://github.com/cloudbase/cloudbase-init-ci/pull/11#discussion_r68918353"},"pull_request":{"href":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/11","id":75052564,"html_url":"https://github.com/cloudbase/cloudbase-init-ci/pull/11","diff_url":"https://github.com/cloudbase/cloudbase-init-ci/pull/11.diff","patch_url":"https://github.com/cloudbase/cloudbase-init-ci/pull/11.patch","issue_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/issues/11","number":11,"state":"open","locked":false,"title":"Feature/action manager","user":{"login":"micumatei","id":4560298,"avatar_url":"https://avatars.githubusercontent.com/u/4560298?v=3","gravatar_id":"","url":"https://api.github.com/users/micumatei","html_url":"https://github.com/micumatei","followers_url":"https://api.github.com/users/micumatei/followers","following_url":"https://api.github.com/users/micumatei/following{/other_user}","gists_url":"https://api.github.com/users/micumatei/gists{/gist_id}","starred_url":"https://api.github.com/users/micumatei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micumatei/subscriptions","organizations_url":"https://api.github.com/users/micumatei/orgs","repos_url":"https://api.github.com/users/micumatei/repos","events_url":"https://api.github.com/users/micumatei/events{/privacy}","received_events_url":"https://api.github.com/users/micumatei/received_events","type":"User","site_admin":false},"body":"This patch will give more control on OS specific actions.\r\n\r\n- [x] Test on one Scenario\r\n- [x] Make sure I use the new Action Manager everywhere is possible\r\n- [ ] Run all tests","created_at":"2016-06-24T01:30:29Z","updated_at":"2016-06-29T09:58:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d27089ebf0912a6c7b102a13a32597985a13d0f","assignee":{"login":"alexcoman","id":5760107,"avatar_url":"https://avatars.githubusercontent.com/u/5760107?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcoman","html_url":"https://github.com/alexcoman","followers_url":"https://api.github.com/users/alexcoman/followers","following_url":"https://api.github.com/users/alexcoman/following{/other_user}","gists_url":"https://api.github.com/users/alexcoman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcoman/subscriptions","organizations_url":"https://api.github.com/users/alexcoman/orgs","repos_url":"https://api.github.com/users/alexcoman/repos","events_url":"https://api.github.com/users/alexcoman/events{/privacy}","received_events_url":"https://api.github.com/users/alexcoman/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexcoman","id":5760107,"avatar_url":"https://avatars.githubusercontent.com/u/5760107?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcoman","html_url":"https://github.com/alexcoman","followers_url":"https://api.github.com/users/alexcoman/followers","following_url":"https://api.github.com/users/alexcoman/following{/other_user}","gists_url":"https://api.github.com/users/alexcoman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcoman/subscriptions","organizations_url":"https://api.github.com/users/alexcoman/orgs","repos_url":"https://api.github.com/users/alexcoman/repos","events_url":"https://api.github.com/users/alexcoman/events{/privacy}","received_events_url":"https://api.github.com/users/alexcoman/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/11/commits","review_comments_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/11/comments","review_comment_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/issues/11/comments","statuses_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/statuses/dc0bc87c0083460566ad6b20cc7699d371daebd2","head":{"label":"micumatei:feature/action_manager","ref":"feature/action_manager","sha":"dc0bc87c0083460566ad6b20cc7699d371daebd2","user":{"login":"micumatei","id":4560298,"avatar_url":"https://avatars.githubusercontent.com/u/4560298?v=3","gravatar_id":"","url":"https://api.github.com/users/micumatei","html_url":"https://github.com/micumatei","followers_url":"https://api.github.com/users/micumatei/followers","following_url":"https://api.github.com/users/micumatei/following{/other_user}","gists_url":"https://api.github.com/users/micumatei/gists{/gist_id}","starred_url":"https://api.github.com/users/micumatei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micumatei/subscriptions","organizations_url":"https://api.github.com/users/micumatei/orgs","repos_url":"https://api.github.com/users/micumatei/repos","events_url":"https://api.github.com/users/micumatei/events{/privacy}","received_events_url":"https://api.github.com/users/micumatei/received_events","type":"User","site_admin":false},"repo":{"id":58729237,"name":"cloudbase-init-ci","full_name":"micumatei/cloudbase-init-ci","owner":{"login":"micumatei","id":4560298,"avatar_url":"https://avatars.githubusercontent.com/u/4560298?v=3","gravatar_id":"","url":"https://api.github.com/users/micumatei","html_url":"https://github.com/micumatei","followers_url":"https://api.github.com/users/micumatei/followers","following_url":"https://api.github.com/users/micumatei/following{/other_user}","gists_url":"https://api.github.com/users/micumatei/gists{/gist_id}","starred_url":"https://api.github.com/users/micumatei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micumatei/subscriptions","organizations_url":"https://api.github.com/users/micumatei/orgs","repos_url":"https://api.github.com/users/micumatei/repos","events_url":"https://api.github.com/users/micumatei/events{/privacy}","received_events_url":"https://api.github.com/users/micumatei/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/micumatei/cloudbase-init-ci","description":"Continuous integration testing framework for Cloudbase-Init","fork":true,"url":"https://api.github.com/repos/micumatei/cloudbase-init-ci","forks_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/forks","keys_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/teams","hooks_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/hooks","issue_events_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/issues/events{/number}","events_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/events","assignees_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/assignees{/user}","branches_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/branches{/branch}","tags_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/tags","blobs_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/statuses/{sha}","languages_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/languages","stargazers_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/stargazers","contributors_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/contributors","subscribers_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/subscribers","subscription_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/subscription","commits_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/contents/{+path}","compare_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/merges","archive_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/downloads","issues_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/issues{/number}","pulls_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/pulls{/number}","milestones_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/milestones{/number}","notifications_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/labels{/name}","releases_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/releases{/id}","deployments_url":"https://api.github.com/repos/micumatei/cloudbase-init-ci/deployments","created_at":"2016-05-13T10:30:36Z","updated_at":"2016-05-13T10:30:39Z","pushed_at":"2016-06-29T09:53:20Z","git_url":"git://github.com/micumatei/cloudbase-init-ci.git","ssh_url":"git@github.com:micumatei/cloudbase-init-ci.git","clone_url":"https://github.com/micumatei/cloudbase-init-ci.git","svn_url":"https://github.com/micumatei/cloudbase-init-ci","homepage":null,"size":993,"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":"cloudbase:master","ref":"master","sha":"60fa779abdd3f9acddf86c350eaa5d6648576d4a","user":{"login":"cloudbase","id":2104303,"avatar_url":"https://avatars.githubusercontent.com/u/2104303?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudbase","html_url":"https://github.com/cloudbase","followers_url":"https://api.github.com/users/cloudbase/followers","following_url":"https://api.github.com/users/cloudbase/following{/other_user}","gists_url":"https://api.github.com/users/cloudbase/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudbase/subscriptions","organizations_url":"https://api.github.com/users/cloudbase/orgs","repos_url":"https://api.github.com/users/cloudbase/repos","events_url":"https://api.github.com/users/cloudbase/events{/privacy}","received_events_url":"https://api.github.com/users/cloudbase/received_events","type":"Organization","site_admin":false},"repo":{"id":30780249,"name":"cloudbase-init-ci","full_name":"cloudbase/cloudbase-init-ci","owner":{"login":"cloudbase","id":2104303,"avatar_url":"https://avatars.githubusercontent.com/u/2104303?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudbase","html_url":"https://github.com/cloudbase","followers_url":"https://api.github.com/users/cloudbase/followers","following_url":"https://api.github.com/users/cloudbase/following{/other_user}","gists_url":"https://api.github.com/users/cloudbase/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudbase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudbase/subscriptions","organizations_url":"https://api.github.com/users/cloudbase/orgs","repos_url":"https://api.github.com/users/cloudbase/repos","events_url":"https://api.github.com/users/cloudbase/events{/privacy}","received_events_url":"https://api.github.com/users/cloudbase/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudbase/cloudbase-init-ci","description":"Continuous integration testing framework for Cloudbase-Init","fork":false,"url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci","forks_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/forks","keys_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/teams","hooks_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/hooks","issue_events_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/issues/events{/number}","events_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/events","assignees_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/assignees{/user}","branches_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/branches{/branch}","tags_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/tags","blobs_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/languages","stargazers_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/stargazers","contributors_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/contributors","subscribers_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/subscribers","subscription_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/subscription","commits_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/contents/{+path}","compare_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/merges","archive_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/downloads","issues_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/issues{/number}","pulls_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/labels{/name}","releases_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/releases{/id}","deployments_url":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/deployments","created_at":"2015-02-13T23:09:06Z","updated_at":"2016-04-08T12:36:45Z","pushed_at":"2016-06-29T09:53:20Z","git_url":"git://github.com/cloudbase/cloudbase-init-ci.git","ssh_url":"git@github.com:cloudbase/cloudbase-init-ci.git","clone_url":"https://github.com/cloudbase/cloudbase-init-ci.git","svn_url":"https://github.com/cloudbase/cloudbase-init-ci","homepage":null,"size":951,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/11"},"html":{"href":"https://github.com/cloudbase/cloudbase-init-ci/pull/11"},"issue":{"href":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/issues/11"},"comments":{"href":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/cloudbase/cloudbase-init-ci/statuses/dc0bc87c0083460566ad6b20cc7699d371daebd2"}}}}
{"actor":{"display_login":"alexcoman"}}