{"action":"created","comment":{"url":"https://api.github.com/repos/klauscfhq/taskbook/pulls/comments/212086855","pull_request_review_id":148645225,"id":212086855,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjA4Njg1NQ==","diff_hunk":"@@ -192,6 +250,62 @@ class Taskbook {\n     return data;\n   }\n \n+  _filterOverdue(data) {\n+    Object.entries(data)\n+      .forEach(([id, item]) => {\n+        if (!item.dueDate) {\n+          return delete data[id];\n+        }\n+\n+        const now = new Date();\n+        const dueDate = parseDate(item.dueDate);\n+        const isOverdue = isBefore(dueDate, now);\n+\n+        if (item.isComplete || !isOverdue) {\n+          delete data[id];\n+        }\n+      });\n+\n+    return data;\n+  }\n+\n+  _filterToday(data) {\n+    Object.entries(data).forEach(([id, item]) => {\n+      if (!item.dueDate) {\n+        return delete data[id];\n+      }\n+\n+      const now = new Date();\n+      const dueDate = parseDate(item.dueDate);\n+      const isDueToday = isSameDay(dueDate, now);\n+\n+      if (item.isComplete || !isDueToday) {\n+        delete data[id];\n+      }\n+    });\n+\n+    return data;\n+  }\n+\n+  _filterTomorrow(data) {","path":"lib/taskbook.js","position":146,"original_position":146,"commit_id":"52878b1017292f6f619db2332f505e524c10adf8","original_commit_id":"52878b1017292f6f619db2332f505e524c10adf8","user":{"login":"rjoydip","id":15318294,"node_id":"MDQ6VXNlcjE1MzE4Mjk0","avatar_url":"https://avatars1.githubusercontent.com/u/15318294?v=4","gravatar_id":"","url":"https://api.github.com/users/rjoydip","html_url":"https://github.com/rjoydip","followers_url":"https://api.github.com/users/rjoydip/followers","following_url":"https://api.github.com/users/rjoydip/following{/other_user}","gists_url":"https://api.github.com/users/rjoydip/gists{/gist_id}","starred_url":"https://api.github.com/users/rjoydip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjoydip/subscriptions","organizations_url":"https://api.github.com/users/rjoydip/orgs","repos_url":"https://api.github.com/users/rjoydip/repos","events_url":"https://api.github.com/users/rjoydip/events{/privacy}","received_events_url":"https://api.github.com/users/rjoydip/received_events","type":"User","site_admin":false},"body":"this too https://github.com/klauscfhq/taskbook/pull/69/files#r212086721","created_at":"2018-08-22T19:54:56Z","updated_at":"2018-08-22T19:54:56Z","html_url":"https://github.com/klauscfhq/taskbook/pull/69#discussion_r212086855","pull_request_url":"https://api.github.com/repos/klauscfhq/taskbook/pulls/69","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/klauscfhq/taskbook/pulls/comments/212086855"},"html":{"href":"https://github.com/klauscfhq/taskbook/pull/69#discussion_r212086855"},"pull_request":{"href":"https://api.github.com/repos/klauscfhq/taskbook/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/klauscfhq/taskbook/pulls/69","id":206968729,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2OTY4NzI5","html_url":"https://github.com/klauscfhq/taskbook/pull/69","diff_url":"https://github.com/klauscfhq/taskbook/pull/69.diff","patch_url":"https://github.com/klauscfhq/taskbook/pull/69.patch","issue_url":"https://api.github.com/repos/klauscfhq/taskbook/issues/69","number":69,"state":"open","locked":false,"title":"Allow for setting due dates on tasks","user":{"login":"JordanAdams","id":636753,"node_id":"MDQ6VXNlcjYzNjc1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/636753?v=4","gravatar_id":"","url":"https://api.github.com/users/JordanAdams","html_url":"https://github.com/JordanAdams","followers_url":"https://api.github.com/users/JordanAdams/followers","following_url":"https://api.github.com/users/JordanAdams/following{/other_user}","gists_url":"https://api.github.com/users/JordanAdams/gists{/gist_id}","starred_url":"https://api.github.com/users/JordanAdams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordanAdams/subscriptions","organizations_url":"https://api.github.com/users/JordanAdams/orgs","repos_url":"https://api.github.com/users/JordanAdams/repos","events_url":"https://api.github.com/users/JordanAdams/events{/privacy}","received_events_url":"https://api.github.com/users/JordanAdams/received_events","type":"User","site_admin":false},"body":"Implements #67 \r\n\r\n## Description\r\nAdds a new `due:` tag to task creation allowing users to specify a due date for the task.\r\n\r\n## Other Features/Ideas\r\n\r\n- [x] `$tb --due @1 6d` for updating the due date.\r\n- [ ] `$tb -f overdue|today|tomorrow` for finding tasks based on due date.\r\n- [x] Apply medium priority styling to tasks due this week and and high priority styling for tomorrow.\r\n- [ ] Add special date/time definitions for \"tomorrow\" and \"next-week\"\r\n\r\n## Screenshots\r\n\r\n### Due Date Assignment\r\n![image](https://user-images.githubusercontent.com/636753/43833095-86f9b7c8-9b01-11e8-8636-753df0db406f.png)\r\n\r\n### Colour-Coding\r\n![image](https://user-images.githubusercontent.com/636753/43985014-2bcbce8e-9cfc-11e8-8395-1114e99f5a0f.png)\r\n","created_at":"2018-08-08T10:56:45Z","updated_at":"2018-08-22T19:54:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a194b26cc3b78da51b258c30123ade1fb57c1842","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/klauscfhq/taskbook/pulls/69/commits","review_comments_url":"https://api.github.com/repos/klauscfhq/taskbook/pulls/69/comments","review_comment_url":"https://api.github.com/repos/klauscfhq/taskbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/klauscfhq/taskbook/issues/69/comments","statuses_url":"https://api.github.com/repos/klauscfhq/taskbook/statuses/52878b1017292f6f619db2332f505e524c10adf8","head":{"label":"JordanAdams:due-dates","ref":"due-dates","sha":"52878b1017292f6f619db2332f505e524c10adf8","user":{"login":"JordanAdams","id":636753,"node_id":"MDQ6VXNlcjYzNjc1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/636753?v=4","gravatar_id":"","url":"https://api.github.com/users/JordanAdams","html_url":"https://github.com/JordanAdams","followers_url":"https://api.github.com/users/JordanAdams/followers","following_url":"https://api.github.com/users/JordanAdams/following{/other_user}","gists_url":"https://api.github.com/users/JordanAdams/gists{/gist_id}","starred_url":"https://api.github.com/users/JordanAdams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordanAdams/subscriptions","organizations_url":"https://api.github.com/users/JordanAdams/orgs","repos_url":"https://api.github.com/users/JordanAdams/repos","events_url":"https://api.github.com/users/JordanAdams/events{/privacy}","received_events_url":"https://api.github.com/users/JordanAdams/received_events","type":"User","site_admin":false},"repo":{"id":144000070,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQwMDAwNzA=","name":"taskbook","full_name":"JordanAdams/taskbook","owner":{"login":"JordanAdams","id":636753,"node_id":"MDQ6VXNlcjYzNjc1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/636753?v=4","gravatar_id":"","url":"https://api.github.com/users/JordanAdams","html_url":"https://github.com/JordanAdams","followers_url":"https://api.github.com/users/JordanAdams/followers","following_url":"https://api.github.com/users/JordanAdams/following{/other_user}","gists_url":"https://api.github.com/users/JordanAdams/gists{/gist_id}","starred_url":"https://api.github.com/users/JordanAdams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordanAdams/subscriptions","organizations_url":"https://api.github.com/users/JordanAdams/orgs","repos_url":"https://api.github.com/users/JordanAdams/repos","events_url":"https://api.github.com/users/JordanAdams/events{/privacy}","received_events_url":"https://api.github.com/users/JordanAdams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JordanAdams/taskbook","description":"📓 Tasks, boards & notes for the command-line habitat","fork":true,"url":"https://api.github.com/repos/JordanAdams/taskbook","forks_url":"https://api.github.com/repos/JordanAdams/taskbook/forks","keys_url":"https://api.github.com/repos/JordanAdams/taskbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JordanAdams/taskbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JordanAdams/taskbook/teams","hooks_url":"https://api.github.com/repos/JordanAdams/taskbook/hooks","issue_events_url":"https://api.github.com/repos/JordanAdams/taskbook/issues/events{/number}","events_url":"https://api.github.com/repos/JordanAdams/taskbook/events","assignees_url":"https://api.github.com/repos/JordanAdams/taskbook/assignees{/user}","branches_url":"https://api.github.com/repos/JordanAdams/taskbook/branches{/branch}","tags_url":"https://api.github.com/repos/JordanAdams/taskbook/tags","blobs_url":"https://api.github.com/repos/JordanAdams/taskbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JordanAdams/taskbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JordanAdams/taskbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/JordanAdams/taskbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JordanAdams/taskbook/statuses/{sha}","languages_url":"https://api.github.com/repos/JordanAdams/taskbook/languages","stargazers_url":"https://api.github.com/repos/JordanAdams/taskbook/stargazers","contributors_url":"https://api.github.com/repos/JordanAdams/taskbook/contributors","subscribers_url":"https://api.github.com/repos/JordanAdams/taskbook/subscribers","subscription_url":"https://api.github.com/repos/JordanAdams/taskbook/subscription","commits_url":"https://api.github.com/repos/JordanAdams/taskbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/JordanAdams/taskbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/JordanAdams/taskbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/JordanAdams/taskbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/JordanAdams/taskbook/contents/{+path}","compare_url":"https://api.github.com/repos/JordanAdams/taskbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JordanAdams/taskbook/merges","archive_url":"https://api.github.com/repos/JordanAdams/taskbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JordanAdams/taskbook/downloads","issues_url":"https://api.github.com/repos/JordanAdams/taskbook/issues{/number}","pulls_url":"https://api.github.com/repos/JordanAdams/taskbook/pulls{/number}","milestones_url":"https://api.github.com/repos/JordanAdams/taskbook/milestones{/number}","notifications_url":"https://api.github.com/repos/JordanAdams/taskbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JordanAdams/taskbook/labels{/name}","releases_url":"https://api.github.com/repos/JordanAdams/taskbook/releases{/id}","deployments_url":"https://api.github.com/repos/JordanAdams/taskbook/deployments","created_at":"2018-08-08T10:48:50Z","updated_at":"2018-08-08T10:48:52Z","pushed_at":"2018-08-20T11:38:44Z","git_url":"git://github.com/JordanAdams/taskbook.git","ssh_url":"git@github.com:JordanAdams/taskbook.git","clone_url":"https://github.com/JordanAdams/taskbook.git","svn_url":"https://github.com/JordanAdams/taskbook","homepage":"","size":343,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"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":"klauscfhq:master","ref":"master","sha":"bc40ae8140f4f714e4ce87916de56f460589bcc1","user":{"login":"klauscfhq","id":12670537,"node_id":"MDQ6VXNlcjEyNjcwNTM3","avatar_url":"https://avatars1.githubusercontent.com/u/12670537?v=4","gravatar_id":"","url":"https://api.github.com/users/klauscfhq","html_url":"https://github.com/klauscfhq","followers_url":"https://api.github.com/users/klauscfhq/followers","following_url":"https://api.github.com/users/klauscfhq/following{/other_user}","gists_url":"https://api.github.com/users/klauscfhq/gists{/gist_id}","starred_url":"https://api.github.com/users/klauscfhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klauscfhq/subscriptions","organizations_url":"https://api.github.com/users/klauscfhq/orgs","repos_url":"https://api.github.com/users/klauscfhq/repos","events_url":"https://api.github.com/users/klauscfhq/events{/privacy}","received_events_url":"https://api.github.com/users/klauscfhq/received_events","type":"User","site_admin":false},"repo":{"id":121204738,"node_id":"MDEwOlJlcG9zaXRvcnkxMjEyMDQ3Mzg=","name":"taskbook","full_name":"klauscfhq/taskbook","owner":{"login":"klauscfhq","id":12670537,"node_id":"MDQ6VXNlcjEyNjcwNTM3","avatar_url":"https://avatars1.githubusercontent.com/u/12670537?v=4","gravatar_id":"","url":"https://api.github.com/users/klauscfhq","html_url":"https://github.com/klauscfhq","followers_url":"https://api.github.com/users/klauscfhq/followers","following_url":"https://api.github.com/users/klauscfhq/following{/other_user}","gists_url":"https://api.github.com/users/klauscfhq/gists{/gist_id}","starred_url":"https://api.github.com/users/klauscfhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klauscfhq/subscriptions","organizations_url":"https://api.github.com/users/klauscfhq/orgs","repos_url":"https://api.github.com/users/klauscfhq/repos","events_url":"https://api.github.com/users/klauscfhq/events{/privacy}","received_events_url":"https://api.github.com/users/klauscfhq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/klauscfhq/taskbook","description":"📓 Tasks, boards & notes for the command-line habitat","fork":false,"url":"https://api.github.com/repos/klauscfhq/taskbook","forks_url":"https://api.github.com/repos/klauscfhq/taskbook/forks","keys_url":"https://api.github.com/repos/klauscfhq/taskbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/klauscfhq/taskbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/klauscfhq/taskbook/teams","hooks_url":"https://api.github.com/repos/klauscfhq/taskbook/hooks","issue_events_url":"https://api.github.com/repos/klauscfhq/taskbook/issues/events{/number}","events_url":"https://api.github.com/repos/klauscfhq/taskbook/events","assignees_url":"https://api.github.com/repos/klauscfhq/taskbook/assignees{/user}","branches_url":"https://api.github.com/repos/klauscfhq/taskbook/branches{/branch}","tags_url":"https://api.github.com/repos/klauscfhq/taskbook/tags","blobs_url":"https://api.github.com/repos/klauscfhq/taskbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/klauscfhq/taskbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/klauscfhq/taskbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/klauscfhq/taskbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/klauscfhq/taskbook/statuses/{sha}","languages_url":"https://api.github.com/repos/klauscfhq/taskbook/languages","stargazers_url":"https://api.github.com/repos/klauscfhq/taskbook/stargazers","contributors_url":"https://api.github.com/repos/klauscfhq/taskbook/contributors","subscribers_url":"https://api.github.com/repos/klauscfhq/taskbook/subscribers","subscription_url":"https://api.github.com/repos/klauscfhq/taskbook/subscription","commits_url":"https://api.github.com/repos/klauscfhq/taskbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/klauscfhq/taskbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/klauscfhq/taskbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/klauscfhq/taskbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/klauscfhq/taskbook/contents/{+path}","compare_url":"https://api.github.com/repos/klauscfhq/taskbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/klauscfhq/taskbook/merges","archive_url":"https://api.github.com/repos/klauscfhq/taskbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/klauscfhq/taskbook/downloads","issues_url":"https://api.github.com/repos/klauscfhq/taskbook/issues{/number}","pulls_url":"https://api.github.com/repos/klauscfhq/taskbook/pulls{/number}","milestones_url":"https://api.github.com/repos/klauscfhq/taskbook/milestones{/number}","notifications_url":"https://api.github.com/repos/klauscfhq/taskbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/klauscfhq/taskbook/labels{/name}","releases_url":"https://api.github.com/repos/klauscfhq/taskbook/releases{/id}","deployments_url":"https://api.github.com/repos/klauscfhq/taskbook/deployments","created_at":"2018-02-12T05:37:22Z","updated_at":"2018-08-22T19:29:58Z","pushed_at":"2018-08-21T10:31:45Z","git_url":"git://github.com/klauscfhq/taskbook.git","ssh_url":"git@github.com:klauscfhq/taskbook.git","clone_url":"https://github.com/klauscfhq/taskbook.git","svn_url":"https://github.com/klauscfhq/taskbook","homepage":"","size":356,"stargazers_count":4536,"watchers_count":4536,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":168,"mirror_url":null,"archived":false,"open_issues_count":52,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":168,"open_issues":52,"watchers":4536,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/klauscfhq/taskbook/pulls/69"},"html":{"href":"https://github.com/klauscfhq/taskbook/pull/69"},"issue":{"href":"https://api.github.com/repos/klauscfhq/taskbook/issues/69"},"comments":{"href":"https://api.github.com/repos/klauscfhq/taskbook/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/klauscfhq/taskbook/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/klauscfhq/taskbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/klauscfhq/taskbook/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/klauscfhq/taskbook/statuses/52878b1017292f6f619db2332f505e524c10adf8"}},"author_association":"NONE"}}
{"actor":{"display_login":"rjoydip"}}