{"action":"created","comment":{"url":"https://api.github.com/repos/date-fns/date-fns/pulls/comments/91922374","pull_request_review_id":12430467,"id":91922374,"diff_hunk":"@@ -0,0 +1,27 @@\n+var isSameWeek = require('../is_same_week/index.js')\n+var addWeeks = require('../add_weeks/index.js')\n+\n+/**\n+ * @category Week Helpers\n+ * @summary Is the given date so last week?\n+ *\n+ * @description\n+ * Is the given date so last week?\n+ *\n+ * @param {Date|String|Number} date - the date to check\n+ * @param {Object} [options] - the object with options\n+ * @param {Number} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n+ * @returns {Boolean} so last week\n+ *\n+ * @example\n+ * // Is 7 December 2016 so last week?\n+ * var result = isSoLastWeek(\n+ *   new Date(2016, 12, 7)\n+ * )\n+ * //=> true\n+ */\n+function isSoLastWeek (dirtyDate, options) {\n+  return isSameWeek(new Date(), addWeeks(dirtyDate, 1), options)","path":"src/is_so_last_week/index.js","position":24,"original_position":24,"commit_id":"d8e7fdcc9c656d5fcc44e86d0f76638ae134394c","original_commit_id":"d8e7fdcc9c656d5fcc44e86d0f76638ae134394c","user":{"login":"kossnocorp","id":52201,"avatar_url":"https://avatars.githubusercontent.com/u/52201?v=3","gravatar_id":"","url":"https://api.github.com/users/kossnocorp","html_url":"https://github.com/kossnocorp","followers_url":"https://api.github.com/users/kossnocorp/followers","following_url":"https://api.github.com/users/kossnocorp/following{/other_user}","gists_url":"https://api.github.com/users/kossnocorp/gists{/gist_id}","starred_url":"https://api.github.com/users/kossnocorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kossnocorp/subscriptions","organizations_url":"https://api.github.com/users/kossnocorp/orgs","repos_url":"https://api.github.com/users/kossnocorp/repos","events_url":"https://api.github.com/users/kossnocorp/events{/privacy}","received_events_url":"https://api.github.com/users/kossnocorp/received_events","type":"User","site_admin":false},"body":"It was easier to just `return false` here 😝 ","created_at":"2016-12-12T10:42:36Z","updated_at":"2016-12-12T10:42:36Z","html_url":"https://github.com/date-fns/date-fns/pull/325#discussion_r91922374","pull_request_url":"https://api.github.com/repos/date-fns/date-fns/pulls/325","_links":{"self":{"href":"https://api.github.com/repos/date-fns/date-fns/pulls/comments/91922374"},"html":{"href":"https://github.com/date-fns/date-fns/pull/325#discussion_r91922374"},"pull_request":{"href":"https://api.github.com/repos/date-fns/date-fns/pulls/325"}}},"pull_request":{"url":"https://api.github.com/repos/date-fns/date-fns/pulls/325","id":97428105,"html_url":"https://github.com/date-fns/date-fns/pull/325","diff_url":"https://github.com/date-fns/date-fns/pull/325.diff","patch_url":"https://github.com/date-fns/date-fns/pull/325.patch","issue_url":"https://api.github.com/repos/date-fns/date-fns/issues/325","number":325,"state":"open","locked":false,"title":"add missing `isSoLastWeek`","user":{"login":"claus","id":2277,"avatar_url":"https://avatars.githubusercontent.com/u/2277?v=3","gravatar_id":"","url":"https://api.github.com/users/claus","html_url":"https://github.com/claus","followers_url":"https://api.github.com/users/claus/followers","following_url":"https://api.github.com/users/claus/following{/other_user}","gists_url":"https://api.github.com/users/claus/gists{/gist_id}","starred_url":"https://api.github.com/users/claus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claus/subscriptions","organizations_url":"https://api.github.com/users/claus/orgs","repos_url":"https://api.github.com/users/claus/repos","events_url":"https://api.github.com/users/claus/events{/privacy}","received_events_url":"https://api.github.com/users/claus/received_events","type":"User","site_admin":false},"body":"see https://twitter.com/kossnocorp/status/807512029158395904","created_at":"2016-12-10T15:20:57Z","updated_at":"2016-12-12T10:42:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8545c4e3f37e2d72410b3670b87ca0ab0f8ef947","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/date-fns/date-fns/pulls/325/commits","review_comments_url":"https://api.github.com/repos/date-fns/date-fns/pulls/325/comments","review_comment_url":"https://api.github.com/repos/date-fns/date-fns/pulls/comments{/number}","comments_url":"https://api.github.com/repos/date-fns/date-fns/issues/325/comments","statuses_url":"https://api.github.com/repos/date-fns/date-fns/statuses/d8e7fdcc9c656d5fcc44e86d0f76638ae134394c","head":{"label":"claus:master","ref":"master","sha":"d8e7fdcc9c656d5fcc44e86d0f76638ae134394c","user":{"login":"claus","id":2277,"avatar_url":"https://avatars.githubusercontent.com/u/2277?v=3","gravatar_id":"","url":"https://api.github.com/users/claus","html_url":"https://github.com/claus","followers_url":"https://api.github.com/users/claus/followers","following_url":"https://api.github.com/users/claus/following{/other_user}","gists_url":"https://api.github.com/users/claus/gists{/gist_id}","starred_url":"https://api.github.com/users/claus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claus/subscriptions","organizations_url":"https://api.github.com/users/claus/orgs","repos_url":"https://api.github.com/users/claus/repos","events_url":"https://api.github.com/users/claus/events{/privacy}","received_events_url":"https://api.github.com/users/claus/received_events","type":"User","site_admin":false},"repo":{"id":76119266,"name":"date-fns","full_name":"claus/date-fns","owner":{"login":"claus","id":2277,"avatar_url":"https://avatars.githubusercontent.com/u/2277?v=3","gravatar_id":"","url":"https://api.github.com/users/claus","html_url":"https://github.com/claus","followers_url":"https://api.github.com/users/claus/followers","following_url":"https://api.github.com/users/claus/following{/other_user}","gists_url":"https://api.github.com/users/claus/gists{/gist_id}","starred_url":"https://api.github.com/users/claus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claus/subscriptions","organizations_url":"https://api.github.com/users/claus/orgs","repos_url":"https://api.github.com/users/claus/repos","events_url":"https://api.github.com/users/claus/events{/privacy}","received_events_url":"https://api.github.com/users/claus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/claus/date-fns","description":"⏳ Modern JavaScript date utility library ⌛️","fork":true,"url":"https://api.github.com/repos/claus/date-fns","forks_url":"https://api.github.com/repos/claus/date-fns/forks","keys_url":"https://api.github.com/repos/claus/date-fns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claus/date-fns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claus/date-fns/teams","hooks_url":"https://api.github.com/repos/claus/date-fns/hooks","issue_events_url":"https://api.github.com/repos/claus/date-fns/issues/events{/number}","events_url":"https://api.github.com/repos/claus/date-fns/events","assignees_url":"https://api.github.com/repos/claus/date-fns/assignees{/user}","branches_url":"https://api.github.com/repos/claus/date-fns/branches{/branch}","tags_url":"https://api.github.com/repos/claus/date-fns/tags","blobs_url":"https://api.github.com/repos/claus/date-fns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claus/date-fns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claus/date-fns/git/refs{/sha}","trees_url":"https://api.github.com/repos/claus/date-fns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claus/date-fns/statuses/{sha}","languages_url":"https://api.github.com/repos/claus/date-fns/languages","stargazers_url":"https://api.github.com/repos/claus/date-fns/stargazers","contributors_url":"https://api.github.com/repos/claus/date-fns/contributors","subscribers_url":"https://api.github.com/repos/claus/date-fns/subscribers","subscription_url":"https://api.github.com/repos/claus/date-fns/subscription","commits_url":"https://api.github.com/repos/claus/date-fns/commits{/sha}","git_commits_url":"https://api.github.com/repos/claus/date-fns/git/commits{/sha}","comments_url":"https://api.github.com/repos/claus/date-fns/comments{/number}","issue_comment_url":"https://api.github.com/repos/claus/date-fns/issues/comments{/number}","contents_url":"https://api.github.com/repos/claus/date-fns/contents/{+path}","compare_url":"https://api.github.com/repos/claus/date-fns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claus/date-fns/merges","archive_url":"https://api.github.com/repos/claus/date-fns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claus/date-fns/downloads","issues_url":"https://api.github.com/repos/claus/date-fns/issues{/number}","pulls_url":"https://api.github.com/repos/claus/date-fns/pulls{/number}","milestones_url":"https://api.github.com/repos/claus/date-fns/milestones{/number}","notifications_url":"https://api.github.com/repos/claus/date-fns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claus/date-fns/labels{/name}","releases_url":"https://api.github.com/repos/claus/date-fns/releases{/id}","deployments_url":"https://api.github.com/repos/claus/date-fns/deployments","created_at":"2016-12-10T15:00:32Z","updated_at":"2016-12-10T15:00:33Z","pushed_at":"2016-12-10T15:33:23Z","git_url":"git://github.com/claus/date-fns.git","ssh_url":"git@github.com:claus/date-fns.git","clone_url":"https://github.com/claus/date-fns.git","svn_url":"https://github.com/claus/date-fns","homepage":"https://date-fns.org","size":2711,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"date-fns:master","ref":"master","sha":"6f6cdeae681b06820c671d1de1dfcf7563b8afcd","user":{"login":"date-fns","id":14921202,"avatar_url":"https://avatars.githubusercontent.com/u/14921202?v=3","gravatar_id":"","url":"https://api.github.com/users/date-fns","html_url":"https://github.com/date-fns","followers_url":"https://api.github.com/users/date-fns/followers","following_url":"https://api.github.com/users/date-fns/following{/other_user}","gists_url":"https://api.github.com/users/date-fns/gists{/gist_id}","starred_url":"https://api.github.com/users/date-fns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/date-fns/subscriptions","organizations_url":"https://api.github.com/users/date-fns/orgs","repos_url":"https://api.github.com/users/date-fns/repos","events_url":"https://api.github.com/users/date-fns/events{/privacy}","received_events_url":"https://api.github.com/users/date-fns/received_events","type":"Organization","site_admin":false},"repo":{"id":24841635,"name":"date-fns","full_name":"date-fns/date-fns","owner":{"login":"date-fns","id":14921202,"avatar_url":"https://avatars.githubusercontent.com/u/14921202?v=3","gravatar_id":"","url":"https://api.github.com/users/date-fns","html_url":"https://github.com/date-fns","followers_url":"https://api.github.com/users/date-fns/followers","following_url":"https://api.github.com/users/date-fns/following{/other_user}","gists_url":"https://api.github.com/users/date-fns/gists{/gist_id}","starred_url":"https://api.github.com/users/date-fns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/date-fns/subscriptions","organizations_url":"https://api.github.com/users/date-fns/orgs","repos_url":"https://api.github.com/users/date-fns/repos","events_url":"https://api.github.com/users/date-fns/events{/privacy}","received_events_url":"https://api.github.com/users/date-fns/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/date-fns/date-fns","description":"⏳ Modern JavaScript date utility library ⌛️","fork":false,"url":"https://api.github.com/repos/date-fns/date-fns","forks_url":"https://api.github.com/repos/date-fns/date-fns/forks","keys_url":"https://api.github.com/repos/date-fns/date-fns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/date-fns/date-fns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/date-fns/date-fns/teams","hooks_url":"https://api.github.com/repos/date-fns/date-fns/hooks","issue_events_url":"https://api.github.com/repos/date-fns/date-fns/issues/events{/number}","events_url":"https://api.github.com/repos/date-fns/date-fns/events","assignees_url":"https://api.github.com/repos/date-fns/date-fns/assignees{/user}","branches_url":"https://api.github.com/repos/date-fns/date-fns/branches{/branch}","tags_url":"https://api.github.com/repos/date-fns/date-fns/tags","blobs_url":"https://api.github.com/repos/date-fns/date-fns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/date-fns/date-fns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/date-fns/date-fns/git/refs{/sha}","trees_url":"https://api.github.com/repos/date-fns/date-fns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/date-fns/date-fns/statuses/{sha}","languages_url":"https://api.github.com/repos/date-fns/date-fns/languages","stargazers_url":"https://api.github.com/repos/date-fns/date-fns/stargazers","contributors_url":"https://api.github.com/repos/date-fns/date-fns/contributors","subscribers_url":"https://api.github.com/repos/date-fns/date-fns/subscribers","subscription_url":"https://api.github.com/repos/date-fns/date-fns/subscription","commits_url":"https://api.github.com/repos/date-fns/date-fns/commits{/sha}","git_commits_url":"https://api.github.com/repos/date-fns/date-fns/git/commits{/sha}","comments_url":"https://api.github.com/repos/date-fns/date-fns/comments{/number}","issue_comment_url":"https://api.github.com/repos/date-fns/date-fns/issues/comments{/number}","contents_url":"https://api.github.com/repos/date-fns/date-fns/contents/{+path}","compare_url":"https://api.github.com/repos/date-fns/date-fns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/date-fns/date-fns/merges","archive_url":"https://api.github.com/repos/date-fns/date-fns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/date-fns/date-fns/downloads","issues_url":"https://api.github.com/repos/date-fns/date-fns/issues{/number}","pulls_url":"https://api.github.com/repos/date-fns/date-fns/pulls{/number}","milestones_url":"https://api.github.com/repos/date-fns/date-fns/milestones{/number}","notifications_url":"https://api.github.com/repos/date-fns/date-fns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/date-fns/date-fns/labels{/name}","releases_url":"https://api.github.com/repos/date-fns/date-fns/releases{/id}","deployments_url":"https://api.github.com/repos/date-fns/date-fns/deployments","created_at":"2014-10-06T10:24:22Z","updated_at":"2016-12-12T10:04:48Z","pushed_at":"2016-12-11T19:39:15Z","git_url":"git://github.com/date-fns/date-fns.git","ssh_url":"git@github.com:date-fns/date-fns.git","clone_url":"https://github.com/date-fns/date-fns.git","svn_url":"https://github.com/date-fns/date-fns","homepage":"https://date-fns.org","size":3133,"stargazers_count":3260,"watchers_count":3260,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":43,"forks":90,"open_issues":43,"watchers":3260,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/date-fns/date-fns/pulls/325"},"html":{"href":"https://github.com/date-fns/date-fns/pull/325"},"issue":{"href":"https://api.github.com/repos/date-fns/date-fns/issues/325"},"comments":{"href":"https://api.github.com/repos/date-fns/date-fns/issues/325/comments"},"review_comments":{"href":"https://api.github.com/repos/date-fns/date-fns/pulls/325/comments"},"review_comment":{"href":"https://api.github.com/repos/date-fns/date-fns/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/date-fns/date-fns/pulls/325/commits"},"statuses":{"href":"https://api.github.com/repos/date-fns/date-fns/statuses/d8e7fdcc9c656d5fcc44e86d0f76638ae134394c"}}}}
{"actor":{"display_login":"kossnocorp"}}