Very lightly altered version of the gitea heatmap backfil found below (just adjusted the sqlite schema and nothing else, used to fix heatmap for recently added repos on forgejo 16.0.4) https://raw.githubusercontent.com/Maethik/gitea-heatmap-backfill/main/gitea_backfill.py
0
0
1
| 1 | #!/usr/bin/env python3 |
| 2 | """ |
| 3 | Gitea Heatmap Backfill |
| 4 | ====================== |
| 5 | Retroactively populate the Gitea activity heatmap from existing Git history. |
| 6 | |
| 7 | Reads commit history from bare repositories on disk and inserts matching |
| 8 | action records (op_type=5, PUSH_EVENT) into the Gitea SQLite database. |
| 9 | |
| 10 | Author attribution is resolved by matching commit author emails against |