{"action":"created","issue":{"url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/16694","repository_url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp","labels_url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/16694/labels{/name}","comments_url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/16694/comments","events_url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/16694/events","html_url":"https://github.com/freeCodeCamp/freeCodeCamp/pull/16694","id":296286288,"number":16694,"title":"fix(seed): Add tests and solution for Project Euler 19","user":{"login":"scissorsneedfoodtoo","id":2051070,"avatar_url":"https://avatars3.githubusercontent.com/u/2051070?v=4","gravatar_id":"","url":"https://api.github.com/users/scissorsneedfoodtoo","html_url":"https://github.com/scissorsneedfoodtoo","followers_url":"https://api.github.com/users/scissorsneedfoodtoo/followers","following_url":"https://api.github.com/users/scissorsneedfoodtoo/following{/other_user}","gists_url":"https://api.github.com/users/scissorsneedfoodtoo/gists{/gist_id}","starred_url":"https://api.github.com/users/scissorsneedfoodtoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scissorsneedfoodtoo/subscriptions","organizations_url":"https://api.github.com/users/scissorsneedfoodtoo/orgs","repos_url":"https://api.github.com/users/scissorsneedfoodtoo/repos","events_url":"https://api.github.com/users/scissorsneedfoodtoo/events{/privacy}","received_events_url":"https://api.github.com/users/scissorsneedfoodtoo/received_events","type":"User","site_admin":false},"labels":[{"id":199856930,"url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/labels/status:%20ready%20for%20QA","name":"status: ready for QA","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-12T07:32:20Z","updated_at":"2018-02-15T09:11:39Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/pulls/16694","html_url":"https://github.com/freeCodeCamp/freeCodeCamp/pull/16694","diff_url":"https://github.com/freeCodeCamp/freeCodeCamp/pull/16694.diff","patch_url":"https://github.com/freeCodeCamp/freeCodeCamp/pull/16694.patch"},"body":"<!-- freeCodeCamp Pull Request Template -->\r\n\r\n<!-- IMPORTANT Please review https://github.com/freeCodeCamp/freeCodeCamp/blob/staging/CONTRIBUTING.md for detailed contributing guidelines -->\r\n<!-- Help with PRs can be found at https://gitter.im/FreeCodeCamp/Contributors -->\r\n<!-- Make sure that your PR is not a duplicate -->\r\n\r\n#### Pre-Submission Checklist\r\n<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply. -->\r\n<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->\r\n<!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] Your pull request targets the `staging` branch of freeCodeCamp.\r\n- [x] Branch starts with either `fix/`, `feature/`, or `translate/` (e.g. `fix/signin-issue`)\r\n- [x] You have only one commit (if not, [squash](http://forum.freecodecamp.org/t/how-to-squash-multiple-commits-into-one-with-git/13231) them into one commit).\r\n- [x] All new and existing tests pass the command `npm test`. Use `git commit --amend` to amend any fixes.\r\n\r\n#### Type of Change\r\n<!-- What type of change does your code introduce? After creating the PR, tick the checkboxes that apply. -->\r\n- [x] Small bug fix (non-breaking change which fixes an issue)\r\n- [ ] New feature (non-breaking change which adds new functionality)\r\n- [ ] Breaking change (fix or feature that would change existing functionality)\r\n- [ ] Add new translation (feature adding new translations)\r\n\r\n#### Checklist:\r\n<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply. -->\r\n<!-- If you're unsure about any of these, don't hesitate to ask in the Contributors room linked above. We're here to help! -->\r\n- [x] Tested changes locally.\r\n- [ ] Addressed currently open issue (replace XXXXX with an issue no in next line)\r\n\r\nCloses #XXXXX\r\n\r\n#### Description\r\n<!-- Describe your changes in detail -->\r\n\r\nAdded additional tests and a working solution for this problem.\r\n\r\nBREAKING CHANGE: None\r\n\r\nHere's my solution for QA:\r\n\r\n```\r\nfunction countingSundays(firstYear, lastYear) {\r\n  let sundays = 0;\r\n  \r\n  for (let year = firstYear; year <= lastYear; year++) {\r\n    for (let month = 1; month <= 12; month++) {\r\n      const thisDate = new Date(year, month, 1);\r\n      if (thisDate.getDay() === 0) {\r\n        sundays++;\r\n      }\r\n    }\r\n  }\r\n  \r\n  return sundays;\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/comments/365866329","html_url":"https://github.com/freeCodeCamp/freeCodeCamp/pull/16694#issuecomment-365866329","issue_url":"https://api.github.com/repos/freeCodeCamp/freeCodeCamp/issues/16694","id":365866329,"user":{"login":"Bouncey","id":18572518,"avatar_url":"https://avatars1.githubusercontent.com/u/18572518?v=4","gravatar_id":"","url":"https://api.github.com/users/Bouncey","html_url":"https://github.com/Bouncey","followers_url":"https://api.github.com/users/Bouncey/followers","following_url":"https://api.github.com/users/Bouncey/following{/other_user}","gists_url":"https://api.github.com/users/Bouncey/gists{/gist_id}","starred_url":"https://api.github.com/users/Bouncey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bouncey/subscriptions","organizations_url":"https://api.github.com/users/Bouncey/orgs","repos_url":"https://api.github.com/users/Bouncey/repos","events_url":"https://api.github.com/users/Bouncey/events{/privacy}","received_events_url":"https://api.github.com/users/Bouncey/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T09:11:39Z","updated_at":"2018-02-15T09:11:39Z","author_association":"OWNER","body":"## LGTM 👍 "}}
{"actor":{"display_login":"Bouncey"}}