Use the Github api to calculate diff