I figured it out. The issue was how I the org url of the github was changed and how in turn it changed the repo url. I tried reconnecting the repository without any luck, so in the end I recreated the amplify app with the new repository urls and it started working.