Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Statistics for date range #6

Description

@ahilles107

Would be nice to have this feature. For now we can get this by modifying gitter.

--- /var/www/git-stats/vendor/klaussilveira/gitter/lib/Gitter/Repository.php
@@ -11,7 +11,10 @@
         foreach ($logs as $log) {
             $commit = new Commit;
             $commit->importData($log);
-            $commits[] = $commit;
+            $date = new \Gitter\Util\DateTime('2013-01-01 00:00:00');
+            if ($commit->getDate() > $date) {
+                $commits[] = $commit;
+            }
         }

         return $commits;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions