Weirdly, the hard part here is reliably knowing when you died. Messy solvable in a localized way. Really, really hard to solve on a global scale.
There could be any secrets (API keys, etc) in a GitHub repo.
(And it should have very clear warnings before you turn it on so you don't accidentally make things public that shouldn't be. Plus, there should probably be some sort of way to tag which repose would still need to stay private even after your death.)