Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 98ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login

All gists

All Recently liked Recently forked
Recently created Least recently created Recently updated Least recently updated

ian / Forgejo Heatmap Backfill

Last active 1 hour ago git forgejo

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