{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":693735202,"defaultBranch":"main","name":"gocron","ownerLogin":"husam-e","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-09-19T15:52:44.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/2340614?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1698697985.0","currentOid":""},"activityList":{"items":[{"before":"497bd72f29adb2577f598781884da2608f7637ab","after":null,"ref":"refs/heads/husam-e/negative-intervals","pushedAt":"2023-10-30T20:33:05.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"husam-e","name":null,"path":"/husam-e","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2340614?s=80&v=4"}},{"before":"41c01669f24660b1a76dc4da0313e6adfe67fa2c","after":"497bd72f29adb2577f598781884da2608f7637ab","ref":"refs/heads/husam-e/negative-intervals","pushedAt":"2023-10-30T20:26:49.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"husam-e","name":null,"path":"/husam-e","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2340614?s=80&v=4"},"commit":{"message":"Update scheduler_test.go","shortMessageHtmlLink":"Update scheduler_test.go"}},{"before":"5d7f37cc165aeff75cee184c782b418921327667","after":"41c01669f24660b1a76dc4da0313e6adfe67fa2c","ref":"refs/heads/husam-e/negative-intervals","pushedAt":"2023-10-30T19:37:48.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"JohnRoesler","name":"John Roesler","path":"/JohnRoesler","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/19351306?s=80&v=4"},"commit":{"message":"Apply suggestions from code review","shortMessageHtmlLink":"Apply suggestions from code review"}},{"before":"894ff75890db4532a459989c8da09bc7bdadf086","after":"5d7f37cc165aeff75cee184c782b418921327667","ref":"refs/heads/husam-e/negative-intervals","pushedAt":"2023-10-30T18:31:13.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"JohnRoesler","name":"John Roesler","path":"/JohnRoesler","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/19351306?s=80&v=4"},"commit":{"message":"Merge branch 'v1' into husam-e/negative-intervals","shortMessageHtmlLink":"Merge branch 'v1' into husam-e/negative-intervals"}},{"before":"9e0590cbfc1ad1775f8120a0e4d7ee94159e1d51","after":"894ff75890db4532a459989c8da09bc7bdadf086","ref":"refs/heads/husam-e/negative-intervals","pushedAt":"2023-10-30T18:24:54.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"JohnRoesler","name":"John Roesler","path":"/JohnRoesler","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/19351306?s=80&v=4"},"commit":{"message":"Apply suggestions from code review","shortMessageHtmlLink":"Apply suggestions from code review"}},{"before":"882298bcc3a885d25d1768085823d3bbd11340c0","after":"9e0590cbfc1ad1775f8120a0e4d7ee94159e1d51","ref":"refs/heads/husam-e/negative-intervals","pushedAt":"2023-10-30T16:13:57.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"husam-e","name":null,"path":"/husam-e","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2340614?s=80&v=4"},"commit":{"message":"fix error check in tests\n\nCo-authored-by: John Roesler ","shortMessageHtmlLink":"fix error check in tests"}},{"before":"111397a17f032d65e9a1198918ebfde23a2e1d7c","after":"882298bcc3a885d25d1768085823d3bbd11340c0","ref":"refs/heads/husam-e/negative-intervals","pushedAt":"2023-10-30T14:33:42.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"husam-e","name":null,"path":"/husam-e","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2340614?s=80&v=4"},"commit":{"message":"Update Every func doc","shortMessageHtmlLink":"Update Every func doc"}},{"before":"12cfd7aaea743d105cbd350919748b02ed14af51","after":"111397a17f032d65e9a1198918ebfde23a2e1d7c","ref":"refs/heads/husam-e/negative-intervals","pushedAt":"2023-10-30T14:27:23.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"husam-e","name":null,"path":"/husam-e","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2340614?s=80&v=4"},"commit":{"message":"fix(scheduler): ensure negative intervals given to `Every` return an immediate error #600","shortMessageHtmlLink":"fix(scheduler): ensure negative intervals given to Every return an …"}},{"before":null,"after":"12cfd7aaea743d105cbd350919748b02ed14af51","ref":"refs/heads/husam-e/negative-intervals","pushedAt":"2023-10-30T14:27:22.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"husam-e","name":null,"path":"/husam-e","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2340614?s=80&v=4"},"commit":{"message":"Avoid allocations with `(*regexp.Regexp).MatchString` (#602)\n\nWe should use `(*regexp.Regexp).MatchString` instead of\r\n`(*regexp.Regexp).Match([]byte(...))` when matching string to avoid\r\nunnecessary `[]byte` conversions and reduce allocations.\r\n\r\nExample benchmark:\r\n\r\nfunc BenchmarkMatch(b *testing.B) {\r\n\tfor i := 0; i < b.N; i++ {\r\n\t\tif match := timeWithSeconds.Match([]byte(\"06:18:01\")); !match {\r\n\t\t\tb.Fail()\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunc BenchmarkMatchString(b *testing.B) {\r\n\tfor i := 0; i < b.N; i++ {\r\n\t\tif match := timeWithSeconds.MatchString(\"06:18:01\"); !match {\r\n\t\t\tb.Fail()\r\n\t\t}\r\n\t}\r\n}\r\n\r\ngoos: linux\r\ngoarch: amd64\r\npkg: github.com/go-co-op/gocron\r\ncpu: AMD Ryzen 7 PRO 4750U with Radeon Graphics\r\nBenchmarkMatch-16 \t 7213512\t 223.8 ns/op\t 8 B/op\t 1 allocs/op\r\nBenchmarkMatchString-16 \t 8484169\t 145.8 ns/op\t 0 B/op\t 0 allocs/op\r\nPASS\r\nok \tgithub.com/go-co-op/gocron\t4.114s\r\n\r\nSigned-off-by: Eng Zer Jun ","shortMessageHtmlLink":"Avoid allocations with (*regexp.Regexp).MatchString (go-co-op#602)"}},{"before":"9e55eafa09d95690b0d8200818da99e8b363bcb8","after":"ba1ceca4cfa5c56054c4cdbb634fbb9bc7692bb7","ref":"refs/heads/patch-1","pushedAt":"2023-09-19T15:55:20.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"husam-e","name":null,"path":"/husam-e","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2340614?s=80&v=4"},"commit":{"message":"Update scheduler.go Milliseconds docs","shortMessageHtmlLink":"Update scheduler.go Milliseconds docs"}},{"before":"7fea08c327f0ac9daa73966c9f4233f2b0102685","after":"9e55eafa09d95690b0d8200818da99e8b363bcb8","ref":"refs/heads/patch-1","pushedAt":"2023-09-19T15:53:22.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"husam-e","name":null,"path":"/husam-e","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/2340614?s=80&v=4"},"commit":{"message":"docs: update WaitMode and Milliseconds documentation","shortMessageHtmlLink":"docs: update WaitMode and Milliseconds documentation"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADo2utRQA","startCursor":null,"endCursor":null}},"title":"Activity · husam-e/gocron"}