Move the commits list calculation into the repo