{"action":"opened","number":231,"pull_request":{"url":"https://api.github.com/repos/TailorDev/Watson/pulls/231","id":228210346,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4MjEwMzQ2","html_url":"https://github.com/TailorDev/Watson/pull/231","diff_url":"https://github.com/TailorDev/Watson/pull/231.diff","patch_url":"https://github.com/TailorDev/Watson/pull/231.patch","issue_url":"https://api.github.com/repos/TailorDev/Watson/issues/231","number":231,"state":"open","locked":false,"title":"Aggregate reports by day","user":{"login":"brandomr","id":5840199,"node_id":"MDQ6VXNlcjU4NDAxOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/5840199?v=4","gravatar_id":"","url":"https://api.github.com/users/brandomr","html_url":"https://github.com/brandomr","followers_url":"https://api.github.com/users/brandomr/followers","following_url":"https://api.github.com/users/brandomr/following{/other_user}","gists_url":"https://api.github.com/users/brandomr/gists{/gist_id}","starred_url":"https://api.github.com/users/brandomr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandomr/subscriptions","organizations_url":"https://api.github.com/users/brandomr/orgs","repos_url":"https://api.github.com/users/brandomr/repos","events_url":"https://api.github.com/users/brandomr/events{/privacy}","received_events_url":"https://api.github.com/users/brandomr/received_events","type":"User","site_admin":false},"body":"This PR is in response to [feature request #216](https://github.com/TailorDev/Watson/issues/216). It adds an optional flag (`--daily` or `-D`) to the CLI `report` command. This aggregates output for each day. \r\n\r\nThis is accomplished by iteratively calling the `report` function for each day in the specified (or default) reporting time span. \r\n\r\nThe `--daily` flag is mutually exclusive to the `--json` flag so only one or the other option may be specified. \r\n\r\nI am open to suggestions on better ways to accomplish this or ideas on how to improve its formatting. I recognize that my solution, though it works, is not the most elegant. So, happy to take some tips! Also, I did not see tests for `cli.py` so was not sure how this should be tested, if at all, since no `watson` or `utils` functions were changed.","created_at":"2018-11-04T23:12:29Z","updated_at":"2018-11-04T23:12:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/TailorDev/Watson/pulls/231/commits","review_comments_url":"https://api.github.com/repos/TailorDev/Watson/pulls/231/comments","review_comment_url":"https://api.github.com/repos/TailorDev/Watson/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TailorDev/Watson/issues/231/comments","statuses_url":"https://api.github.com/repos/TailorDev/Watson/statuses/78910248f5cefbd4f0a567c65e82cda9ed431f64","head":{"label":"brandomr:report-by-day","ref":"report-by-day","sha":"78910248f5cefbd4f0a567c65e82cda9ed431f64","user":{"login":"brandomr","id":5840199,"node_id":"MDQ6VXNlcjU4NDAxOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/5840199?v=4","gravatar_id":"","url":"https://api.github.com/users/brandomr","html_url":"https://github.com/brandomr","followers_url":"https://api.github.com/users/brandomr/followers","following_url":"https://api.github.com/users/brandomr/following{/other_user}","gists_url":"https://api.github.com/users/brandomr/gists{/gist_id}","starred_url":"https://api.github.com/users/brandomr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandomr/subscriptions","organizations_url":"https://api.github.com/users/brandomr/orgs","repos_url":"https://api.github.com/users/brandomr/repos","events_url":"https://api.github.com/users/brandomr/events{/privacy}","received_events_url":"https://api.github.com/users/brandomr/received_events","type":"User","site_admin":false},"repo":{"id":155574459,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU1NzQ0NTk=","name":"Watson","full_name":"brandomr/Watson","private":false,"owner":{"login":"brandomr","id":5840199,"node_id":"MDQ6VXNlcjU4NDAxOTk=","avatar_url":"https://avatars0.githubusercontent.com/u/5840199?v=4","gravatar_id":"","url":"https://api.github.com/users/brandomr","html_url":"https://github.com/brandomr","followers_url":"https://api.github.com/users/brandomr/followers","following_url":"https://api.github.com/users/brandomr/following{/other_user}","gists_url":"https://api.github.com/users/brandomr/gists{/gist_id}","starred_url":"https://api.github.com/users/brandomr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandomr/subscriptions","organizations_url":"https://api.github.com/users/brandomr/orgs","repos_url":"https://api.github.com/users/brandomr/repos","events_url":"https://api.github.com/users/brandomr/events{/privacy}","received_events_url":"https://api.github.com/users/brandomr/received_events","type":"User","site_admin":false},"html_url":"https://github.com/brandomr/Watson","description":":watch: A wonderful CLI to track your time!","fork":true,"url":"https://api.github.com/repos/brandomr/Watson","forks_url":"https://api.github.com/repos/brandomr/Watson/forks","keys_url":"https://api.github.com/repos/brandomr/Watson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brandomr/Watson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brandomr/Watson/teams","hooks_url":"https://api.github.com/repos/brandomr/Watson/hooks","issue_events_url":"https://api.github.com/repos/brandomr/Watson/issues/events{/number}","events_url":"https://api.github.com/repos/brandomr/Watson/events","assignees_url":"https://api.github.com/repos/brandomr/Watson/assignees{/user}","branches_url":"https://api.github.com/repos/brandomr/Watson/branches{/branch}","tags_url":"https://api.github.com/repos/brandomr/Watson/tags","blobs_url":"https://api.github.com/repos/brandomr/Watson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brandomr/Watson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brandomr/Watson/git/refs{/sha}","trees_url":"https://api.github.com/repos/brandomr/Watson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brandomr/Watson/statuses/{sha}","languages_url":"https://api.github.com/repos/brandomr/Watson/languages","stargazers_url":"https://api.github.com/repos/brandomr/Watson/stargazers","contributors_url":"https://api.github.com/repos/brandomr/Watson/contributors","subscribers_url":"https://api.github.com/repos/brandomr/Watson/subscribers","subscription_url":"https://api.github.com/repos/brandomr/Watson/subscription","commits_url":"https://api.github.com/repos/brandomr/Watson/commits{/sha}","git_commits_url":"https://api.github.com/repos/brandomr/Watson/git/commits{/sha}","comments_url":"https://api.github.com/repos/brandomr/Watson/comments{/number}","issue_comment_url":"https://api.github.com/repos/brandomr/Watson/issues/comments{/number}","contents_url":"https://api.github.com/repos/brandomr/Watson/contents/{+path}","compare_url":"https://api.github.com/repos/brandomr/Watson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brandomr/Watson/merges","archive_url":"https://api.github.com/repos/brandomr/Watson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brandomr/Watson/downloads","issues_url":"https://api.github.com/repos/brandomr/Watson/issues{/number}","pulls_url":"https://api.github.com/repos/brandomr/Watson/pulls{/number}","milestones_url":"https://api.github.com/repos/brandomr/Watson/milestones{/number}","notifications_url":"https://api.github.com/repos/brandomr/Watson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brandomr/Watson/labels{/name}","releases_url":"https://api.github.com/repos/brandomr/Watson/releases{/id}","deployments_url":"https://api.github.com/repos/brandomr/Watson/deployments","created_at":"2018-10-31T14:49:44Z","updated_at":"2018-10-31T14:49:46Z","pushed_at":"2018-11-04T23:08:19Z","git_url":"git://github.com/brandomr/Watson.git","ssh_url":"git@github.com:brandomr/Watson.git","clone_url":"https://github.com/brandomr/Watson.git","svn_url":"https://github.com/brandomr/Watson","homepage":"http://tailordev.github.io/Watson/","size":9888,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TailorDev:master","ref":"master","sha":"38781f50d27edab7d3268645b9092b80aaada794","user":{"login":"TailorDev","id":11196253,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMTk2MjUz","avatar_url":"https://avatars3.githubusercontent.com/u/11196253?v=4","gravatar_id":"","url":"https://api.github.com/users/TailorDev","html_url":"https://github.com/TailorDev","followers_url":"https://api.github.com/users/TailorDev/followers","following_url":"https://api.github.com/users/TailorDev/following{/other_user}","gists_url":"https://api.github.com/users/TailorDev/gists{/gist_id}","starred_url":"https://api.github.com/users/TailorDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TailorDev/subscriptions","organizations_url":"https://api.github.com/users/TailorDev/orgs","repos_url":"https://api.github.com/users/TailorDev/repos","events_url":"https://api.github.com/users/TailorDev/events{/privacy}","received_events_url":"https://api.github.com/users/TailorDev/received_events","type":"Organization","site_admin":false},"repo":{"id":32409676,"node_id":"MDEwOlJlcG9zaXRvcnkzMjQwOTY3Ng==","name":"Watson","full_name":"TailorDev/Watson","private":false,"owner":{"login":"TailorDev","id":11196253,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMTk2MjUz","avatar_url":"https://avatars3.githubusercontent.com/u/11196253?v=4","gravatar_id":"","url":"https://api.github.com/users/TailorDev","html_url":"https://github.com/TailorDev","followers_url":"https://api.github.com/users/TailorDev/followers","following_url":"https://api.github.com/users/TailorDev/following{/other_user}","gists_url":"https://api.github.com/users/TailorDev/gists{/gist_id}","starred_url":"https://api.github.com/users/TailorDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TailorDev/subscriptions","organizations_url":"https://api.github.com/users/TailorDev/orgs","repos_url":"https://api.github.com/users/TailorDev/repos","events_url":"https://api.github.com/users/TailorDev/events{/privacy}","received_events_url":"https://api.github.com/users/TailorDev/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/TailorDev/Watson","description":":watch: A wonderful CLI to track your time!","fork":false,"url":"https://api.github.com/repos/TailorDev/Watson","forks_url":"https://api.github.com/repos/TailorDev/Watson/forks","keys_url":"https://api.github.com/repos/TailorDev/Watson/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TailorDev/Watson/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TailorDev/Watson/teams","hooks_url":"https://api.github.com/repos/TailorDev/Watson/hooks","issue_events_url":"https://api.github.com/repos/TailorDev/Watson/issues/events{/number}","events_url":"https://api.github.com/repos/TailorDev/Watson/events","assignees_url":"https://api.github.com/repos/TailorDev/Watson/assignees{/user}","branches_url":"https://api.github.com/repos/TailorDev/Watson/branches{/branch}","tags_url":"https://api.github.com/repos/TailorDev/Watson/tags","blobs_url":"https://api.github.com/repos/TailorDev/Watson/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TailorDev/Watson/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TailorDev/Watson/git/refs{/sha}","trees_url":"https://api.github.com/repos/TailorDev/Watson/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TailorDev/Watson/statuses/{sha}","languages_url":"https://api.github.com/repos/TailorDev/Watson/languages","stargazers_url":"https://api.github.com/repos/TailorDev/Watson/stargazers","contributors_url":"https://api.github.com/repos/TailorDev/Watson/contributors","subscribers_url":"https://api.github.com/repos/TailorDev/Watson/subscribers","subscription_url":"https://api.github.com/repos/TailorDev/Watson/subscription","commits_url":"https://api.github.com/repos/TailorDev/Watson/commits{/sha}","git_commits_url":"https://api.github.com/repos/TailorDev/Watson/git/commits{/sha}","comments_url":"https://api.github.com/repos/TailorDev/Watson/comments{/number}","issue_comment_url":"https://api.github.com/repos/TailorDev/Watson/issues/comments{/number}","contents_url":"https://api.github.com/repos/TailorDev/Watson/contents/{+path}","compare_url":"https://api.github.com/repos/TailorDev/Watson/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TailorDev/Watson/merges","archive_url":"https://api.github.com/repos/TailorDev/Watson/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TailorDev/Watson/downloads","issues_url":"https://api.github.com/repos/TailorDev/Watson/issues{/number}","pulls_url":"https://api.github.com/repos/TailorDev/Watson/pulls{/number}","milestones_url":"https://api.github.com/repos/TailorDev/Watson/milestones{/number}","notifications_url":"https://api.github.com/repos/TailorDev/Watson/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TailorDev/Watson/labels{/name}","releases_url":"https://api.github.com/repos/TailorDev/Watson/releases{/id}","deployments_url":"https://api.github.com/repos/TailorDev/Watson/deployments","created_at":"2015-03-17T17:38:52Z","updated_at":"2018-11-02T00:57:53Z","pushed_at":"2018-10-25T17:18:59Z","git_url":"git://github.com/TailorDev/Watson.git","ssh_url":"git@github.com:TailorDev/Watson.git","clone_url":"https://github.com/TailorDev/Watson.git","svn_url":"https://github.com/TailorDev/Watson","homepage":"http://tailordev.github.io/Watson/","size":9888,"stargazers_count":1045,"watchers_count":1045,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":86,"mirror_url":null,"archived":false,"open_issues_count":47,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":86,"open_issues":47,"watchers":1045,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TailorDev/Watson/pulls/231"},"html":{"href":"https://github.com/TailorDev/Watson/pull/231"},"issue":{"href":"https://api.github.com/repos/TailorDev/Watson/issues/231"},"comments":{"href":"https://api.github.com/repos/TailorDev/Watson/issues/231/comments"},"review_comments":{"href":"https://api.github.com/repos/TailorDev/Watson/pulls/231/comments"},"review_comment":{"href":"https://api.github.com/repos/TailorDev/Watson/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TailorDev/Watson/pulls/231/commits"},"statuses":{"href":"https://api.github.com/repos/TailorDev/Watson/statuses/78910248f5cefbd4f0a567c65e82cda9ed431f64"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":162,"deletions":61,"changed_files":2}}
{"actor":{"display_login":"brandomr"}}