Skip to main content

What's new

Moved your GitHub repository to another organization? Point the app at it

The Your code card in a 1904 app's settings with Switch GitHub repository open: Found this repository at its new GitHub location, the target new-org/portal marked as a moved repository match, and a Save and Switch Repository button.

Repositories move. A side project gets transferred into the company's GitHub organization, a client takes ownership of their code at handover, or somebody finally renames the thing. GitHub redirects the old address for a while, but anything that holds its own connection to the repository needs telling. For an app in 1904 that used to mean writing to support. The app's owner can now do it from App Settings.

Switch GitHub repository

Open the app's settings and find Your code. Under the Git URL there's a line asking whether you transferred the repository to another GitHub organization or renamed it, with a Switch GitHub repository button. Open it and 1904 looks through the GitHub organizations you've connected. When it recognises the same repository at a new address, it says Found this repository at its new GitHub location and has it selected, marked as a moved repository match. Press Save and Switch Repository, and the app's Git URL changes and the workspace your agents use is pointed at the new address.

When the new organization doesn't know 1904 yet

If the repository went to an organization where 1904 isn't installed, it won't be in the list. Install 1904 on another organization takes you to GitHub to add it, and Refresh list picks it up when you come back. If your GitHub authorization has lapsed in the meantime, you get a Reconnect GitHub button in place of the list.

A different repository asks you twice

The list also shows your other repositories, since sometimes the move was really a fresh copy. Pick one that isn't the same repository as before and 1904 says so, and makes you tick a box confirming you mean to switch the app to it. A repository another of your apps already uses is shown and can't be chosen.

If GitHub blocks the workspace's key

Some organizations turn deploy keys off, and the workspace needs one to push. When that's what stops the switch, 1904 tells you the repository is saved, explains that deploy keys are disabled for it on GitHub, and links to the organization's settings and the repository's deploy keys page. Turn them on and come back to the tab. 1904 keeps checking for two minutes and finishes by itself, and Check now is there if you took longer. Any other hiccup in updating the workspace shows as an amber note with Retry workspace sync, so the app is never left half moved without a way forward.

This applies to apps whose code lives in your own GitHub account. Apps whose code 1904 stores for you don't show the option, because there's nothing to move.

← All posts

Start with an idea, or start with what you have.

Use AI supplied by 1904, or connect the subscription you already pay for.