{"action":"opened","number":34,"pull_request":{"url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/pulls/34","id":45505358,"html_url":"https://github.com/loudnate/openaps-mmhistorytools/pull/34","diff_url":"https://github.com/loudnate/openaps-mmhistorytools/pull/34.diff","patch_url":"https://github.com/loudnate/openaps-mmhistorytools/pull/34.patch","issue_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/issues/34","number":34,"state":"open","locked":false,"title":"Adding a \"prepare\" command streamline the most common flow","user":{"login":"loudnate","id":212876,"avatar_url":"https://avatars.githubusercontent.com/u/212876?v=3","gravatar_id":"","url":"https://api.github.com/users/loudnate","html_url":"https://github.com/loudnate","followers_url":"https://api.github.com/users/loudnate/followers","following_url":"https://api.github.com/users/loudnate/following{/other_user}","gists_url":"https://api.github.com/users/loudnate/gists{/gist_id}","starred_url":"https://api.github.com/users/loudnate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loudnate/subscriptions","organizations_url":"https://api.github.com/users/loudnate/orgs","repos_url":"https://api.github.com/users/loudnate/repos","events_url":"https://api.github.com/users/loudnate/events{/privacy}","received_events_url":"https://api.github.com/users/loudnate/received_events","type":"User","site_admin":false},"body":"Fixes #30 \r\n\r\n```\r\n$ openaps use history prepare -h\r\nusage: openaps-use history prepare [-h] [--basal-profile BASAL_PROFILE] [infile]\r\n\r\nRuns a sequence of commands to prepare history for use in prediction and dosing.\r\n\r\npositional arguments:\r\n  infile                JSON-encoded history data\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  --basal-profile BASAL_PROFILE\r\n                        A file containing a basal profile by which to adjust\r\n                        TempBasal records\r\n\r\nThis command performs the following commands in sequence:\r\n[clean] -> [reconcile] -> [resolve] -> [normalize:basal-profile]\r\n_\r\nPlease refer to the --help documentation of each command for more information.\r\n_\r\nWARNING: This command will not return the same level of diagnostic logging as\r\nrunning all four commands separately. If there is any reason to believe an\r\nissue issue occurred, output from this command may not be sufficient for\r\ndebugging.\r\n```","created_at":"2015-09-20T22:13:11Z","updated_at":"2015-09-20T22:13:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/pulls/34/commits","review_comments_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/pulls/34/comments","review_comment_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/issues/34/comments","statuses_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/statuses/67a68deb6580ff18fe9d4483da5946ff1c847052","head":{"label":"loudnate:loudnate/prepare-alias","ref":"loudnate/prepare-alias","sha":"67a68deb6580ff18fe9d4483da5946ff1c847052","user":{"login":"loudnate","id":212876,"avatar_url":"https://avatars.githubusercontent.com/u/212876?v=3","gravatar_id":"","url":"https://api.github.com/users/loudnate","html_url":"https://github.com/loudnate","followers_url":"https://api.github.com/users/loudnate/followers","following_url":"https://api.github.com/users/loudnate/following{/other_user}","gists_url":"https://api.github.com/users/loudnate/gists{/gist_id}","starred_url":"https://api.github.com/users/loudnate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loudnate/subscriptions","organizations_url":"https://api.github.com/users/loudnate/orgs","repos_url":"https://api.github.com/users/loudnate/repos","events_url":"https://api.github.com/users/loudnate/events{/privacy}","received_events_url":"https://api.github.com/users/loudnate/received_events","type":"User","site_admin":false},"repo":{"id":37394311,"name":"openaps-mmhistorytools","full_name":"loudnate/openaps-mmhistorytools","owner":{"login":"loudnate","id":212876,"avatar_url":"https://avatars.githubusercontent.com/u/212876?v=3","gravatar_id":"","url":"https://api.github.com/users/loudnate","html_url":"https://github.com/loudnate","followers_url":"https://api.github.com/users/loudnate/followers","following_url":"https://api.github.com/users/loudnate/following{/other_user}","gists_url":"https://api.github.com/users/loudnate/gists{/gist_id}","starred_url":"https://api.github.com/users/loudnate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loudnate/subscriptions","organizations_url":"https://api.github.com/users/loudnate/orgs","repos_url":"https://api.github.com/users/loudnate/repos","events_url":"https://api.github.com/users/loudnate/events{/privacy}","received_events_url":"https://api.github.com/users/loudnate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/loudnate/openaps-mmhistorytools","description":"Tools for cleaning, condensing, and reformatting openaps history data","fork":false,"url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools","forks_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/forks","keys_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/teams","hooks_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/hooks","issue_events_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/issues/events{/number}","events_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/events","assignees_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/assignees{/user}","branches_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/branches{/branch}","tags_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/tags","blobs_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/git/refs{/sha}","trees_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/statuses/{sha}","languages_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/languages","stargazers_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/stargazers","contributors_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/contributors","subscribers_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/subscribers","subscription_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/subscription","commits_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/commits{/sha}","git_commits_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/git/commits{/sha}","comments_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/comments{/number}","issue_comment_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/issues/comments{/number}","contents_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/contents/{+path}","compare_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/merges","archive_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/downloads","issues_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/issues{/number}","pulls_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/pulls{/number}","milestones_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/milestones{/number}","notifications_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/labels{/name}","releases_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/releases{/id}","created_at":"2015-06-14T01:16:19Z","updated_at":"2015-06-14T17:41:50Z","pushed_at":"2015-09-20T22:11:56Z","git_url":"git://github.com/loudnate/openaps-mmhistorytools.git","ssh_url":"git@github.com:loudnate/openaps-mmhistorytools.git","clone_url":"https://github.com/loudnate/openaps-mmhistorytools.git","svn_url":"https://github.com/loudnate/openaps-mmhistorytools","homepage":null,"size":435,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"loudnate:dev","ref":"dev","sha":"5f5e6d3f02c62d1df1dc683b1a028e3bfa07cc9d","user":{"login":"loudnate","id":212876,"avatar_url":"https://avatars.githubusercontent.com/u/212876?v=3","gravatar_id":"","url":"https://api.github.com/users/loudnate","html_url":"https://github.com/loudnate","followers_url":"https://api.github.com/users/loudnate/followers","following_url":"https://api.github.com/users/loudnate/following{/other_user}","gists_url":"https://api.github.com/users/loudnate/gists{/gist_id}","starred_url":"https://api.github.com/users/loudnate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loudnate/subscriptions","organizations_url":"https://api.github.com/users/loudnate/orgs","repos_url":"https://api.github.com/users/loudnate/repos","events_url":"https://api.github.com/users/loudnate/events{/privacy}","received_events_url":"https://api.github.com/users/loudnate/received_events","type":"User","site_admin":false},"repo":{"id":37394311,"name":"openaps-mmhistorytools","full_name":"loudnate/openaps-mmhistorytools","owner":{"login":"loudnate","id":212876,"avatar_url":"https://avatars.githubusercontent.com/u/212876?v=3","gravatar_id":"","url":"https://api.github.com/users/loudnate","html_url":"https://github.com/loudnate","followers_url":"https://api.github.com/users/loudnate/followers","following_url":"https://api.github.com/users/loudnate/following{/other_user}","gists_url":"https://api.github.com/users/loudnate/gists{/gist_id}","starred_url":"https://api.github.com/users/loudnate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loudnate/subscriptions","organizations_url":"https://api.github.com/users/loudnate/orgs","repos_url":"https://api.github.com/users/loudnate/repos","events_url":"https://api.github.com/users/loudnate/events{/privacy}","received_events_url":"https://api.github.com/users/loudnate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/loudnate/openaps-mmhistorytools","description":"Tools for cleaning, condensing, and reformatting openaps history data","fork":false,"url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools","forks_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/forks","keys_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/teams","hooks_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/hooks","issue_events_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/issues/events{/number}","events_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/events","assignees_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/assignees{/user}","branches_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/branches{/branch}","tags_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/tags","blobs_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/git/refs{/sha}","trees_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/statuses/{sha}","languages_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/languages","stargazers_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/stargazers","contributors_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/contributors","subscribers_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/subscribers","subscription_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/subscription","commits_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/commits{/sha}","git_commits_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/git/commits{/sha}","comments_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/comments{/number}","issue_comment_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/issues/comments{/number}","contents_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/contents/{+path}","compare_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/merges","archive_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/downloads","issues_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/issues{/number}","pulls_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/pulls{/number}","milestones_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/milestones{/number}","notifications_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/labels{/name}","releases_url":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/releases{/id}","created_at":"2015-06-14T01:16:19Z","updated_at":"2015-06-14T17:41:50Z","pushed_at":"2015-09-20T22:11:56Z","git_url":"git://github.com/loudnate/openaps-mmhistorytools.git","ssh_url":"git@github.com:loudnate/openaps-mmhistorytools.git","clone_url":"https://github.com/loudnate/openaps-mmhistorytools.git","svn_url":"https://github.com/loudnate/openaps-mmhistorytools","homepage":null,"size":435,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/pulls/34"},"html":{"href":"https://github.com/loudnate/openaps-mmhistorytools/pull/34"},"issue":{"href":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/issues/34"},"comments":{"href":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/loudnate/openaps-mmhistorytools/statuses/67a68deb6580ff18fe9d4483da5946ff1c847052"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":54,"deletions":1,"changed_files":1}}