{"action":"created","comment":{"url":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/comments/85892976","pull_request_review_id":6579558,"id":85892976,"diff_hunk":"@@ -0,0 +1,237 @@\n+/*\n+ * Copyright (C) 2016 Pelagicore AB\n+ *\n+ * Permission to use, copy, modify, and/or distribute this software for\n+ * any purpose with or without fee is hereby granted, provided that the\n+ * above copyright notice and this permission notice appear in all copies.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL\n+ * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED\n+ * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR\n+ * BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES\n+ * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,\n+ * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,\n+ * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS\n+ * SOFTWARE.\n+ *\n+ * For further information see LICENSE\n+ */\n+\n+#include \"configstore.h\"\n+\n+\n+ConfigStore::ConfigStore(const std::string &inputPath)\n+{\n+    ReturnCode retval = ReturnCode::SUCCESS;\n+\n+    if (inputPath.empty()) {\n+        //File path is empty, this is ok\n+        return;\n+    } else if (isFile(inputPath)) {\n+        retval = readCapsFromFile(inputPath);\n+    } else if (isDirectory(inputPath)) {\n+        retval = readCapsFromDir(inputPath);\n+    } else {\n+        //Could not find a matching clause\n+        retval = ReturnCode::FAILURE;\n+    }\n+\n+    if (isError(retval)) {\n+        throw ReturnCode::FAILURE;\n+    }\n+}\n+\n+ConfigStore::~ConfigStore()\n+{\n+}\n+\n+ReturnCode ConfigStore::readCapsFromFile(const std::string &filePath)\n+{\n+    if (!is_json(filePath)) {\n+        log_debug() << \"File is not a json file: \\n\" << filePath;\n+        return ReturnCode::FAILURE;\n+    }\n+\n+    json_error_t error;\n+    json_t *fileroot = json_load_file(filePath.c_str(), 0, &error);\n+\n+    if (fileroot == nullptr) {\n+        log_error() << \"Could not parse Service Manifest: \\n\" <<\n+            filePath << \":\" << error.line <<\"\\n\" << error.text;\n+        return ReturnCode::FAILURE;\n+    } else if (!json_is_object(fileroot)) {\n+        log_error() << \"Configuration is not a json object: \\n\" <<\n+            filePath << \":\" << error.line <<\"\\n\" << error.text;\n+        return ReturnCode::FAILURE;\n+    }\n+\n+    json_t *capabilities = json_object_get(fileroot, \"capabilities\");\n+    if (capabilities == nullptr) {\n+        log_error() << \"Could not parse Capabilities\";\n+        return ReturnCode::FAILURE;\n+    }\n+    if (!json_is_array(capabilities)) {\n+        log_error() << \"Capabilities is not an array\";\n+        return ReturnCode::FAILURE;\n+    }\n+\n+    return parseCapabilities(capabilities);\n+}\n+\n+ReturnCode ConfigStore::readCapsFromDir(const std::string &dirPath)\n+{\n+    if (dirPath.compare(\"/\") == 0) {\n+        log_warning() << \"Searching for configuration files from root dir not allowed\";\n+        return ReturnCode::FAILURE;\n+    }\n+    if (isDirectoryEmpty(dirPath)) {\n+        log_warning() << \"Path to configuration files is empty: \" << dirPath;\n+        return ReturnCode::FAILURE;\n+    }\n+\n+    std::vector<std::string> files;\n+    files = fileList(dirPath);\n+\n+    if (files.empty()) {\n+        log_info() << \"No configuration files found: \" << dirPath;\n+        return ReturnCode::SUCCESS;\n+    }\n+\n+    for (unsigned int i = 0; i != files.size(); i++) {\n+        std::string filePath = dirPath + files[i];\n+\n+        if (readCapsFromFile(filePath) != ReturnCode::SUCCESS) {\n+            log_warning() << \"Could not parse a file in directory: \" << filePath;\n+        }\n+    }\n+\n+    return ReturnCode::SUCCESS;\n+}\n+\n+\n+GatewayConfiguration ConfigStore::readConfigs(const std::string capID)\n+{\n+    return m_configStore[capID];\n+}\n+\n+\n+ReturnCode ConfigStore::parseCapabilities(json_t *capabilities)\n+{\n+    std::map<std::string, GatewayConfiguration> caps;\n+\n+    size_t i;\n+    json_t *capability;\n+\n+    json_array_foreach(capabilities,i,capability) {\n+        if (!json_is_object(capability)) {\n+            log_error() << \"Capability is not a json object\";\n+            return ReturnCode::FAILURE;\n+        }\n+\n+        std::string capName;\n+        if (!JSONParser::read(capability,\"name\",capName)) {\n+            log_error() << \"Could not read Capability name\";\n+            return ReturnCode::FAILURE;\n+        }\n+\n+        json_t *gateways = json_object_get(capability, \"gateways\");\n+        if (gateways == nullptr) {\n+            log_error() << \"Could not read Gateways\";\n+            return ReturnCode::FAILURE;\n+        }\n+        if (!json_is_array(gateways)) {\n+            log_error() << \"Gateways is not an array\";\n+            return ReturnCode::FAILURE;\n+        }\n+\n+        return parseGateways(capName,gateways);\n+    }\n+    return ReturnCode::SUCCESS;\n+}\n+\n+ReturnCode ConfigStore::parseGateways(std::string capName, json_t *gateways)\n+{\n+    size_t j;\n+    json_t *gateway;\n+\n+    GatewayConfiguration gwConfs;\n+\n+    json_array_foreach(gateways, j, gateway) {\n+        if (!json_is_object(gateway)) {\n+            log_error() << \"Gateway is not a json object\";\n+            return ReturnCode::FAILURE;\n+        }\n+\n+        std::string gwID;\n+        if (!JSONParser::read(gateway,\"id\",gwID)) {\n+            log_error() << \"Could not read Gateway ID\";\n+            return ReturnCode::FAILURE;\n+        }\n+\n+        json_t *confs = json_object_get(gateway,\"config\");\n+        if (confs == nullptr) {\n+            log_error() << \"Could not read Gateway Config\";\n+            return ReturnCode::FAILURE;\n+        }\n+        if (!json_is_array(confs)) {\n+            log_error() << \"Gateway Config is not an array\";\n+            return ReturnCode::FAILURE;\n+        }\n+        gwConfs[gwID] = confs;\n+\n+    }\n+\n+    GatewayConfiguration oldGwConfs = m_configStore[capName];\n+\n+    /* If there is already a Gateway Configuration saved with the\n+     * same ID, then append the configs from this file to the\n+     * existing Gateway in the m_configstore\n+     */\n+    for (auto it=gwConfs.begin(); it!=gwConfs.end(); ++it) {\n+        std::string gwID = it->first;\n+        if (oldGwConfs.count(gwID) == 1) {\n+            json_t *val = oldGwConfs[gwID];\n+            if (json_array_extend(val, it->second) == -1) {\n+                log_error() << \"Could not add Gateway Config to json array: \" << gwID;\n+                return ReturnCode::FAILURE;\n+            }\n+        } else {\n+            oldGwConfs[gwID] = it->second;\n+        }\n+    }\n+    m_configStore[capName] = oldGwConfs;\n+\n+    return ReturnCode::SUCCESS;\n+}\n+\n+std::vector<std::string> ConfigStore::fileList(const std::string &filePath)\n+{\n+    std::vector<std::string> files;\n+\n+    DIR *dirFile = opendir(filePath.c_str());\n+    if (dirFile == nullptr) {\n+        log_error() << \"Could not open directory: \" << filePath << \"\\n\";\n+    } else {\n+        struct dirent *hFile;\n+        while ((hFile = readdir(dirFile)) != nullptr) {\n+            // TODO (thenor): we should check for '.' and '..'","path":"agent/src/capability/configstore.cpp","position":217,"original_position":217,"commit_id":"d8910377f2199f61ae9bd60c0f7c04ae9fc22121","original_commit_id":"d8910377f2199f61ae9bd60c0f7c04ae9fc22121","user":{"login":"thenor","id":21952123,"avatar_url":"https://avatars.githubusercontent.com/u/21952123?v=3","gravatar_id":"","url":"https://api.github.com/users/thenor","html_url":"https://github.com/thenor","followers_url":"https://api.github.com/users/thenor/followers","following_url":"https://api.github.com/users/thenor/following{/other_user}","gists_url":"https://api.github.com/users/thenor/gists{/gist_id}","starred_url":"https://api.github.com/users/thenor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thenor/subscriptions","organizations_url":"https://api.github.com/users/thenor/orgs","repos_url":"https://api.github.com/users/thenor/repos","events_url":"https://api.github.com/users/thenor/events{/privacy}","received_events_url":"https://api.github.com/users/thenor/received_events","type":"User","site_admin":false},"body":"This was in part a reminder about looking in to how to handle \"..\" or \".\". How do you think they should be handled?\r\nI think other checks will make this fail or not fail anyway. Was just thinking if I should handle this as \"/\" where I don't allow it.","created_at":"2016-11-01T08:55:52Z","updated_at":"2016-11-01T08:55:53Z","html_url":"https://github.com/Pelagicore/softwarecontainer/pull/109#discussion_r85892976","pull_request_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/109","_links":{"self":{"href":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/comments/85892976"},"html":{"href":"https://github.com/Pelagicore/softwarecontainer/pull/109#discussion_r85892976"},"pull_request":{"href":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/109"}}},"pull_request":{"url":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/109","id":91392061,"html_url":"https://github.com/Pelagicore/softwarecontainer/pull/109","diff_url":"https://github.com/Pelagicore/softwarecontainer/pull/109.diff","patch_url":"https://github.com/Pelagicore/softwarecontainer/pull/109.patch","issue_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/issues/109","number":109,"state":"open","locked":false,"title":"WIP: Reading capabilities from disk","user":{"login":"thenor","id":21952123,"avatar_url":"https://avatars.githubusercontent.com/u/21952123?v=3","gravatar_id":"","url":"https://api.github.com/users/thenor","html_url":"https://github.com/thenor","followers_url":"https://api.github.com/users/thenor/followers","following_url":"https://api.github.com/users/thenor/following{/other_user}","gists_url":"https://api.github.com/users/thenor/gists{/gist_id}","starred_url":"https://api.github.com/users/thenor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thenor/subscriptions","organizations_url":"https://api.github.com/users/thenor/orgs","repos_url":"https://api.github.com/users/thenor/repos","events_url":"https://api.github.com/users/thenor/events{/privacy}","received_events_url":"https://api.github.com/users/thenor/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-28T14:31:31Z","updated_at":"2016-11-01T08:55:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42e1a481af29b6abb4b8bccc97e9cfc5b5224059","assignee":{"login":"tobsan","id":122421,"avatar_url":"https://avatars.githubusercontent.com/u/122421?v=3","gravatar_id":"","url":"https://api.github.com/users/tobsan","html_url":"https://github.com/tobsan","followers_url":"https://api.github.com/users/tobsan/followers","following_url":"https://api.github.com/users/tobsan/following{/other_user}","gists_url":"https://api.github.com/users/tobsan/gists{/gist_id}","starred_url":"https://api.github.com/users/tobsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobsan/subscriptions","organizations_url":"https://api.github.com/users/tobsan/orgs","repos_url":"https://api.github.com/users/tobsan/repos","events_url":"https://api.github.com/users/tobsan/events{/privacy}","received_events_url":"https://api.github.com/users/tobsan/received_events","type":"User","site_admin":false},"assignees":[{"login":"tobsan","id":122421,"avatar_url":"https://avatars.githubusercontent.com/u/122421?v=3","gravatar_id":"","url":"https://api.github.com/users/tobsan","html_url":"https://github.com/tobsan","followers_url":"https://api.github.com/users/tobsan/followers","following_url":"https://api.github.com/users/tobsan/following{/other_user}","gists_url":"https://api.github.com/users/tobsan/gists{/gist_id}","starred_url":"https://api.github.com/users/tobsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobsan/subscriptions","organizations_url":"https://api.github.com/users/tobsan/orgs","repos_url":"https://api.github.com/users/tobsan/repos","events_url":"https://api.github.com/users/tobsan/events{/privacy}","received_events_url":"https://api.github.com/users/tobsan/received_events","type":"User","site_admin":false},{"login":"kursatkobya","id":3169121,"avatar_url":"https://avatars.githubusercontent.com/u/3169121?v=3","gravatar_id":"","url":"https://api.github.com/users/kursatkobya","html_url":"https://github.com/kursatkobya","followers_url":"https://api.github.com/users/kursatkobya/followers","following_url":"https://api.github.com/users/kursatkobya/following{/other_user}","gists_url":"https://api.github.com/users/kursatkobya/gists{/gist_id}","starred_url":"https://api.github.com/users/kursatkobya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kursatkobya/subscriptions","organizations_url":"https://api.github.com/users/kursatkobya/orgs","repos_url":"https://api.github.com/users/kursatkobya/repos","events_url":"https://api.github.com/users/kursatkobya/events{/privacy}","received_events_url":"https://api.github.com/users/kursatkobya/received_events","type":"User","site_admin":false},{"login":"DunderRoffe","id":5956077,"avatar_url":"https://avatars.githubusercontent.com/u/5956077?v=3","gravatar_id":"","url":"https://api.github.com/users/DunderRoffe","html_url":"https://github.com/DunderRoffe","followers_url":"https://api.github.com/users/DunderRoffe/followers","following_url":"https://api.github.com/users/DunderRoffe/following{/other_user}","gists_url":"https://api.github.com/users/DunderRoffe/gists{/gist_id}","starred_url":"https://api.github.com/users/DunderRoffe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DunderRoffe/subscriptions","organizations_url":"https://api.github.com/users/DunderRoffe/orgs","repos_url":"https://api.github.com/users/DunderRoffe/repos","events_url":"https://api.github.com/users/DunderRoffe/events{/privacy}","received_events_url":"https://api.github.com/users/DunderRoffe/received_events","type":"User","site_admin":false},{"login":"frznlogic","id":6243348,"avatar_url":"https://avatars.githubusercontent.com/u/6243348?v=3","gravatar_id":"","url":"https://api.github.com/users/frznlogic","html_url":"https://github.com/frznlogic","followers_url":"https://api.github.com/users/frznlogic/followers","following_url":"https://api.github.com/users/frznlogic/following{/other_user}","gists_url":"https://api.github.com/users/frznlogic/gists{/gist_id}","starred_url":"https://api.github.com/users/frznlogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frznlogic/subscriptions","organizations_url":"https://api.github.com/users/frznlogic/orgs","repos_url":"https://api.github.com/users/frznlogic/repos","events_url":"https://api.github.com/users/frznlogic/events{/privacy}","received_events_url":"https://api.github.com/users/frznlogic/received_events","type":"User","site_admin":false},{"login":"breakreturn","id":13065146,"avatar_url":"https://avatars.githubusercontent.com/u/13065146?v=3","gravatar_id":"","url":"https://api.github.com/users/breakreturn","html_url":"https://github.com/breakreturn","followers_url":"https://api.github.com/users/breakreturn/followers","following_url":"https://api.github.com/users/breakreturn/following{/other_user}","gists_url":"https://api.github.com/users/breakreturn/gists{/gist_id}","starred_url":"https://api.github.com/users/breakreturn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breakreturn/subscriptions","organizations_url":"https://api.github.com/users/breakreturn/orgs","repos_url":"https://api.github.com/users/breakreturn/repos","events_url":"https://api.github.com/users/breakreturn/events{/privacy}","received_events_url":"https://api.github.com/users/breakreturn/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/109/commits","review_comments_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/109/comments","review_comment_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/issues/109/comments","statuses_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/statuses/d8910377f2199f61ae9bd60c0f7c04ae9fc22121","head":{"label":"thenor:cap_disk_read","ref":"cap_disk_read","sha":"d8910377f2199f61ae9bd60c0f7c04ae9fc22121","user":{"login":"thenor","id":21952123,"avatar_url":"https://avatars.githubusercontent.com/u/21952123?v=3","gravatar_id":"","url":"https://api.github.com/users/thenor","html_url":"https://github.com/thenor","followers_url":"https://api.github.com/users/thenor/followers","following_url":"https://api.github.com/users/thenor/following{/other_user}","gists_url":"https://api.github.com/users/thenor/gists{/gist_id}","starred_url":"https://api.github.com/users/thenor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thenor/subscriptions","organizations_url":"https://api.github.com/users/thenor/orgs","repos_url":"https://api.github.com/users/thenor/repos","events_url":"https://api.github.com/users/thenor/events{/privacy}","received_events_url":"https://api.github.com/users/thenor/received_events","type":"User","site_admin":false},"repo":{"id":67777511,"name":"softwarecontainer","full_name":"thenor/softwarecontainer","owner":{"login":"thenor","id":21952123,"avatar_url":"https://avatars.githubusercontent.com/u/21952123?v=3","gravatar_id":"","url":"https://api.github.com/users/thenor","html_url":"https://github.com/thenor","followers_url":"https://api.github.com/users/thenor/followers","following_url":"https://api.github.com/users/thenor/following{/other_user}","gists_url":"https://api.github.com/users/thenor/gists{/gist_id}","starred_url":"https://api.github.com/users/thenor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thenor/subscriptions","organizations_url":"https://api.github.com/users/thenor/orgs","repos_url":"https://api.github.com/users/thenor/repos","events_url":"https://api.github.com/users/thenor/events{/privacy}","received_events_url":"https://api.github.com/users/thenor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thenor/softwarecontainer","description":"Framework to manage and contain applications in an automotive setting","fork":true,"url":"https://api.github.com/repos/thenor/softwarecontainer","forks_url":"https://api.github.com/repos/thenor/softwarecontainer/forks","keys_url":"https://api.github.com/repos/thenor/softwarecontainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thenor/softwarecontainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thenor/softwarecontainer/teams","hooks_url":"https://api.github.com/repos/thenor/softwarecontainer/hooks","issue_events_url":"https://api.github.com/repos/thenor/softwarecontainer/issues/events{/number}","events_url":"https://api.github.com/repos/thenor/softwarecontainer/events","assignees_url":"https://api.github.com/repos/thenor/softwarecontainer/assignees{/user}","branches_url":"https://api.github.com/repos/thenor/softwarecontainer/branches{/branch}","tags_url":"https://api.github.com/repos/thenor/softwarecontainer/tags","blobs_url":"https://api.github.com/repos/thenor/softwarecontainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thenor/softwarecontainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thenor/softwarecontainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/thenor/softwarecontainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thenor/softwarecontainer/statuses/{sha}","languages_url":"https://api.github.com/repos/thenor/softwarecontainer/languages","stargazers_url":"https://api.github.com/repos/thenor/softwarecontainer/stargazers","contributors_url":"https://api.github.com/repos/thenor/softwarecontainer/contributors","subscribers_url":"https://api.github.com/repos/thenor/softwarecontainer/subscribers","subscription_url":"https://api.github.com/repos/thenor/softwarecontainer/subscription","commits_url":"https://api.github.com/repos/thenor/softwarecontainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/thenor/softwarecontainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/thenor/softwarecontainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/thenor/softwarecontainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/thenor/softwarecontainer/contents/{+path}","compare_url":"https://api.github.com/repos/thenor/softwarecontainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thenor/softwarecontainer/merges","archive_url":"https://api.github.com/repos/thenor/softwarecontainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thenor/softwarecontainer/downloads","issues_url":"https://api.github.com/repos/thenor/softwarecontainer/issues{/number}","pulls_url":"https://api.github.com/repos/thenor/softwarecontainer/pulls{/number}","milestones_url":"https://api.github.com/repos/thenor/softwarecontainer/milestones{/number}","notifications_url":"https://api.github.com/repos/thenor/softwarecontainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thenor/softwarecontainer/labels{/name}","releases_url":"https://api.github.com/repos/thenor/softwarecontainer/releases{/id}","deployments_url":"https://api.github.com/repos/thenor/softwarecontainer/deployments","created_at":"2016-09-09T07:38:56Z","updated_at":"2016-09-09T07:38:59Z","pushed_at":"2016-10-31T12:07:41Z","git_url":"git://github.com/thenor/softwarecontainer.git","ssh_url":"git@github.com:thenor/softwarecontainer.git","clone_url":"https://github.com/thenor/softwarecontainer.git","svn_url":"https://github.com/thenor/softwarecontainer","homepage":"","size":1739,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"Pelagicore:master","ref":"master","sha":"f7545c4e967df0e41fb472c48a0325b9e9743030","user":{"login":"Pelagicore","id":4661080,"avatar_url":"https://avatars.githubusercontent.com/u/4661080?v=3","gravatar_id":"","url":"https://api.github.com/users/Pelagicore","html_url":"https://github.com/Pelagicore","followers_url":"https://api.github.com/users/Pelagicore/followers","following_url":"https://api.github.com/users/Pelagicore/following{/other_user}","gists_url":"https://api.github.com/users/Pelagicore/gists{/gist_id}","starred_url":"https://api.github.com/users/Pelagicore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pelagicore/subscriptions","organizations_url":"https://api.github.com/users/Pelagicore/orgs","repos_url":"https://api.github.com/users/Pelagicore/repos","events_url":"https://api.github.com/users/Pelagicore/events{/privacy}","received_events_url":"https://api.github.com/users/Pelagicore/received_events","type":"Organization","site_admin":false},"repo":{"id":67503064,"name":"softwarecontainer","full_name":"Pelagicore/softwarecontainer","owner":{"login":"Pelagicore","id":4661080,"avatar_url":"https://avatars.githubusercontent.com/u/4661080?v=3","gravatar_id":"","url":"https://api.github.com/users/Pelagicore","html_url":"https://github.com/Pelagicore","followers_url":"https://api.github.com/users/Pelagicore/followers","following_url":"https://api.github.com/users/Pelagicore/following{/other_user}","gists_url":"https://api.github.com/users/Pelagicore/gists{/gist_id}","starred_url":"https://api.github.com/users/Pelagicore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pelagicore/subscriptions","organizations_url":"https://api.github.com/users/Pelagicore/orgs","repos_url":"https://api.github.com/users/Pelagicore/repos","events_url":"https://api.github.com/users/Pelagicore/events{/privacy}","received_events_url":"https://api.github.com/users/Pelagicore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Pelagicore/softwarecontainer","description":"Framework to manage and contain applications in an automotive setting","fork":false,"url":"https://api.github.com/repos/Pelagicore/softwarecontainer","forks_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/forks","keys_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/teams","hooks_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/hooks","issue_events_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/issues/events{/number}","events_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/events","assignees_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/assignees{/user}","branches_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/branches{/branch}","tags_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/tags","blobs_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/statuses/{sha}","languages_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/languages","stargazers_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/stargazers","contributors_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/contributors","subscribers_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/subscribers","subscription_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/subscription","commits_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/contents/{+path}","compare_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/merges","archive_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/downloads","issues_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/issues{/number}","pulls_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls{/number}","milestones_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/milestones{/number}","notifications_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/labels{/name}","releases_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/releases{/id}","deployments_url":"https://api.github.com/repos/Pelagicore/softwarecontainer/deployments","created_at":"2016-09-06T11:46:06Z","updated_at":"2016-10-25T13:24:35Z","pushed_at":"2016-11-01T08:25:50Z","git_url":"git://github.com/Pelagicore/softwarecontainer.git","ssh_url":"git@github.com:Pelagicore/softwarecontainer.git","clone_url":"https://github.com/Pelagicore/softwarecontainer.git","svn_url":"https://github.com/Pelagicore/softwarecontainer","homepage":"https://pelagicore.github.io/softwarecontainer/","size":3580,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/109"},"html":{"href":"https://github.com/Pelagicore/softwarecontainer/pull/109"},"issue":{"href":"https://api.github.com/repos/Pelagicore/softwarecontainer/issues/109"},"comments":{"href":"https://api.github.com/repos/Pelagicore/softwarecontainer/issues/109/comments"},"review_comments":{"href":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/109/comments"},"review_comment":{"href":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Pelagicore/softwarecontainer/pulls/109/commits"},"statuses":{"href":"https://api.github.com/repos/Pelagicore/softwarecontainer/statuses/d8910377f2199f61ae9bd60c0f7c04ae9fc22121"}}}}
{"actor":{"display_login":"thenor"}}