{"action":"created","comment":{"url":"https://api.github.com/repos/jazdrv/dnaTools/pulls/comments/166739045","pull_request_review_id":94851215,"id":166739045,"diff_hunk":"@@ -0,0 +1,33 @@\n+#!/usr/bin/env python3\n+#\n+# Copyright (c) 2018 the Authors\n+#\n+# Purpose: Fetch kit data from the Web\n+#\n+\n+import yaml\n+from lib import *\n+\n+def global_init():\n+  # environment variable required\n+  try:\n+    sys.path.append(os.environ['REDUX_PATH'])\n+    REDUX_CONF = os.path.join(os.environ['REDUX_PATH'], 'config.yaml')\n+  except:\n+    trace(0,\"Missing environment variable REDUX_PATH. Aborting.\")\n+    sys.exit()\n+\n+  # parse the remainder of the configuration settings\n+  config = yaml.load(open(REDUX_CONF))\n+\n+\n+def main():\n+  global_init()\n+  trace(0, 'Fetching kit info')\n+  # Get the kits info into json.out no matter what the config says.","path":"src/fetch_kits.py","position":27,"original_position":27,"commit_id":"b32fa66d05c4b985bccfcdc9d3bd69c302851d59","original_commit_id":"b32fa66d05c4b985bccfcdc9d3bd69c302851d59","user":{"login":"jeftreece","id":35390764,"avatar_url":"https://avatars1.githubusercontent.com/u/35390764?v=4","gravatar_id":"","url":"https://api.github.com/users/jeftreece","html_url":"https://github.com/jeftreece","followers_url":"https://api.github.com/users/jeftreece/followers","following_url":"https://api.github.com/users/jeftreece/following{/other_user}","gists_url":"https://api.github.com/users/jeftreece/gists{/gist_id}","starred_url":"https://api.github.com/users/jeftreece/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeftreece/subscriptions","organizations_url":"https://api.github.com/users/jeftreece/orgs","repos_url":"https://api.github.com/users/jeftreece/repos","events_url":"https://api.github.com/users/jeftreece/events{/privacy}","received_events_url":"https://api.github.com/users/jeftreece/received_events","type":"User","site_admin":false},"body":"I hadn't really intended json.out to be permanent. I used it because I was testing things a lot and didn't want to pull data from the web every time I ran a test. However, I think it's an idea worth keeping. It probably needs to go into the data directory rather than cluttering the source directory. It might be better to just improve the logic in the main program rather than building a new program to do just that? Or is the intent of this program to grow into more, such as loading kits?","created_at":"2018-02-07T20:04:22Z","updated_at":"2018-02-07T20:04:22Z","html_url":"https://github.com/jazdrv/dnaTools/pull/7#discussion_r166739045","pull_request_url":"https://api.github.com/repos/jazdrv/dnaTools/pulls/7","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/jazdrv/dnaTools/pulls/comments/166739045"},"html":{"href":"https://github.com/jazdrv/dnaTools/pull/7#discussion_r166739045"},"pull_request":{"href":"https://api.github.com/repos/jazdrv/dnaTools/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/jazdrv/dnaTools/pulls/7","id":167591625,"html_url":"https://github.com/jazdrv/dnaTools/pull/7","diff_url":"https://github.com/jazdrv/dnaTools/pull/7.diff","patch_url":"https://github.com/jazdrv/dnaTools/pull/7.patch","issue_url":"https://api.github.com/repos/jazdrv/dnaTools/issues/7","number":7,"state":"open","locked":false,"title":"Added new executable \"fetch_kits.py\"","user":{"login":"alvestrand","id":480893,"avatar_url":"https://avatars2.githubusercontent.com/u/480893?v=4","gravatar_id":"","url":"https://api.github.com/users/alvestrand","html_url":"https://github.com/alvestrand","followers_url":"https://api.github.com/users/alvestrand/followers","following_url":"https://api.github.com/users/alvestrand/following{/other_user}","gists_url":"https://api.github.com/users/alvestrand/gists{/gist_id}","starred_url":"https://api.github.com/users/alvestrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvestrand/subscriptions","organizations_url":"https://api.github.com/users/alvestrand/orgs","repos_url":"https://api.github.com/users/alvestrand/repos","events_url":"https://api.github.com/users/alvestrand/events{/privacy}","received_events_url":"https://api.github.com/users/alvestrand/received_events","type":"User","site_admin":false},"body":"This fetches kit info uncondintionally, and means\r\nthat you don't have to change the config to get started.:","created_at":"2018-02-07T03:45:35Z","updated_at":"2018-02-07T20:04:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3312e864e3d102a8571b521cb17bcc1abd5b4da3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/jazdrv/dnaTools/pulls/7/commits","review_comments_url":"https://api.github.com/repos/jazdrv/dnaTools/pulls/7/comments","review_comment_url":"https://api.github.com/repos/jazdrv/dnaTools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jazdrv/dnaTools/issues/7/comments","statuses_url":"https://api.github.com/repos/jazdrv/dnaTools/statuses/b32fa66d05c4b985bccfcdc9d3bd69c302851d59","head":{"label":"alvestrand:fetch-kits","ref":"fetch-kits","sha":"b32fa66d05c4b985bccfcdc9d3bd69c302851d59","user":{"login":"alvestrand","id":480893,"avatar_url":"https://avatars2.githubusercontent.com/u/480893?v=4","gravatar_id":"","url":"https://api.github.com/users/alvestrand","html_url":"https://github.com/alvestrand","followers_url":"https://api.github.com/users/alvestrand/followers","following_url":"https://api.github.com/users/alvestrand/following{/other_user}","gists_url":"https://api.github.com/users/alvestrand/gists{/gist_id}","starred_url":"https://api.github.com/users/alvestrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvestrand/subscriptions","organizations_url":"https://api.github.com/users/alvestrand/orgs","repos_url":"https://api.github.com/users/alvestrand/repos","events_url":"https://api.github.com/users/alvestrand/events{/privacy}","received_events_url":"https://api.github.com/users/alvestrand/received_events","type":"User","site_admin":false},"repo":{"id":117149484,"name":"dnaTools","full_name":"alvestrand/dnaTools","owner":{"login":"alvestrand","id":480893,"avatar_url":"https://avatars2.githubusercontent.com/u/480893?v=4","gravatar_id":"","url":"https://api.github.com/users/alvestrand","html_url":"https://github.com/alvestrand","followers_url":"https://api.github.com/users/alvestrand/followers","following_url":"https://api.github.com/users/alvestrand/following{/other_user}","gists_url":"https://api.github.com/users/alvestrand/gists{/gist_id}","starred_url":"https://api.github.com/users/alvestrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvestrand/subscriptions","organizations_url":"https://api.github.com/users/alvestrand/orgs","repos_url":"https://api.github.com/users/alvestrand/repos","events_url":"https://api.github.com/users/alvestrand/events{/privacy}","received_events_url":"https://api.github.com/users/alvestrand/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alvestrand/dnaTools","description":null,"fork":true,"url":"https://api.github.com/repos/alvestrand/dnaTools","forks_url":"https://api.github.com/repos/alvestrand/dnaTools/forks","keys_url":"https://api.github.com/repos/alvestrand/dnaTools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alvestrand/dnaTools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alvestrand/dnaTools/teams","hooks_url":"https://api.github.com/repos/alvestrand/dnaTools/hooks","issue_events_url":"https://api.github.com/repos/alvestrand/dnaTools/issues/events{/number}","events_url":"https://api.github.com/repos/alvestrand/dnaTools/events","assignees_url":"https://api.github.com/repos/alvestrand/dnaTools/assignees{/user}","branches_url":"https://api.github.com/repos/alvestrand/dnaTools/branches{/branch}","tags_url":"https://api.github.com/repos/alvestrand/dnaTools/tags","blobs_url":"https://api.github.com/repos/alvestrand/dnaTools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alvestrand/dnaTools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alvestrand/dnaTools/git/refs{/sha}","trees_url":"https://api.github.com/repos/alvestrand/dnaTools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alvestrand/dnaTools/statuses/{sha}","languages_url":"https://api.github.com/repos/alvestrand/dnaTools/languages","stargazers_url":"https://api.github.com/repos/alvestrand/dnaTools/stargazers","contributors_url":"https://api.github.com/repos/alvestrand/dnaTools/contributors","subscribers_url":"https://api.github.com/repos/alvestrand/dnaTools/subscribers","subscription_url":"https://api.github.com/repos/alvestrand/dnaTools/subscription","commits_url":"https://api.github.com/repos/alvestrand/dnaTools/commits{/sha}","git_commits_url":"https://api.github.com/repos/alvestrand/dnaTools/git/commits{/sha}","comments_url":"https://api.github.com/repos/alvestrand/dnaTools/comments{/number}","issue_comment_url":"https://api.github.com/repos/alvestrand/dnaTools/issues/comments{/number}","contents_url":"https://api.github.com/repos/alvestrand/dnaTools/contents/{+path}","compare_url":"https://api.github.com/repos/alvestrand/dnaTools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alvestrand/dnaTools/merges","archive_url":"https://api.github.com/repos/alvestrand/dnaTools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alvestrand/dnaTools/downloads","issues_url":"https://api.github.com/repos/alvestrand/dnaTools/issues{/number}","pulls_url":"https://api.github.com/repos/alvestrand/dnaTools/pulls{/number}","milestones_url":"https://api.github.com/repos/alvestrand/dnaTools/milestones{/number}","notifications_url":"https://api.github.com/repos/alvestrand/dnaTools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alvestrand/dnaTools/labels{/name}","releases_url":"https://api.github.com/repos/alvestrand/dnaTools/releases{/id}","deployments_url":"https://api.github.com/repos/alvestrand/dnaTools/deployments","created_at":"2018-01-11T20:25:25Z","updated_at":"2018-01-11T20:25:29Z","pushed_at":"2018-02-07T03:44:10Z","git_url":"git://github.com/alvestrand/dnaTools.git","ssh_url":"git@github.com:alvestrand/dnaTools.git","clone_url":"https://github.com/alvestrand/dnaTools.git","svn_url":"https://github.com/alvestrand/dnaTools","homepage":null,"size":72318,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jazdrv:master","ref":"master","sha":"ed22143a19ce079a104d9726dd3124226162ddb2","user":{"login":"jazdrv","id":1919764,"avatar_url":"https://avatars2.githubusercontent.com/u/1919764?v=4","gravatar_id":"","url":"https://api.github.com/users/jazdrv","html_url":"https://github.com/jazdrv","followers_url":"https://api.github.com/users/jazdrv/followers","following_url":"https://api.github.com/users/jazdrv/following{/other_user}","gists_url":"https://api.github.com/users/jazdrv/gists{/gist_id}","starred_url":"https://api.github.com/users/jazdrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazdrv/subscriptions","organizations_url":"https://api.github.com/users/jazdrv/orgs","repos_url":"https://api.github.com/users/jazdrv/repos","events_url":"https://api.github.com/users/jazdrv/events{/privacy}","received_events_url":"https://api.github.com/users/jazdrv/received_events","type":"User","site_admin":false},"repo":{"id":117127327,"name":"dnaTools","full_name":"jazdrv/dnaTools","owner":{"login":"jazdrv","id":1919764,"avatar_url":"https://avatars2.githubusercontent.com/u/1919764?v=4","gravatar_id":"","url":"https://api.github.com/users/jazdrv","html_url":"https://github.com/jazdrv","followers_url":"https://api.github.com/users/jazdrv/followers","following_url":"https://api.github.com/users/jazdrv/following{/other_user}","gists_url":"https://api.github.com/users/jazdrv/gists{/gist_id}","starred_url":"https://api.github.com/users/jazdrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazdrv/subscriptions","organizations_url":"https://api.github.com/users/jazdrv/orgs","repos_url":"https://api.github.com/users/jazdrv/repos","events_url":"https://api.github.com/users/jazdrv/events{/privacy}","received_events_url":"https://api.github.com/users/jazdrv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jazdrv/dnaTools","description":null,"fork":false,"url":"https://api.github.com/repos/jazdrv/dnaTools","forks_url":"https://api.github.com/repos/jazdrv/dnaTools/forks","keys_url":"https://api.github.com/repos/jazdrv/dnaTools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jazdrv/dnaTools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jazdrv/dnaTools/teams","hooks_url":"https://api.github.com/repos/jazdrv/dnaTools/hooks","issue_events_url":"https://api.github.com/repos/jazdrv/dnaTools/issues/events{/number}","events_url":"https://api.github.com/repos/jazdrv/dnaTools/events","assignees_url":"https://api.github.com/repos/jazdrv/dnaTools/assignees{/user}","branches_url":"https://api.github.com/repos/jazdrv/dnaTools/branches{/branch}","tags_url":"https://api.github.com/repos/jazdrv/dnaTools/tags","blobs_url":"https://api.github.com/repos/jazdrv/dnaTools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jazdrv/dnaTools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jazdrv/dnaTools/git/refs{/sha}","trees_url":"https://api.github.com/repos/jazdrv/dnaTools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jazdrv/dnaTools/statuses/{sha}","languages_url":"https://api.github.com/repos/jazdrv/dnaTools/languages","stargazers_url":"https://api.github.com/repos/jazdrv/dnaTools/stargazers","contributors_url":"https://api.github.com/repos/jazdrv/dnaTools/contributors","subscribers_url":"https://api.github.com/repos/jazdrv/dnaTools/subscribers","subscription_url":"https://api.github.com/repos/jazdrv/dnaTools/subscription","commits_url":"https://api.github.com/repos/jazdrv/dnaTools/commits{/sha}","git_commits_url":"https://api.github.com/repos/jazdrv/dnaTools/git/commits{/sha}","comments_url":"https://api.github.com/repos/jazdrv/dnaTools/comments{/number}","issue_comment_url":"https://api.github.com/repos/jazdrv/dnaTools/issues/comments{/number}","contents_url":"https://api.github.com/repos/jazdrv/dnaTools/contents/{+path}","compare_url":"https://api.github.com/repos/jazdrv/dnaTools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jazdrv/dnaTools/merges","archive_url":"https://api.github.com/repos/jazdrv/dnaTools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jazdrv/dnaTools/downloads","issues_url":"https://api.github.com/repos/jazdrv/dnaTools/issues{/number}","pulls_url":"https://api.github.com/repos/jazdrv/dnaTools/pulls{/number}","milestones_url":"https://api.github.com/repos/jazdrv/dnaTools/milestones{/number}","notifications_url":"https://api.github.com/repos/jazdrv/dnaTools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jazdrv/dnaTools/labels{/name}","releases_url":"https://api.github.com/repos/jazdrv/dnaTools/releases{/id}","deployments_url":"https://api.github.com/repos/jazdrv/dnaTools/deployments","created_at":"2018-01-11T16:56:09Z","updated_at":"2018-01-11T16:59:35Z","pushed_at":"2018-02-07T17:26:41Z","git_url":"git://github.com/jazdrv/dnaTools.git","ssh_url":"git@github.com:jazdrv/dnaTools.git","clone_url":"https://github.com/jazdrv/dnaTools.git","svn_url":"https://github.com/jazdrv/dnaTools","homepage":null,"size":72674,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jazdrv/dnaTools/pulls/7"},"html":{"href":"https://github.com/jazdrv/dnaTools/pull/7"},"issue":{"href":"https://api.github.com/repos/jazdrv/dnaTools/issues/7"},"comments":{"href":"https://api.github.com/repos/jazdrv/dnaTools/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/jazdrv/dnaTools/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/jazdrv/dnaTools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jazdrv/dnaTools/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/jazdrv/dnaTools/statuses/b32fa66d05c4b985bccfcdc9d3bd69c302851d59"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"jeftreece"}}