{"action":"created","comment":{"url":"https://api.github.com/repos/snapcore/snapcraft/pulls/comments/136789007","pull_request_review_id":60373920,"id":136789007,"diff_hunk":"@@ -0,0 +1,377 @@\n+# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-\n+#\n+# Copyright (C) 2017 Canonical Ltd\n+#\n+# This program is free software: you can redistribute it and/or modify\n+# it under the terms of the 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,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+import json\n+import os\n+import socketserver\n+import subprocess\n+import tempfile\n+from http.server import BaseHTTPRequestHandler\n+from threading import Thread\n+from unittest import mock\n+from urllib import parse\n+\n+import fixtures\n+from testtools.matchers import Equals, Is\n+\n+from snapcraft import tests\n+from snapcraft.internal.repo import errors, snaps\n+\n+\n+class FakeSnapCommand(fixtures.Fixture):\n+\n+    def __init__(self):\n+        self.calls = []\n+        self.install_success = True\n+        self.refresh_success = True\n+\n+    def _setUp(self):\n+        original_check_call = snaps.check_call\n+        original_check_output = snaps.check_output\n+\n+        def side_effect_check_call(cmd, *args, **kwargs):\n+            return side_effect(original_check_call, cmd, *args, **kwargs)\n+\n+        def side_effect_check_output(cmd, *args, **kwargs):\n+            return side_effect(original_check_output, cmd, *args, **kwargs)\n+\n+        def side_effect(original, cmd, *args, **kwargs):\n+            if self._is_snap_command(cmd):\n+                self.calls.append(cmd)\n+                return self._fake_snap_command(cmd, *args, **kwargs)\n+            else:\n+                return original(cmd, *args, **kwargs)\n+\n+        check_call_patcher = mock.patch(\n+            'snapcraft.internal.repo.snaps.check_call',\n+            side_effect=side_effect_check_call)\n+        self.mock_call = check_call_patcher.start()\n+        self.addCleanup(check_call_patcher.stop)\n+\n+        check_output_patcher = mock.patch(\n+            'snapcraft.internal.repo.snaps.check_output',\n+            side_effect=side_effect_check_output)\n+        self.mock_call = check_output_patcher.start()\n+        self.addCleanup(check_output_patcher.stop)\n+\n+    def _get_snap_cmd(self, snap_cmd):\n+        try:\n+            snap_cmd_index = snap_cmd.index('snap')\n+        except ValueError:\n+            return ''\n+\n+        try:\n+            return snap_cmd[snap_cmd_index+1]\n+        except IndexError:\n+            return ''\n+\n+    def _is_snap_command(self, cmd):\n+        return self._get_snap_cmd(cmd) in ['install', 'refresh', 'whoami']\n+\n+    def _fake_snap_command(self, cmd, *args, **kwargs):\n+        cmd = self._get_snap_cmd(cmd)\n+        if cmd == 'install' and not self.install_success:\n+            raise subprocess.CalledProcessError(returncode=1, cmd=cmd)\n+        if cmd == 'refresh' and not self.refresh_success:\n+            raise subprocess.CalledProcessError(returncode=1, cmd=cmd)\n+        if cmd == 'whoami':\n+            return 'email: -'.encode()\n+\n+\n+class FakeSnapdServer(BaseHTTPRequestHandler):\n+\n+    def do_GET(self):\n+        parsed_url = parse.urlparse(self.path)\n+        if parsed_url.path.startswith('/v2/snaps/'):\n+            self._handle_snaps(parsed_url)\n+        elif parsed_url.path == '/v2/find':\n+            self._handle_find(parsed_url)\n+        else:\n+            self.wfile.write(parsed_url.path.encode())\n+\n+    def _handle_snaps(self, parsed_url):\n+        status_code = 404\n+        params = {}\n+\n+        if parsed_url.path.endswith('/fake-snap'):\n+            status_code = 200\n+            params = {'channel': 'stable'}\n+        elif parsed_url.path.endswith('/fake-snap-stable'):\n+            status_code = 200\n+            params = {'channel': 'stable'}\n+        elif parsed_url.path.endswith('/fake-snap-branch'):\n+            status_code = 200\n+            params = {'channel': 'candidate/branch'}\n+        elif parsed_url.path.endswith('/fake-snap-track-stable'):\n+            status_code = 200\n+            params = {'channel': 'track/stable'}\n+        elif parsed_url.path.endswith('/fake-snap-track-stable-branch'):\n+            status_code = 200\n+            params = {'channel': 'track/stable/branch'}\n+        elif parsed_url.path.endswith('/fake-snap-edge'):\n+            status_code = 200\n+            params = {'channel': 'edge'}\n+\n+        self.send_response(status_code)\n+        self.send_header('Content-Type', 'text/application+json')\n+        self.end_headers()\n+        response = json.dumps({'result': params}).encode()\n+        self.wfile.write(response)\n+\n+    def _handle_find(self, parsed_url):\n+        query = parse.parse_qs(parsed_url.query)\n+        status_code = 404\n+        params = {}\n+\n+        if query['name'][0] == 'fake-snap':\n+            status_code = 200\n+            params = {'channels': {\n+                'latest/stable': {'confinement': 'strict'},\n+                'classic/stable': {'confinement': 'classic'},\n+                'strict/stable': {'confinement': 'strict'},\n+                'devmode/stable': {'confinement': 'devmode'},\n+            }}\n+        if query['name'][0] == 'new-fake-snap':\n+            status_code = 200\n+            params = {'channels': {\n+                'latest/stable': {'confinement': 'strict'},\n+            }}\n+\n+        self.send_response(status_code)\n+        self.send_header('Content-Type', 'text/application+json')\n+        self.end_headers()\n+        response = json.dumps({'result': [params]}).encode()\n+        self.wfile.write(response)\n+\n+\n+class UnixHTTPServer(socketserver.UnixStreamServer):\n+\n+    def get_request(self):\n+        request, client_address = self.socket.accept()\n+        # BaseHTTPRequestHandler expects a tuple with the client address at\n+        # index 0, so we fake one\n+        if len(client_address) == 0:\n+            client_address = (self.server_address,)\n+        return (request, client_address)\n+\n+\n+class FakeSnapd(fixtures.Fixture):\n+\n+    def _setUp(self):\n+        snapd_fake_socket_path = tempfile.mkstemp()[1]\n+        os.unlink(snapd_fake_socket_path)\n+\n+        socket_path_patcher = mock.patch(\n+            'snapcraft.internal.repo.snaps.get_snapd_socket_path_template')\n+        mock_socket_path = socket_path_patcher.start()\n+        mock_socket_path.return_value = 'http+unix://{}/v2/{{}}'.format(\n+            snapd_fake_socket_path.replace('/', '%2F'))\n+        self.addCleanup(socket_path_patcher.stop)\n+\n+        self._start_fake_server(snapd_fake_socket_path)\n+\n+    def _start_fake_server(self, socket):\n+        self.server = UnixHTTPServer(socket, FakeSnapdServer)\n+        server_thread = Thread(target=self.server.serve_forever)\n+        server_thread.start()\n+        self.addCleanup(self._stop_fake_server, server_thread)\n+\n+    def _stop_fake_server(self, thread):\n+        self.server.shutdown()\n+        self.server.socket.close()\n+        thread.join()\n+\n+\n+class SnapPackageBaseTestCase(tests.TestCase):\n+\n+    def setUp(self):\n+        super().setUp()\n+\n+        self.useFixture(FakeSnapd())\n+\n+\n+class SnapPackageCurrentChannelTest(SnapPackageBaseTestCase):\n+\n+    scenarios = [\n+        ('stable',\n+         dict(snap='fake-snap-stable/stable',\n+              expected='latest/stable')),\n+        ('latest/stable',\n+         dict(snap='fake-snap-stable/latest/stable',\n+              expected='latest/stable')),\n+        ('candidate/branch',\n+         dict(snap='fake-snap-branch/candidate/branch',\n+              expected='latest/candidate/branch')),\n+        ('track/stable/branch',\n+         dict(snap='fake-snap-track-stable-branch/trakc/stable/branch',\n+              expected='track/stable/branch')),\n+        ('edge',\n+         dict(snap='fake-snap-edge/stable',\n+              expected='latest/edge')),\n+        ('track/stable',\n+         dict(snap='fake-snap-track-stable/track/stable',\n+              expected='track/stable')),\n+    ]\n+\n+    def test_get_current_channel(self):\n+        snap_pkg = snaps.SnapPackage(self.snap)\n+        self.assertThat(snap_pkg.get_current_channel(),\n+                        Equals(self.expected))\n+\n+\n+class SnapPackageIsInstalledTest(SnapPackageBaseTestCase):\n+\n+    scenarios = [\n+        ('installed stable',\n+         dict(snap='fake-snap-stable',\n+              expected=True)),\n+        ('installed stable with channel',\n+         dict(snap='fake-snap-stable/latest/stable',\n+              expected=True)),\n+        ('not installed',\n+         dict(snap='missing-snap',\n+              expected=False)),\n+        ('not installed with channel',\n+         dict(snap='missing-snap/latest/stable',\n+              expected=False)),\n+    ]\n+\n+    def test_is_installed(self):\n+        snap_pkg = snaps.SnapPackage(self.snap)\n+        self.assertThat(snap_pkg.installed, Is(self.expected))\n+\n+    def test_is_installed_classmethod(self):\n+        self.assertThat(snaps.SnapPackage.is_snap_installed(self.snap),\n+                        Is(self.expected))\n+\n+\n+class SnapPackageIsInStoreTest(SnapPackageBaseTestCase):\n+\n+    scenarios = [\n+        ('in store',\n+         dict(snap='fake-snap',\n+              expected=True)),\n+        ('in store with channel',\n+         dict(snap='fake-snap/latest/stable',\n+              expected=True)),\n+        ('not in store',\n+         dict(snap='missing-snap',\n+              expected=False)),\n+        ('not in store with channel',\n+         dict(snap='missing-snap/latest/stable',\n+              expected=False)),\n+    ]\n+\n+    def test_is_in_store(self):\n+        snap_pkg = snaps.SnapPackage(self.snap)\n+        self.assertThat(snap_pkg.in_store, Is(self.expected))\n+\n+\n+class SnapPackageIsClasicTest(SnapPackageBaseTestCase):","path":"snapcraft/tests/repo/test_snaps.py","position":282,"original_position":282,"commit_id":"bec56edda0d28ab58cc046e878fdeba8443c1312","original_commit_id":"bec56edda0d28ab58cc046e878fdeba8443c1312","user":{"login":"kalikiana","id":1204189,"avatar_url":"https://avatars0.githubusercontent.com/u/1204189?v=4","gravatar_id":"","url":"https://api.github.com/users/kalikiana","html_url":"https://github.com/kalikiana","followers_url":"https://api.github.com/users/kalikiana/followers","following_url":"https://api.github.com/users/kalikiana/following{/other_user}","gists_url":"https://api.github.com/users/kalikiana/gists{/gist_id}","starred_url":"https://api.github.com/users/kalikiana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalikiana/subscriptions","organizations_url":"https://api.github.com/users/kalikiana/orgs","repos_url":"https://api.github.com/users/kalikiana/repos","events_url":"https://api.github.com/users/kalikiana/events{/privacy}","received_events_url":"https://api.github.com/users/kalikiana/received_events","type":"User","site_admin":false},"body":"Typo: SnapPackageIsClas**s**icTest should have two **s**.","created_at":"2017-09-04T10:11:19Z","updated_at":"2017-09-04T10:16:46Z","html_url":"https://github.com/snapcore/snapcraft/pull/1518#discussion_r136789007","pull_request_url":"https://api.github.com/repos/snapcore/snapcraft/pulls/1518","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/comments/136789007"},"html":{"href":"https://github.com/snapcore/snapcraft/pull/1518#discussion_r136789007"},"pull_request":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/1518"}}},"pull_request":{"url":"https://api.github.com/repos/snapcore/snapcraft/pulls/1518","id":138509606,"html_url":"https://github.com/snapcore/snapcraft/pull/1518","diff_url":"https://github.com/snapcore/snapcraft/pull/1518.diff","patch_url":"https://github.com/snapcore/snapcraft/pull/1518.patch","issue_url":"https://api.github.com/repos/snapcore/snapcraft/issues/1518","number":1518,"state":"open","locked":false,"title":"project: introduce build-snaps","user":{"login":"sergiusens","id":1146853,"avatar_url":"https://avatars2.githubusercontent.com/u/1146853?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiusens","html_url":"https://github.com/sergiusens","followers_url":"https://api.github.com/users/sergiusens/followers","following_url":"https://api.github.com/users/sergiusens/following{/other_user}","gists_url":"https://api.github.com/users/sergiusens/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiusens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiusens/subscriptions","organizations_url":"https://api.github.com/users/sergiusens/orgs","repos_url":"https://api.github.com/users/sergiusens/repos","events_url":"https://api.github.com/users/sergiusens/events{/privacy}","received_events_url":"https://api.github.com/users/sergiusens/received_events","type":"User","site_admin":false},"body":"Introduce build-snaps with support for advanced grammar.","created_at":"2017-08-30T19:34:26Z","updated_at":"2017-09-04T10:16:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5721c4dd95fc9f12d162cd2bc9db9a5504bf519a","assignee":{"login":"sergiusens","id":1146853,"avatar_url":"https://avatars2.githubusercontent.com/u/1146853?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiusens","html_url":"https://github.com/sergiusens","followers_url":"https://api.github.com/users/sergiusens/followers","following_url":"https://api.github.com/users/sergiusens/following{/other_user}","gists_url":"https://api.github.com/users/sergiusens/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiusens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiusens/subscriptions","organizations_url":"https://api.github.com/users/sergiusens/orgs","repos_url":"https://api.github.com/users/sergiusens/repos","events_url":"https://api.github.com/users/sergiusens/events{/privacy}","received_events_url":"https://api.github.com/users/sergiusens/received_events","type":"User","site_admin":false},"assignees":[{"login":"sergiusens","id":1146853,"avatar_url":"https://avatars2.githubusercontent.com/u/1146853?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiusens","html_url":"https://github.com/sergiusens","followers_url":"https://api.github.com/users/sergiusens/followers","following_url":"https://api.github.com/users/sergiusens/following{/other_user}","gists_url":"https://api.github.com/users/sergiusens/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiusens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiusens/subscriptions","organizations_url":"https://api.github.com/users/sergiusens/orgs","repos_url":"https://api.github.com/users/sergiusens/repos","events_url":"https://api.github.com/users/sergiusens/events{/privacy}","received_events_url":"https://api.github.com/users/sergiusens/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/snapcore/snapcraft/pulls/1518/commits","review_comments_url":"https://api.github.com/repos/snapcore/snapcraft/pulls/1518/comments","review_comment_url":"https://api.github.com/repos/snapcore/snapcraft/pulls/comments{/number}","comments_url":"https://api.github.com/repos/snapcore/snapcraft/issues/1518/comments","statuses_url":"https://api.github.com/repos/snapcore/snapcraft/statuses/bec56edda0d28ab58cc046e878fdeba8443c1312","head":{"label":"sergiusens:build-snap","ref":"build-snap","sha":"bec56edda0d28ab58cc046e878fdeba8443c1312","user":{"login":"sergiusens","id":1146853,"avatar_url":"https://avatars2.githubusercontent.com/u/1146853?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiusens","html_url":"https://github.com/sergiusens","followers_url":"https://api.github.com/users/sergiusens/followers","following_url":"https://api.github.com/users/sergiusens/following{/other_user}","gists_url":"https://api.github.com/users/sergiusens/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiusens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiusens/subscriptions","organizations_url":"https://api.github.com/users/sergiusens/orgs","repos_url":"https://api.github.com/users/sergiusens/repos","events_url":"https://api.github.com/users/sergiusens/events{/privacy}","received_events_url":"https://api.github.com/users/sergiusens/received_events","type":"User","site_admin":false},"repo":{"id":45202272,"name":"snapcraft","full_name":"sergiusens/snapcraft","owner":{"login":"sergiusens","id":1146853,"avatar_url":"https://avatars2.githubusercontent.com/u/1146853?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiusens","html_url":"https://github.com/sergiusens","followers_url":"https://api.github.com/users/sergiusens/followers","following_url":"https://api.github.com/users/sergiusens/following{/other_user}","gists_url":"https://api.github.com/users/sergiusens/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiusens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiusens/subscriptions","organizations_url":"https://api.github.com/users/sergiusens/orgs","repos_url":"https://api.github.com/users/sergiusens/repos","events_url":"https://api.github.com/users/sergiusens/events{/privacy}","received_events_url":"https://api.github.com/users/sergiusens/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sergiusens/snapcraft","description":"Snapcraft is a delightful packaging tool","fork":true,"url":"https://api.github.com/repos/sergiusens/snapcraft","forks_url":"https://api.github.com/repos/sergiusens/snapcraft/forks","keys_url":"https://api.github.com/repos/sergiusens/snapcraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sergiusens/snapcraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sergiusens/snapcraft/teams","hooks_url":"https://api.github.com/repos/sergiusens/snapcraft/hooks","issue_events_url":"https://api.github.com/repos/sergiusens/snapcraft/issues/events{/number}","events_url":"https://api.github.com/repos/sergiusens/snapcraft/events","assignees_url":"https://api.github.com/repos/sergiusens/snapcraft/assignees{/user}","branches_url":"https://api.github.com/repos/sergiusens/snapcraft/branches{/branch}","tags_url":"https://api.github.com/repos/sergiusens/snapcraft/tags","blobs_url":"https://api.github.com/repos/sergiusens/snapcraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sergiusens/snapcraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sergiusens/snapcraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/sergiusens/snapcraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sergiusens/snapcraft/statuses/{sha}","languages_url":"https://api.github.com/repos/sergiusens/snapcraft/languages","stargazers_url":"https://api.github.com/repos/sergiusens/snapcraft/stargazers","contributors_url":"https://api.github.com/repos/sergiusens/snapcraft/contributors","subscribers_url":"https://api.github.com/repos/sergiusens/snapcraft/subscribers","subscription_url":"https://api.github.com/repos/sergiusens/snapcraft/subscription","commits_url":"https://api.github.com/repos/sergiusens/snapcraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/sergiusens/snapcraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/sergiusens/snapcraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/sergiusens/snapcraft/issues/comments{/number}","contents_url":"https://api.github.com/repos/sergiusens/snapcraft/contents/{+path}","compare_url":"https://api.github.com/repos/sergiusens/snapcraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sergiusens/snapcraft/merges","archive_url":"https://api.github.com/repos/sergiusens/snapcraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sergiusens/snapcraft/downloads","issues_url":"https://api.github.com/repos/sergiusens/snapcraft/issues{/number}","pulls_url":"https://api.github.com/repos/sergiusens/snapcraft/pulls{/number}","milestones_url":"https://api.github.com/repos/sergiusens/snapcraft/milestones{/number}","notifications_url":"https://api.github.com/repos/sergiusens/snapcraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sergiusens/snapcraft/labels{/name}","releases_url":"https://api.github.com/repos/sergiusens/snapcraft/releases{/id}","deployments_url":"https://api.github.com/repos/sergiusens/snapcraft/deployments","created_at":"2015-10-29T18:19:58Z","updated_at":"2016-01-28T18:31:38Z","pushed_at":"2017-09-03T21:47:14Z","git_url":"git://github.com/sergiusens/snapcraft.git","ssh_url":"git@github.com:sergiusens/snapcraft.git","clone_url":"https://github.com/sergiusens/snapcraft.git","svn_url":"https://github.com/sergiusens/snapcraft","homepage":null,"size":7515,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"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":"snapcore:master","ref":"master","sha":"77a3a334aea54143959f508afdd9782d06f27ad9","user":{"login":"snapcore","id":19532717,"avatar_url":"https://avatars1.githubusercontent.com/u/19532717?v=4","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"repo":{"id":45199136,"name":"snapcraft","full_name":"snapcore/snapcraft","owner":{"login":"snapcore","id":19532717,"avatar_url":"https://avatars1.githubusercontent.com/u/19532717?v=4","gravatar_id":"","url":"https://api.github.com/users/snapcore","html_url":"https://github.com/snapcore","followers_url":"https://api.github.com/users/snapcore/followers","following_url":"https://api.github.com/users/snapcore/following{/other_user}","gists_url":"https://api.github.com/users/snapcore/gists{/gist_id}","starred_url":"https://api.github.com/users/snapcore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapcore/subscriptions","organizations_url":"https://api.github.com/users/snapcore/orgs","repos_url":"https://api.github.com/users/snapcore/repos","events_url":"https://api.github.com/users/snapcore/events{/privacy}","received_events_url":"https://api.github.com/users/snapcore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/snapcore/snapcraft","description":"Snapcraft is a delightful packaging tool","fork":false,"url":"https://api.github.com/repos/snapcore/snapcraft","forks_url":"https://api.github.com/repos/snapcore/snapcraft/forks","keys_url":"https://api.github.com/repos/snapcore/snapcraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snapcore/snapcraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snapcore/snapcraft/teams","hooks_url":"https://api.github.com/repos/snapcore/snapcraft/hooks","issue_events_url":"https://api.github.com/repos/snapcore/snapcraft/issues/events{/number}","events_url":"https://api.github.com/repos/snapcore/snapcraft/events","assignees_url":"https://api.github.com/repos/snapcore/snapcraft/assignees{/user}","branches_url":"https://api.github.com/repos/snapcore/snapcraft/branches{/branch}","tags_url":"https://api.github.com/repos/snapcore/snapcraft/tags","blobs_url":"https://api.github.com/repos/snapcore/snapcraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snapcore/snapcraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snapcore/snapcraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/snapcore/snapcraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snapcore/snapcraft/statuses/{sha}","languages_url":"https://api.github.com/repos/snapcore/snapcraft/languages","stargazers_url":"https://api.github.com/repos/snapcore/snapcraft/stargazers","contributors_url":"https://api.github.com/repos/snapcore/snapcraft/contributors","subscribers_url":"https://api.github.com/repos/snapcore/snapcraft/subscribers","subscription_url":"https://api.github.com/repos/snapcore/snapcraft/subscription","commits_url":"https://api.github.com/repos/snapcore/snapcraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/snapcore/snapcraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/snapcore/snapcraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/snapcore/snapcraft/issues/comments{/number}","contents_url":"https://api.github.com/repos/snapcore/snapcraft/contents/{+path}","compare_url":"https://api.github.com/repos/snapcore/snapcraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snapcore/snapcraft/merges","archive_url":"https://api.github.com/repos/snapcore/snapcraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snapcore/snapcraft/downloads","issues_url":"https://api.github.com/repos/snapcore/snapcraft/issues{/number}","pulls_url":"https://api.github.com/repos/snapcore/snapcraft/pulls{/number}","milestones_url":"https://api.github.com/repos/snapcore/snapcraft/milestones{/number}","notifications_url":"https://api.github.com/repos/snapcore/snapcraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snapcore/snapcraft/labels{/name}","releases_url":"https://api.github.com/repos/snapcore/snapcraft/releases{/id}","deployments_url":"https://api.github.com/repos/snapcore/snapcraft/deployments","created_at":"2015-10-29T17:23:15Z","updated_at":"2017-09-03T07:13:51Z","pushed_at":"2017-09-04T06:03:09Z","git_url":"git://github.com/snapcore/snapcraft.git","ssh_url":"git@github.com:snapcore/snapcraft.git","clone_url":"https://github.com/snapcore/snapcraft.git","svn_url":"https://github.com/snapcore/snapcraft","homepage":null,"size":7529,"stargazers_count":390,"watchers_count":390,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":202,"mirror_url":null,"open_issues_count":68,"forks":202,"open_issues":68,"watchers":390,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/1518"},"html":{"href":"https://github.com/snapcore/snapcraft/pull/1518"},"issue":{"href":"https://api.github.com/repos/snapcore/snapcraft/issues/1518"},"comments":{"href":"https://api.github.com/repos/snapcore/snapcraft/issues/1518/comments"},"review_comments":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/1518/comments"},"review_comment":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/snapcore/snapcraft/pulls/1518/commits"},"statuses":{"href":"https://api.github.com/repos/snapcore/snapcraft/statuses/bec56edda0d28ab58cc046e878fdeba8443c1312"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"kalikiana"}}