How to change github repo name

Posted November 9, 2020 1.5k views
GitDigitalOcean App Platform

I set up my app platform to auto deploy from a github repo, then I changed the repo name in github, but I can’t find a way to update it on app platform. Any pointers?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Making this change on an existing app requires leveraging the doctl CLI utility (docs), or API. You can download an existing copy of your app’s spec file from the Settings tab of the App’s control panel. From there, update the repo under github section in the App Spec file. You can update the existing app with doctl app update APP_ID --spec=./my-app-spec-file.yaml, replacing APP_ID with the ID of your app (see doctl app list).