For administrators

Repositories

Apps whose code lives on this server: move them to GitHub one by one or all at once.

What this is

When no GitHub or GitLab was connected at the time, an app's code is kept on this server. This page lists those apps and moves their code to GitHub: a private repository is created for each app, the code is copied there, and the app follows GitHub from then on. Use it once GitHub is connected, so that changes and reviews of the code live where your developers work.

Where to find it

  1. Open Admin, then the card Infrastructure.
  2. Click Repositories.

What you see

  • A note GitHub is not set up on this server. Connect the GitHub App or add a GitHub token in Settings first. when GitHub is not connected. The buttons are then greyed out. See Code providers.
  • No app keeps its code on this server. when there is nothing to move.
  • Otherwise a line N on this server and a list of apps, each with a checkbox, its name and slug, and a Move to GitHub button.
  • Above the list: Move selected (N), active when you ticked at least one app, and Move all.
  • After a move, one line per app: the slug and either moved to the new repository address, or the reason it failed.

How to move apps to GitHub

Prepare: connect GitHub first (see Code providers).

  1. Open Repositories.
  2. Click Move to GitHub on one app, tick several apps and click Move selected (N), or click Move all.
  3. A window asks Move N repositories to GitHub? and explains that a private repository is created for each, the code is copied, the apps follow GitHub, and the copy on this server is kept for 30 days, then removed. Click Move N.
  4. Read the result lines under the buttons.

You know it worked when each app shows moved to and a repository address, and it has left the list.

When something looks wrong

  • A result line with a reason instead of moved to: that app was not moved and stays on this server. Read the reason, fix it (for example the GitHub connection), and move it again. Other apps in the same batch are not affected.
  • Something went wrong. Try again in a moment. The request failed as a whole. Reload the page to see which apps still appear, then try again.

Good to know

  • Only an administrator can use this page.
  • The repositories are created as private.
  • The copy on this server is removed after 30 days. After that the code exists only on GitHub.
  • The apps follow GitHub from then on; there is no button here to move them back.