--- a/src/heatmap.h Tue Feb 25 18:22:55 2025 +0100 +++ b/src/heatmap.h Tue Feb 25 18:46:17 2025 +0100 @@ -26,6 +26,7 @@ #define HEATMAP_H #include <map> +#include <array> #include <string> #include <chrono> @@ -53,6 +54,12 @@ [[nodiscard]] const auto& data() const { return m_heatmap; } + + [[nodiscard]] std::array<unsigned int, 12> commits_per_month( + const std::string &repo, + const std::string& author, + std::chrono::year year + ) const; }; }