{"action":"created","issue":{"url":"https://api.github.com/repos/mzgoddard/problem-workdays/issues/1","labels_url":"https://api.github.com/repos/mzgoddard/problem-workdays/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mzgoddard/problem-workdays/issues/1/comments","events_url":"https://api.github.com/repos/mzgoddard/problem-workdays/issues/1/events","html_url":"https://github.com/mzgoddard/problem-workdays/pull/1","id":56136775,"number":1,"title":"Fix fixture data; update algorithm.","user":{"login":"jmeas","id":2322305,"avatar_url":"https://avatars.githubusercontent.com/u/2322305?v=3","gravatar_id":"","url":"https://api.github.com/users/jmeas","html_url":"https://github.com/jmeas","followers_url":"https://api.github.com/users/jmeas/followers","following_url":"https://api.github.com/users/jmeas/following{/other_user}","gists_url":"https://api.github.com/users/jmeas/gists{/gist_id}","starred_url":"https://api.github.com/users/jmeas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmeas/subscriptions","organizations_url":"https://api.github.com/users/jmeas/orgs","repos_url":"https://api.github.com/users/jmeas/repos","events_url":"https://api.github.com/users/jmeas/events{/privacy}","received_events_url":"https://api.github.com/users/jmeas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-31T19:48:36Z","updated_at":"2015-01-31T19:52:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mzgoddard/problem-workdays/pulls/1","html_url":"https://github.com/mzgoddard/problem-workdays/pull/1","diff_url":"https://github.com/mzgoddard/problem-workdays/pull/1.diff","patch_url":"https://github.com/mzgoddard/problem-workdays/pull/1.patch"},"body":"Nice work @mzgoddard!\r\n\r\nUnfortunately I had the wrong fixture data for addition :astonished:  I updated the data and your algorithm.\r\n\r\nAlthough I plan to use this for the date-related library I'm working on, my personal search continues for a more general solution. If you wanted to try your luck with it, restrict yourself to using these constants:\r\n\r\n```js\r\n// The distance between subsequent holes (number of workdays)\r\nvar HOLE_SPACING = 5;\r\n\r\n// The length of the hole (number of weekend days)\r\nvar HOLE_LENGTH = 2;\r\n\r\n// The location that the whole starts at (Saturday)\r\nvar HOLE_START = 6;\r\n\r\n// Lastly, any other number that is constant among variations of the above constants\r\nvar CONSTANTS = [ ... ];\r\n```"},"comment":{"url":"https://api.github.com/repos/mzgoddard/problem-workdays/issues/comments/72333266","html_url":"https://github.com/mzgoddard/problem-workdays/pull/1#issuecomment-72333266","issue_url":"https://api.github.com/repos/mzgoddard/problem-workdays/issues/1","id":72333266,"user":{"login":"jmeas","id":2322305,"avatar_url":"https://avatars.githubusercontent.com/u/2322305?v=3","gravatar_id":"","url":"https://api.github.com/users/jmeas","html_url":"https://github.com/jmeas","followers_url":"https://api.github.com/users/jmeas/followers","following_url":"https://api.github.com/users/jmeas/following{/other_user}","gists_url":"https://api.github.com/users/jmeas/gists{/gist_id}","starred_url":"https://api.github.com/users/jmeas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmeas/subscriptions","organizations_url":"https://api.github.com/users/jmeas/orgs","repos_url":"https://api.github.com/users/jmeas/repos","events_url":"https://api.github.com/users/jmeas/events{/privacy}","received_events_url":"https://api.github.com/users/jmeas/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T19:52:14Z","updated_at":"2015-01-31T19:52:14Z","body":"oh oops, tests aren't passing here. Interesting. My moment-ified version is passing"}}