1
0
www.mikescher.com/www/extern/egg/db_queryyear.sql
Mike Schwörer e5c9b1c2a0
All checks were successful
Build Docker and Deploy / Build Docker (push) Successful in 21s
Build Docker and Deploy / Deploy to Server (push) Successful in 16s
Add per-repo counts to EGG
2025-07-13 12:56:17 +02:00

14 lines
419 B
SQL

SELECT
commitdate AS commitdate,
COUNT(*) as count
FROM
(
SELECT
commits.[hash] AS hash, min([author_email]) AS mail1, min([committer_email]) AS mail2, date(min([date])) AS commitdate
FROM commits
LEFT JOIN metadata ON commits.hash = metadata.hash
GROUP BY commits.[hash]
HAVING (strftime('%Y', commitdate) = :year AND (/*{IDENTITY_COND}*/))
)
GROUP BY commitdate
ORDER BY commitdate