Skip to content

Comment on Every GitHub object has two IDsparent

Comments

Issue #, commit hashes, etc. are still immutable in this scenario. When you rename or transfer a GitHub repository, all of these keys are preserved.

What I do is store 2 tuples:

Repository: (Id, Org, Repo)

Issue/PR: (Repository.Id, #)

Transferring or renaming a repository is an update to 1 row in this schema.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.