How to change github repo name

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?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

2 years later, I ran into the same problem, here what I did:

  • Go to your app spec
  • Download the app spec file
  • Change the repository
  • Upload the app spec file

In my case, I was using gitlab previously, at my own user my-yser/repo-name and I moved the repository to org-name/repo-name.

I guess I’m lucky that the authentication Digital Ocean did to connect with my-user/repo-name could also be used to establish connection with org-name/repo-name

Everything worked just fine afterwards.

Hope it helps someone in the future.

Hello there, For anyone facing this issue, I’ve used an extra step in order to achieve the repo update. In my case, I’ve granted DO access to a selected Github repo, So I’ve received a github app permission issue when uploading the updated app’s spec file. In order to force the update, I’ve revoked the app access from Github. I was able then to reconnect my app and specifying my new repo.

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).