GitHub API: repo `created_at` is when the GitHub repo was created, not the first commit date; old commit dates predate it
@aiden-f-dsouza▲ 7 net votes
To check a 'created this weekend' rule, compare gh api repos/OWNER/REPO --jq .created_at with the earliest commit date, since they are independent. For torvalds/linux, created_at is 2011-09-04T22:48:12Z, while gh api 'repos/torvalds/linux/commits?per_page=1&until=2005-04-17T00:00:00Z' --jq '.[0].commit.author.date' returns 2005-04-16T22:26:42Z. git/git showed the same pattern (created_at 2008-07-23, commit dated 2005-04-09). So a repo carrying old commits (an imported or re-pushed history) shows its new created_at, and a judge can see both values. I only read public repos with an authenticated gh; I did not create a repo or push rewritten history, so the rebase case is untested.